1
0
SEm-Labos/02-SplineInterpolator/SplineInterpolator/hdl/interpolatorTrigger_studentVersion.vhd

28 lines
517 B
VHDL

ARCHITECTURE studentVersion OF interpolatorTrigger IS
signal counter : unsigned(counterBitNb-1 downto 0);
BEGIN
process(clock, reset)
begin
if reset = '1' then
counter <= (others => '1');
elsif rising_edge(clock) then
if en = '1' then
counter <= counter - 1;
end if;
end if;
end process;
process(counter)
begin
if counter = 0 then
triggerOut <= '1';
else
triggerOut <= '0';
end if;
end process;
END ARCHITECTURE studentVersion;