VHDL——4位二进制加法计数器的实现
VHDL语言library ieee;use ieee.std_logic_1164.all;entity cnt4_1 is port(clk : in bit; q : buffer integer range 15 downto 0); --整数大小范围0~15end cnt4_1;architecture behave of cnt4_1 isbegin process(clk) begin if clk'event and clk = '1' then -