-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRing_Oscillator_Unit_3s.vhd
More file actions
57 lines (46 loc) · 1.41 KB
/
Ring_Oscillator_Unit_3s.vhd
File metadata and controls
57 lines (46 loc) · 1.41 KB
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
----------------------------------------------------------------------------------
-- Company: Industrial Systems Institute (ISI)
-- Engineer: Thanasis Tsakoulis
--
-- Create Date: 06/26/2025 04:01:39 PM
-- Design Name:
-- Module Name: Ring_Oscillator_Unit_3s - 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;
entity Ring_Oscillator_Unit_3s is
Port (
enable : in STD_LOGIC;
out_signal : out STD_LOGIC
);
end Ring_Oscillator_Unit_3s;
architecture Behavioral of Ring_Oscillator_Unit_3s is
signal s1, s2, s3 : STD_LOGIC;
-- Προστασία από synthesis optimization
attribute keep : string;
attribute dont_touch : string;
attribute keep of s1 : signal is "true";
attribute keep of s2 : signal is "true";
attribute keep of s3 : signal is "true";
attribute dont_touch of s1 : signal is "true";
attribute dont_touch of s2 : signal is "true";
attribute dont_touch of s3 : signal is "true";
begin
-- 3-stage ring oscillator
--s1 <= not (s3 and enable);
s1 <= not s3 when enable = '1' else '0';
s2 <= not s1;
s3 <= not s2;
out_signal <= s3;
end Behavioral;