adspace


Help with VHDL programming. Write a VHDL code for a D-Latch with clear input ?? (Hint: Set up a “Process” with appropriate sensitivity list to get the desired D-Latch with Clr working.)

Inputs AND OUTPUTS:
entity Lab4b is
Port ( Clr, Clk, D : in STD_LOGIC;
Q : out STD_LOGIC);
end Lab4b;

Answer Posted / Shruti Goswami

Here's a simple VHDL code for a D-Latch with Clear input:nn```vhdlnentity Lab4b isn Port ( Clr, Clk, D : in STD_LOGIC;n Q : out STD_LOGICn );nend Lab4b;nnarchitecture Behavioral of Lab4b isnbeginn process(Clk, Clr)n beginn if rising_edge(Clk) thenn if Clr = '1' thenn Q <= '0';n elsen Q <= D;n end if;n end if;n end process;nend Behavioral;n```

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What types of CMOS memories have you designed? What were their size? Speed?

4738


Write a VLSI program that implements a toll booth controller?

4068


What work have you done on full chip Clock and Power distribution? What process technology and budgets were used?

3353


Process technology? What package was used and how did you model the package/system? What parasitic effects were considered?

3224