Question: There is a Ring Counter whose code is below. Obtain a ) Do analysis of the flip flop to be used where the preparation time

There is a Ring Counter whose code is below.
Obtain
a) Do analysis of the flip flop to be used where the preparation time is determined in Verilog
b) tweak the code so that timings are implemented correctly to avoid metastability
Use the following flip flop code provided
module FFD_PC(Q,NQ,D,CLK,PR,CLR);
input D,CLK,PR,CLR;
output Q,NQ;
wire wRm, wSm, Qm, NQm, wRe, wSe, nCLK, nD, nPR, nCLR;
not
not1(nCLK, CLK),
not2(nD,D),
not3(nPR,PR),
not4(nCLR,CLR);
and
and1(wRm,D,nCLR,nCLK),
and2(wSm,nD,nPR,nCLK),
and3(wRe,Qm,CLK),
and4(wSe,NQm,CLK);
nor
nor1(Qm,NQm,wRm,PR),
nor2(NQm,Qm,wSm,CLR),
nor3(Q,NQ,wRe,CLR),
nor4(NQ,Q,wSe,PR);
endmodule
Use the following clock.v module to generate the flip flop clock signal
module reloj(clk);
output clk;
reg clk;
initial
#1 clk=0;
always
#5 clk=~clk;
endmodule

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Electrical Engineering Questions!