Chinmaye
Full Member level 3
Hello all,
I am unable to simulate D-flipflop properly in AMS. The input that i am giving is itself shown incorrect on the wave form window. I was able to simulate simple gates but find ing problems with D flip flop. Attaching the code and waveform.
I am unable to simulate D-flipflop properly in AMS. The input that i am giving is itself shown incorrect on the wave form window. I was able to simulate simple gates but find ing problems with D flip flop. Attaching the code and waveform.
Code:
module DFF_VERI(D,clk,Q);
input D; // Data input
input clk; // clock input
output reg Q; // output Q
always @(posedge clk)
begin
Q = D;
end
endmodule