Question

Simulate a D-Flip Flop on Xilinx using Verilog HDL | Behavioral Modelling

Simulate a D-Flip Flop on Xilinx using Verilog HDL | Behavioral Modelling

Homework Answers

Answer #1

Simulate a D-Flip Flop on Xilinx using Verilog HDL | Behavioral Modelling:

module dp(d,db,pr,clr,clk,q,qb);
 input d;
 input db;
 input pr; 
input clr; 
input clk; 
output q; 
output qb; 
wire w1,w2,w3,w4,w5,w6; 
assign db=~(d); 
assign w1=~(d&qb&(~clk)); 
assign w2=~(db&q&(~clk)); 
assign w3=~(w1&pr&w4); 
assign w4=~(w2&clr&w3); 
assign w5=~(w3&clk); 
assign w6=~(w4& clk); 
assign q=~(w5&qb); 
assign qb=~(w6&q); 
endmodule
Let me know if you have any doubts or if you need anything to change. 

If you are satisfied with the solution, please leave a +ve feedback : ) Let me know for any help with any other questions.

Thank You!
===========================================================================
Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
How do I design a divide by 4 clock in verilog using 2 D Flip Flop...
How do I design a divide by 4 clock in verilog using 2 D Flip Flop blocks? I have created this divide by 2 clock D Flip Flop block so far: module divide_by_2(D, Clk,reset, Q, Qnext); //Divide by 2 clock with reset using D flip flop    input Clk, D, reset;    output Q,Qnext;    reg Q;       assign Qnext = ~Q;       always @(posedge Clk or posedge reset) //always at the positive edge of the clock or...
Design a 4 to 16 decoder using Verilog HDL. The inputs are a four-bit vector W=...
Design a 4 to 16 decoder using Verilog HDL. The inputs are a four-bit vector W= [w1 w2 w3 w4] and an enable signal En. The outputs are represented by the 16-bit vector Y= [y0 y1 …..y15]. a) Write Verilog HDL behavioral style code for 2-to-4 decoder. b) Write Verilog HDL behavioral style code for 4-to-16 decoder by instantiation of 2-to-4 decoders.
Design a 4 to 16 decoder using Verilog HDL. The inputs are a four-bit vector W=...
Design a 4 to 16 decoder using Verilog HDL. The inputs are a four-bit vector W= [w1 w2 w3 w4] and an enable signal En. The outputs are represented by the 16-bit vector Y= [y0 y1 …..y15]. a) Write Verilog HDL behavioral style code for 2-to-4 decoder. b) Write Verilog HDL behavioral style code for 4-to-16 decoder by instantiation of 2-to-4 decoders.
Implement the following circuit to test the characteristics of a D flip flop. Note: Using a...
Implement the following circuit to test the characteristics of a D flip flop. Note: Using a clock input to operate the flip-flop is rather quickly. You may wish to select the slow motion of the clock OR to use a simple binary input device instead of a clock input device. Verify the flip flop state table. Q(t+1) = D, is the characteristic equation. Characteristic Table Excitation Table ==================== =================== D Q(t+1) Operation Q(t) Q(t+1) D ==================== =================== 0 0 Reset...
Implement the following circuit to test the characteristics of a D flip flop. Note: Using a...
Implement the following circuit to test the characteristics of a D flip flop. Note: Using a clock input to operate the flip-flop is rather quickly. You may wish to select the slow motion of the clock OR to use a simple binary input device instead of a clock input device. Verify the flip flop state table. Q(t+1) = D, is the characteristic equation. Characteristic Table Excitation Table ==================== =================== D Q(t+1) Operation Q(t) Q(t+1) D ==================== =================== 0 0 Reset...
Please create examples of both D-Latch and D-Flip-Flop circuits using an online circuit simulator.
Please create examples of both D-Latch and D-Flip-Flop circuits using an online circuit simulator.
can someone do 3 bit counter USING a SR, JK, and D flip flop. With a...
can someone do 3 bit counter USING a SR, JK, and D flip flop. With a pattern of 7,6,5,4,3,2,1. showing the steps w tables(present, next, etc)
1) Write down the characteristic table for a positive-edge triggered D flip-flop. 2) Explain the difference...
1) Write down the characteristic table for a positive-edge triggered D flip-flop. 2) Explain the difference between the D latch and the D flip-flop.
Using one SR one JK and one D flip flop design a sequential circuit that generates...
Using one SR one JK and one D flip flop design a sequential circuit that generates the output pattern: 7-6-5-4-3-2-1-0 and then the sequence repeats. Derive the equations for SA, RA, JB, KB, and DC.
The following Verilog module implements module xyz(In,C,Out); input In,C; output Out; wire x,y,In1,Out1; nand n1 (x,In,...
The following Verilog module implements module xyz(In,C,Out); input In,C; output Out; wire x,y,In1,Out1; nand n1 (x,In, C), n2 (y,In1,C), n3 (Out,x,Out1), n4 (Out1,y,Out); not nt (In1,In); endmodule a 2x1 multiplexor b D latch c D flip-flop d RS flip-flop e JK flip-flop
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT