I want to write verilog code throw the function table given below
D C Q Qn
-------
0 0 Q Qn
1 ↑ 1 0
0 1 Q Qn
1 ↓ Q Qn
where D, c are input and Q and Qn are output
I am trying to write code
syncronous D flip flop with positive edge
Don't know how to write next code
D C Q Qn
-------
0 0 Q Qn
1 ↑ 1 0
0 1 Q Qn
1 ↓ Q Qn
where D, c are input and Q and Qn are output
I am trying to write code
syncronous D flip flop with positive edge
Rich (BB code):
module D_flop (D,C,Q,Qn);
Input D;
input C;
output Q;
output Qn;
Reg Q;
Reg Qn;
always @(posedge clk)
initial