Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Compare-Logic--
- library ieee;
- use ieee.std_logic_1164.all;
- use ieee.numeric_std.all;
- use work.all;
- entity compare_logic is
- port(
- tm_alarm, tm_watch : in std_logic_vector(15 downto 0);
- alarm : out std_logic
- );
- end;
- architecture behavioral of compare_logic is
- begin
- process(tm_watch)
- begin
- alarm <= '0';
- if tm_alarm = tm_watch then
- alarm <= '1';
- else
- alarm <='0';
- end if;
- end process;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement