D flip-flop

T

T. J. Lo

Guest
since D flip-flop was a simple element, I still got a question recently

Before the first posedge of "clk", the output Q will be a unknow value. Can
it be a dff ?


always @ (clk or CLRN or PRN)
begin
if(clk == 1'b1)
Q <= CLRN ? 1'b0 : (PRN ? 1'b1 : D);
else
Q <= Q;
end
 

Welcome to EDABoard.com

Sponsor

Back
Top