Processes | |
rising_clock | ( CLOCK ) |
counter for metastable state | |
Signals | |
int_operate | std_logic := ' 0 ' |
int_latch | std_logic := ' 0 ' |
int_count | std_logic_vector ( 2 downto 0 ) := " 000 " |
Definition at line 41 of file univibrator.vhd.
rising_clock | ( CLOCK ) |
counter for metastable state
Definition at line 50 of file univibrator.vhd.
00050 rising_clock : process (CLOCK) is --positive edges 00051 begin 00052 if (CLOCK'event and CLOCK = '1') then --rising edge 00053 if int_latch = '0' and TRIGER = '1' then --rising edge of TRIGGER detected 00054 int_operate <= '1'; 00055 SIGNAL_OUT <= '1'; 00056 int_count <= "000"; 00057 end if; 00058 if int_operate = '1' then 00059 int_count <= int_count + 1; 00060 if int_count = "011" then --end of signal 00061 int_operate <= '0'; 00062 SIGNAL_OUT <= '0'; 00063 end if; 00064 end if; 00065 int_latch <= TRIGER; 00066 end if; 00067 end process;