1
0
SEm-Labos/02-SplineInterpolator/SplineInterpolator/hdl/interpolatorTrigger_studentVersion.vhd
2024-03-10 21:50:07 +01:00

30 lines
511 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 => '0');
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;