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 FFDPCQNQDCLKPRCLR;
input DCLKPRCLR;
output QNQ;
wire wRm wSm Qm NQm wRe, wSe, nCLK nD nPR nCLR;
not
notnCLK CLK
notnDD
notnPRPR
notnCLRCLR;
and
andwRmDnCLRnCLK
andwSmnDnPRnCLK
andwReQmCLK
andwSeNQmCLK;
nor
norQmNQmwRmPR
norNQmQmwSmCLR
norQNQwRe,CLR
norNQQwSe,PR;
endmodule
Use the following clock.v module to generate the flip flop clock signal
module relojclk;
output clk;
reg clk;
initial
# clk;
always
# clk~clk;
endmodule
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
