-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathNotClock.vhd
More file actions
29 lines (25 loc) · 755 Bytes
/
NotClock.vhd
File metadata and controls
29 lines (25 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
----------------------------------------------------------------------------------
-- Engineer: Dylan Z. Baker
-- Create Date: 11:53:56 03/28/2016
-- Module Name: NotClock - Behavioral
-- Revision 0.01 - File Created
----------------------------------------------------------------------------------
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity NotClock is
PORT ( CLK_IN: in STD_LOGIC;
CLK_OUT: out STD_LOGIC);
end NotClock;
architecture Behavioral of NotClock is
signal CLOUT : STD_LOGIC;
begin
CLK_OUT <= CLOUT;
INVERT: process(CLK_IN)
begin
if (CLK_IN'event and CLK_IN = '0') then
CLOUT <= not CLK_IN;
elsif (CLK_IN'event and CLK_IN = '1') then
CLOUT <= not CLK_IN;
end if;
end process;
end Behavioral;