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
Explain the working of Insights of a pass gate ?
Describe the various effects of scaling?
Draw the SRAM Write Circuitry
Draw the Layout of an Inverter?
What types of I/O have you designed? What were their size? Speed? Configuration? Voltage requirements?
In Verilog code what does “timescale 1 ns/ 1 ps” signifies?
Draw the timing diagram for a SRAM Read. What happens if we delay the enabling of Clock signal?
What are the changes that are provided to meet design power targets?
Explain the Various steps in Synthesis?
Write a program to explain the comparator?
What are the different design constraints occur in the synthesis phase?
what is multiplexer?
Draw Vds-Ids curve for a MOSFET. Now, show how this curve changes considering Channel Length Modulation.
What happens if we use an Inverter instead of the Differential Sense Amplifier?
what is the difference between the TTL chips and CMOS chips?