Implement D flip-flop with a couple of latches? Write a VHDL
Code for a D flip-flop?
Answer Posted / hps
ibrary IEEE;
use IEEE.STD_LOGIC_1164.all;
entity gh_DFF is
port(
D : in STD_LOGIC;
CLK : in STD_LOGIC;
rst : in STD_LOGIC;
Q : out STD_LOGIC
);
end gh_DFF;
architecture a of gh_DFF is
begin
process(CLK,rst)
begin
if (rst = '1') then
Q <= '0';
elsif (rising_edge(CLK)) then
Q <= D; // The latch should_not be included
// ie:- instead of D ; D should used
end if;
end process;
end a;
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
How does Vbe and Ic change with temperature?
Are you familiar with the term MESI?
For an AND-OR implementation of a two input Mux, how do you test for Stuck-At-0 and Stuck-At-1 faults at the internal nodes? (You can expect a circuit with some redundant logic)
Differences between IRSIM and SPICE?
Draw Vds-Ids curve for a MOSFET. Now, show how this curve changes with increasing Vgs.
What is the difference between the mealy and moore state machine?
Explain the Various steps in Synthesis?
Implement a function with both ratioed and domino logic and merits and demerits of each logic?
What happens if we use an Inverter instead of the Differential Sense Amplifier?
Implement a function with both ratioes and domino logic and merits and demerits of each logic?
What is the function of tie-high and tie-low cells?
Explain what is multiplexer?
Explain what is Verilog?
What products have you designed which have entered high volume production?
Explain why present VLSI circuits use MOSFETs instead of BJTs?