【正文】
if cqi=0000then carry_out=39。 end if。end if。 else cqi=cqi+39。139。139。 elsif clk39。139。 architecture art of t6 is signal cqi: std_logic_vector(3 downto 0)。 carry_out: out std_logic)。 ena: in std_logic。 entity t6 is port(clk: in std_logic。 use 。 2) 編程實現六進制計數器 六進制計數器源代碼 : library ieee。 cq=cqi。end if。 else carry_out=39。 process(cqi)is begin if cqi=9 then carry_out=39。 end if。end if。then if cqi9 then cqi=cqi+1。then if ena=39。event and clk=39。then cqi=0。 begin process(clk,clr,ena)is begin if clr=39。 end entity t10。 cq: out integer range 0 to 15。 clr: in std_l