You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
241 B
Verilog
22 lines
241 B
Verilog
2 years ago
|
|
||
|
`timescale 1 ps / 1 ps
|
||
|
|
||
|
module FD (Q, C, D);
|
||
|
|
||
|
parameter INIT = 1'b0;
|
||
|
|
||
|
output Q;
|
||
|
input C, D;
|
||
|
|
||
|
wire Q;
|
||
|
reg q_out;
|
||
|
|
||
|
initial q_out = INIT;
|
||
|
|
||
|
always @(posedge C)
|
||
|
q_out <= D;
|
||
|
|
||
|
assign Q = q_out;
|
||
|
|
||
|
endmodule
|