18use ieee.std_logic_1164.
all;
19use ieee.numeric_std.
all;
60 proc_regs:
process (
CLK)
63 if rising_edge(CLK) then
67 end process proc_regs;
73 variable ld_ccnt : slbit := '0';
83 n.bcnt := (others=>'0');
91 if unsigned(r.ccnt) = 0 then
93 n.sreg := '1' & r.sreg(8 downto 1);
94 n.bcnt := slv(unsigned(r.bcnt) + 1);
95 if unsigned(r.bcnt) = 9 then
106 if ld_ccnt = '1' then
109 n.ccnt := slv(unsigned(r.ccnt) - 1);
117 end process proc_next;
regs_type :=( cntzero,( others => '0'),( others => '1'), '0') regs_init
regs_type := regs_init N_REGS
regs_type := regs_init R_REGS
slv( CDWIDTH- 1 downto 0) :=( others => '0') cntzero
in CLKDIV slv( CDWIDTH- 1 downto 0)
std_logic_vector( 3 downto 0) slv4
std_logic_vector( 8 downto 0) slv9
std_logic_vector( 7 downto 0) slv8