-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSystem.vhd
More file actions
95 lines (79 loc) · 1.95 KB
/
Copy pathSystem.vhd
File metadata and controls
95 lines (79 loc) · 1.95 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
----------------------------------------------------------------------------------
-- Company:
-- Engineer:
--
-- Create Date: 06/06/2023 07:25:20 AM
-- Design Name:
-- Module Name: System - 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 leaf cells in this code.
--library UNISIM;
--use UNISIM.VComponents.all;
entity System is
Port (
Clk : in STD_LOGIC;
Res : in STD_LOGIC;
Zero: out STD_LOGIC;
Overflow: out STD_LOGIC;
S_7Seg : out STD_LOGIC_VECTOR(6 downto 0);
S_out : out STD_LOGIC_VECTOR(3 downto 0);
Anode : out STD_LOGIC_VECTOR(3 downto 0)
);
end System;
architecture Behavioral of System is
component nano_processor
Port ( Clk : in STD_LOGIC;
Res : in STD_LOGIC;
Overflow : out STD_LOGIC;
Zero : out STD_LOGIC;
Output : out STD_LOGIC_VECTOR (3 downto 0));
end component;
component LUT_16_7
Port ( address : in STD_LOGIC_VECTOR (3 downto 0);
data : out STD_LOGIC_VECTOR (6 downto 0));
end component;
component Slow_Clk
Port ( Clk_in : in STD_LOGIC;
Clk_out : out STD_LOGIC);
end component;
signal Slow_Clk_out : STD_LOGIC;
signal Reg7out : STD_LOGIC_VECTOR(3 downto 0);
begin
Slow_Clk_0 : Slow_Clk
port map(
Clk_in => Clk,
Clk_out => Slow_Clk_out
);
nano_processor_0 : nano_processor
port map(
Clk => Slow_Clk_out,
Res => Res,
Overflow => Overflow,
Zero => Zero,
Output => Reg7out
);
LUT_16_7_0 : LUT_16_7
port map(
address => Reg7out,
data => S_7Seg
);
S_out <= Reg7out;
Anode <= "1110";
end Behavioral;