Daniel Minan
New Member
Offline
Posts: 1
|
I want to make a toggle latch from D latch using only data flow only: module latcht( input T, output Led );
wire d, c, qn; //1'b0; assign c = 1'b1; assign d = q^T; latchd U1( d, c, q, qn);
endmodule
module latchd( input D, input C, output Q, output Qn );
/*assign Q = ((C==1'b1&&D==1'b0)? 1'b0 (C==1'b1 && D==1'b1)?1'b1: Q)); assign Qn = ~Q;*/
endmoduleBut when i tested the logic of the Led, it hold at z state all the time Sorry for my poor english
|