Implement D flip-flop with a couple of latches? Write a VHDL
Code for a D flip-flop?
Answer Posted / harvir
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;
end if;
end process;
end a;
Is This Answer Correct ? | 12 Yes | 3 No |
Post New Answer View All Answers
What is Charge Sharing? Explain the Charge Sharing problem while sampling data from a Bus
What are the Factors affecting Power Consumption on a chip?
Explain sizing of the inverter?
Basic Stuff related to Perl?
Explain the working of 4-bit Up/down Counter?
Tell me how MOSFET works.
Mention what are the different gates where Boolean logic are applicable?
What are the steps required to solve setup and hold violations in vlsi?
In a SRAM layout, which metal layers would you prefer for Word Lines and Bit Lines? Why?
Explain depletion region.
Write a program to explain the comparator?
What does the above code synthesize to?
Explain what is the use of defpararm?
what is the use of defpararm?
Calculate rise delay of a 3-input NAND gate driving a 3-input NOR gate through a 6mm long and 0.45m wide metal wire with sheet resistance R = 0.065 / and Cpermicron= 0.25 fF/m. The resistance and capacitance of the unit NMOS are 6.5k and 2.5fF. Use a 3 segment -model for the wire. Consider PMOS and NMOS size of reference inverter as 2 and 1 respectively. Use appropriate sizing for the NAND and NOR gate.