代码搜索结果
找到约 10,000 项符合
V 的代码
top.v
module top(reset_ini,clk1,clk2,in,out,x0,x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11,x12,x13,x14,x15,x_i,x_Ni,x,h,P_i,OE,reset,i,part_sum,sum);
input clk1,clk2,reset_ini;
input[7:0] in;
output[7:0] x_i,x_Ni;
shifter.v
// Shift Register
module shifter(din, clk, clr, dout);
input din, clk, clr;
output [7:0] dout;
reg [7:0] dout;
always @(posedge clk)
begin
if (clr) // clear condition
dout = 8'b0;
dff.v
// Simple flip-flop example without set or reset
module dff(q, data, clk);
output q;
input data, clk;
reg q;
always @(posedge clk)
begin
q = data;
end
endmodule
dff_or.v
module dff_or(q, a, b, clk);
output q;
input a, b, clk;
reg q;
always @(posedge clk)
begin
q = a | b;
end
endmodule
2901.v
// Public domain 2901. Distribute freely.
////////////////////////////////////////////////////////////////////////////////
// Partitioned a2901
// translated to Verilog from VHDL by Sari Coumeri
slowl.v
`timescale 100 ps/100 ps
/*
* predict the next entry in the input
* stream of results
*/
module slow_learner(rst,guess, result, clk);
output guess;
input rst,result, clk;
reg guess;
al
template.v
module top_module_name(port_list);
// port declarations go here
/* wire, reg, integer declarations,user task
and user function declarations go here*/
/* describe hardware with one or more: cont
async.v
// Asynchronous state machines (small ones)
// Do not give these designs to a synthesis tool because the
// optimizer will remove the gates you put in for hazard suppression.
//
// Synplify-Lite c
hierarcy.v
// Example of a hierarchical design
// ------------------------------------------------------
// First define the lower level modules: mux, reg8, & rotate
// ---------------------------------------
tstbench.v
module tstbench;
// instantiate top level design here
`ifdef synthesis
`else
always #100 clk = ~clk;
initial
begin
clk = 1;
// put rest of stimulus here
end
`endif
endmodul