-
Notifications
You must be signed in to change notification settings - Fork 0
/
lut_oscilator.vhd
executable file
·68 lines (56 loc) · 1.73 KB
/
lut_oscilator.vhd
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
----------------------------------------------------------------------------------
-- Company:
-- Engineer: Markus Happe, Christian Plessl
--
-- Create Date: 12:49:15 04/24/2012
-- Design Name:
-- Module Name: lut_oscilator - Behavioral
-- Project Name:
-- Target Devices:
-- Tool versions:
-- Description:
--
-- Dependencies:
--
-- Revision:
-- Revision 0.01 - File Created
-- Additional Comments:
--
----------------------------------------------------------------------------------
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
-- Uncomment the following library declaration if using
-- arithmetic functions with Signed or Unsigned values
--use IEEE.NUMERIC_STD.ALL;
-- Uncomment the following library declaration if instantiating
-- any Xilinx primitives in this code.
library UNISIM;
use UNISIM.VComponents.all;
entity lut_oscilator is
Port ( en : in STD_LOGIC;
Q : out STD_LOGIC);
end lut_oscilator;
architecture Behavioral of lut_oscilator is
signal sig_osc : STD_LOGIC;
attribute keep : string;
attribute keep of sig_osc : signal is "true";
attribute keep of Behavioral: architecture is "true";
attribute s: string;
attribute s of Behavioral: architecture is "yes";
attribute s of sig_osc: signal is "yes";
attribute DONT_TOUCH : string;
attribute DONT_TOUCH of sig_osc : signal is "TRUE";
attribute ALLOW_COMBINATORIAL_LOOPS : string;
attribute ALLOW_COMBINATORIAL_LOOPS of sig_osc : signal is "TRUE";
begin
lut_inst : LUT6
generic map (INIT => X"4444444444444444") -- Specify LUT Contents
port map ( I0 => sig_osc,
I1 => en,
I2 => sig_osc,
I3 => sig_osc,
I4 => sig_osc,
I5 => sig_osc,
O => sig_osc);
Q <= sig_osc;
end Behavioral;