Prévia do material em texto
Step 1 of 1 8.040E VHDL program for an 8-bit modulo-N counter is, library IEEE; use use entity modncount is generic (N: natural := 10); port( CLR,CLK,LD:in STD_LOGIC; //clear input CLR, load input LD A:in STD_LOGIC_VECTOR(7 downto 0); Q:out STD_LOGIC_VECTOR(7 downto 0) ); end modncount; architecture modncount_arch of modncount is signal count: STD_LOGIC_VECTOR(7 downto 0); begin process(CLK,CLR) begin if CLR='1' then COUNT