Compare commits
6 Commits
d2383f0bd5
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5d2ce073c8 | ||
|
|
e4359119aa | ||
|
|
ad76e0b356 | ||
|
|
41f88a7072 | ||
|
|
67fb969151 | ||
|
|
23eb5ae24c |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -29,3 +29,5 @@
|
|||||||
# Windows specific
|
# Windows specific
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
Desktop.ini
|
Desktop.ini
|
||||||
|
|
||||||
|
project_7/hx.exe
|
||||||
|
|||||||
@@ -12,16 +12,18 @@ create_clock -add -name sys_clk_pin -period 10.00 -waveform {0 5} [get_ports CLK
|
|||||||
set_property -dict { PACKAGE_PIN V17 IOSTANDARD LVCMOS33 } [get_ports {RST}]
|
set_property -dict { PACKAGE_PIN V17 IOSTANDARD LVCMOS33 } [get_ports {RST}]
|
||||||
set_property -dict { PACKAGE_PIN V16 IOSTANDARD LVCMOS33 } [get_ports {START}]
|
set_property -dict { PACKAGE_PIN V16 IOSTANDARD LVCMOS33 } [get_ports {START}]
|
||||||
|
|
||||||
#set_property -dict { PACKAGE_PIN W16 IOSTANDARD LVCMOS33 } [get_ports {sw[2]}]
|
set_property -dict { PACKAGE_PIN W16 IOSTANDARD LVCMOS33 } [get_ports {SW_MODE}]
|
||||||
#set_property -dict { PACKAGE_PIN W17 IOSTANDARD LVCMOS33 } [get_ports {sw[3]}]
|
set_property -dict { PACKAGE_PIN W17 IOSTANDARD LVCMOS33 } [get_ports {SW_STOP_SET}]
|
||||||
#set_property -dict { PACKAGE_PIN W15 IOSTANDARD LVCMOS33 } [get_ports {sw[4]}]
|
set_property -dict { PACKAGE_PIN W15 IOSTANDARD LVCMOS33 } [get_ports {SW_ALARM_SET}]
|
||||||
#set_property -dict { PACKAGE_PIN V15 IOSTANDARD LVCMOS33 } [get_ports {sw[5]}]
|
#set_property -dict { PACKAGE_PIN V15 IOSTANDARD LVCMOS33 } [get_ports {sw[5]}]
|
||||||
#set_property -dict { PACKAGE_PIN W14 IOSTANDARD LVCMOS33 } [get_ports {sw[6]}]
|
#set_property -dict { PACKAGE_PIN W14 IOSTANDARD LVCMOS33 } [get_ports {sw[6]}]
|
||||||
#set_property -dict { PACKAGE_PIN W13 IOSTANDARD LVCMOS33 } [get_ports {sw[7]}]
|
#set_property -dict { PACKAGE_PIN W13 IOSTANDARD LVCMOS33 } [get_ports {sw[7]}]
|
||||||
#set_property -dict { PACKAGE_PIN V2 IOSTANDARD LVCMOS33 } [get_ports {sw[8]}]
|
#set_property -dict { PACKAGE_PIN V2 IOSTANDARD LVCMOS33 } [get_ports {RST_B}]
|
||||||
#set_property -dict { PACKAGE_PIN T3 IOSTANDARD LVCMOS33 } [get_ports {sw[9]}]
|
#set_property -dict { PACKAGE_PIN T3 IOSTANDARD LVCMOS33 } [get_ports {RST_C}]
|
||||||
#set_property -dict { PACKAGE_PIN T2 IOSTANDARD LVCMOS33 } [get_ports {sw[10]}]
|
# Stopky
|
||||||
#set_property -dict { PACKAGE_PIN R3 IOSTANDARD LVCMOS33 } [get_ports {sw[11]}]
|
set_property -dict { PACKAGE_PIN T2 IOSTANDARD LVCMOS33 } [get_ports {RST_C}]
|
||||||
|
# Budik
|
||||||
|
set_property -dict { PACKAGE_PIN R3 IOSTANDARD LVCMOS33 } [get_ports {RST_B}]
|
||||||
set_property -dict { PACKAGE_PIN W2 IOSTANDARD LVCMOS33 } [get_ports {SW_DIN[0]}]
|
set_property -dict { PACKAGE_PIN W2 IOSTANDARD LVCMOS33 } [get_ports {SW_DIN[0]}]
|
||||||
set_property -dict { PACKAGE_PIN U1 IOSTANDARD LVCMOS33 } [get_ports {SW_DIN[1]}]
|
set_property -dict { PACKAGE_PIN U1 IOSTANDARD LVCMOS33 } [get_ports {SW_DIN[1]}]
|
||||||
set_property -dict { PACKAGE_PIN T1 IOSTANDARD LVCMOS33 } [get_ports {SW_DIN[2]}]
|
set_property -dict { PACKAGE_PIN T1 IOSTANDARD LVCMOS33 } [get_ports {SW_DIN[2]}]
|
||||||
@@ -29,7 +31,7 @@ set_property -dict { PACKAGE_PIN R2 IOSTANDARD LVCMOS33 } [get_ports {SW_DIN[
|
|||||||
|
|
||||||
|
|
||||||
## LEDs
|
## LEDs
|
||||||
#set_property -dict { PACKAGE_PIN U16 IOSTANDARD LVCMOS33 } [get_ports {led[0]}]
|
set_property -dict { PACKAGE_PIN U16 IOSTANDARD LVCMOS33 } [get_ports {ALARM_LED}]
|
||||||
#set_property -dict { PACKAGE_PIN E19 IOSTANDARD LVCMOS33 } [get_ports {led[1]}]
|
#set_property -dict { PACKAGE_PIN E19 IOSTANDARD LVCMOS33 } [get_ports {led[1]}]
|
||||||
#set_property -dict { PACKAGE_PIN U19 IOSTANDARD LVCMOS33 } [get_ports {led[2]}]
|
#set_property -dict { PACKAGE_PIN U19 IOSTANDARD LVCMOS33 } [get_ports {led[2]}]
|
||||||
#set_property -dict { PACKAGE_PIN V19 IOSTANDARD LVCMOS33 } [get_ports {led[3]}]
|
#set_property -dict { PACKAGE_PIN V19 IOSTANDARD LVCMOS33 } [get_ports {led[3]}]
|
||||||
|
|||||||
186
project_7/project_5.srcs/sources_1/new/clock_logic.vhd
Normal file
186
project_7/project_5.srcs/sources_1/new/clock_logic.vhd
Normal file
@@ -0,0 +1,186 @@
|
|||||||
|
-- clock_logic.vhd
|
||||||
|
|
||||||
|
|
||||||
|
library IEEE;
|
||||||
|
use IEEE.STD_LOGIC_1164.ALL;
|
||||||
|
|
||||||
|
|
||||||
|
entity clock_logic is
|
||||||
|
Port (
|
||||||
|
CLK : in STD_LOGIC;
|
||||||
|
RST : in STD_LOGIC;
|
||||||
|
CE_1HZ : in STD_LOGIC; -- Enable signal from the divider
|
||||||
|
SW_DIN : in STD_LOGIC_VECTOR (3 downto 0); -- set data on btn_load
|
||||||
|
BTN_LOAD : in STD_LOGIC_VECTOR (3 downto 0);
|
||||||
|
-- Outputs to the top module/display
|
||||||
|
S_UNITS : out STD_LOGIC_VECTOR (3 downto 0);
|
||||||
|
S_TENS : out STD_LOGIC_VECTOR (3 downto 0);
|
||||||
|
M_UNITS : out STD_LOGIC_VECTOR (3 downto 0);
|
||||||
|
M_TENS : out STD_LOGIC_VECTOR (3 downto 0);
|
||||||
|
H_UNITS : out STD_LOGIC_VECTOR (3 downto 0);
|
||||||
|
H_TENS : out STD_LOGIC_VECTOR (3 downto 0)
|
||||||
|
);
|
||||||
|
end clock_logic;
|
||||||
|
|
||||||
|
|
||||||
|
architecture Behavioral of clock_logic is
|
||||||
|
-- TODO CHECK AGAINST COUNTER.VHD IF NEEDED
|
||||||
|
component counter is
|
||||||
|
Generic ( MAX_LIMIT : STD_LOGIC_VECTOR(3 downto 0) := "1001" ); -- Default to 9
|
||||||
|
Port ( CLK : in STD_LOGIC;
|
||||||
|
CE : in STD_LOGIC;
|
||||||
|
PE : in STD_LOGIC;
|
||||||
|
DIN : in STD_LOGIC_VECTOR(3 downto 0);
|
||||||
|
RST : in STD_LOGIC;
|
||||||
|
TC : out STD_LOGIC;
|
||||||
|
COUNT_OUT : out STD_LOGIC_VECTOR (3 downto 0));
|
||||||
|
end component;
|
||||||
|
|
||||||
|
-- Internal signals to connect the counters
|
||||||
|
signal sig_s_units, sig_s_tens : std_logic_vector(3 downto 0);
|
||||||
|
signal sig_m_units, sig_m_tens : std_logic_vector(3 downto 0);
|
||||||
|
signal sig_h_units, sig_h_tens : std_logic_vector(3 downto 0);
|
||||||
|
-- Carry signals (TC)
|
||||||
|
signal tc_su, tc_st, tc_mu, tc_mt, tc_hu : std_logic;
|
||||||
|
-- Reset for hours (to handle the 24 reset)
|
||||||
|
signal hour_reset : std_logic;
|
||||||
|
|
||||||
|
-- Specific load enable signals that check for boundaries
|
||||||
|
signal load_h_tens, load_h_units : std_logic;
|
||||||
|
signal load_m_tens, load_m_units : std_logic;
|
||||||
|
|
||||||
|
-- Internal signals for the "Safe" load triggers
|
||||||
|
signal safe_load_su, safe_load_st : std_logic;
|
||||||
|
signal safe_load_mu, safe_load_mt : std_logic;
|
||||||
|
signal safe_load_hu, safe_load_ht : std_logic;
|
||||||
|
begin
|
||||||
|
-- MINUTES CONSTRAINTS (Max 59)
|
||||||
|
load_m_units <= BTN_LOAD(0) when (SW_DIN <= "1001") else '0'; -- 0-9
|
||||||
|
load_m_tens <= BTN_LOAD(1) when (SW_DIN <= "0101") else '0'; -- 0-5
|
||||||
|
-- HOURS CONSTRAINTS (Max 23)
|
||||||
|
-- Rule A: Cannot load Tens > 2.
|
||||||
|
-- Rule B: If Tens is 2, cannot load Units > 3.
|
||||||
|
-- Rule C: If Units is > 3, cannot load Tens into 2.
|
||||||
|
load_h_tens <= BTN_LOAD(3) when (
|
||||||
|
SW_DIN < "0010" or
|
||||||
|
(SW_DIN = "0010" and sig_h_units <= "0011")
|
||||||
|
) else '0';
|
||||||
|
|
||||||
|
load_h_units <= BTN_LOAD(2) when (
|
||||||
|
(sig_h_tens < "0010" and SW_DIN <= "1001") or
|
||||||
|
(sig_h_tens = "0010" and SW_DIN <= "0011")
|
||||||
|
) else '0';
|
||||||
|
|
||||||
|
-------------------------------------------------------
|
||||||
|
-- SECONDS SECTION
|
||||||
|
-- SECONDS UNITS (0-9) - Triggered by the 1Hz pulse
|
||||||
|
U_CNT_SEC_UNITS : counter
|
||||||
|
generic map ( MAX_LIMIT => "1001" ) -- do 9
|
||||||
|
port map (
|
||||||
|
CLK => CLK,
|
||||||
|
RST => RST,
|
||||||
|
CE => CE_1HZ,
|
||||||
|
PE => '0',
|
||||||
|
DIN => "0000", -- Seconds usually don't need manual load
|
||||||
|
TC => tc_su,
|
||||||
|
COUNT_OUT => sig_s_units
|
||||||
|
);
|
||||||
|
|
||||||
|
-- SECONDS TENS (0-5) - Triggered when Sec Units reach 9
|
||||||
|
U_CNT_SEC_TENS : counter
|
||||||
|
generic map ( MAX_LIMIT => "0101" ) -- do 5
|
||||||
|
port map (
|
||||||
|
CLK => CLK,
|
||||||
|
RST => RST,
|
||||||
|
CE => tc_su,
|
||||||
|
PE => '0',
|
||||||
|
DIN => "0000",
|
||||||
|
TC => tc_st,
|
||||||
|
COUNT_OUT => sig_s_tens
|
||||||
|
);
|
||||||
|
|
||||||
|
-------------------------------------------------------
|
||||||
|
-- MINUTES SECTION
|
||||||
|
|
||||||
|
-- MINUTES UNITS (0-9) - When Seconds reach 59
|
||||||
|
U_CNT_MIN_UNITS : counter
|
||||||
|
generic map ( MAX_LIMIT => "1001" ) -- do 9
|
||||||
|
port map (
|
||||||
|
CLK => CLK,
|
||||||
|
RST => RST,
|
||||||
|
CE => tc_st,
|
||||||
|
PE => load_m_units,
|
||||||
|
DIN => SW_DIN,
|
||||||
|
TC => tc_mu,
|
||||||
|
COUNT_OUT => sig_m_units
|
||||||
|
);
|
||||||
|
|
||||||
|
-- MINUTES TENS (0-5)
|
||||||
|
U_CNT_MIN_TENS : counter
|
||||||
|
generic map ( MAX_LIMIT => "0101" ) -- do 5
|
||||||
|
port map (
|
||||||
|
CLK => CLK,
|
||||||
|
RST => RST,
|
||||||
|
CE => tc_mu,
|
||||||
|
PE => load_m_tens,
|
||||||
|
DIN => SW_DIN,
|
||||||
|
TC => tc_mt,
|
||||||
|
COUNT_OUT => sig_m_tens
|
||||||
|
);
|
||||||
|
|
||||||
|
-------------------------------------------------------
|
||||||
|
-- HOURS SECTION
|
||||||
|
-- If we are at 23:59:59, the next tick should reset hours
|
||||||
|
process(sig_h_tens, sig_h_units, tc_mt, RST)
|
||||||
|
begin
|
||||||
|
if RST = '1' then
|
||||||
|
hour_reset <= '1';
|
||||||
|
-- TICK: If clock is at 23:59:59 and the minutes tick over
|
||||||
|
elsif (sig_h_tens = "0010" and sig_h_units = "0011" and tc_mt = '1') then
|
||||||
|
hour_reset <= '1';
|
||||||
|
-- LOAD PROTECTION: If current value is 24:XX or higher
|
||||||
|
-- This part works even if tc_mt is '0' (for the alarm)
|
||||||
|
elsif (sig_h_tens = "0010" and sig_h_units >= "0100") then
|
||||||
|
hour_reset <= '1';
|
||||||
|
elsif (sig_h_tens > "0010") then
|
||||||
|
hour_reset <= '1';
|
||||||
|
else
|
||||||
|
hour_reset <= '0';
|
||||||
|
end if;
|
||||||
|
end process;
|
||||||
|
|
||||||
|
-- HOURS UNITS (0-9)
|
||||||
|
U_CNT_HOR_UNITS : counter
|
||||||
|
generic map ( MAX_LIMIT => "1001" ) -- To 9
|
||||||
|
port map (
|
||||||
|
CLK => CLK,
|
||||||
|
RST => hour_reset,
|
||||||
|
CE => tc_mt,
|
||||||
|
PE => load_h_units,
|
||||||
|
DIN => SW_DIN,
|
||||||
|
TC => tc_hu,
|
||||||
|
COUNT_OUT => sig_h_units
|
||||||
|
);
|
||||||
|
|
||||||
|
-- HOURS TENS (0-2)
|
||||||
|
U_CNT_HOR_TENS : counter
|
||||||
|
generic map ( MAX_LIMIT => "0010" ) -- To 2
|
||||||
|
port map (
|
||||||
|
CLK => CLK,
|
||||||
|
RST => hour_reset,
|
||||||
|
CE => tc_hu,
|
||||||
|
PE => load_h_tens,
|
||||||
|
DIN => SW_DIN,
|
||||||
|
TC => open,
|
||||||
|
COUNT_OUT => sig_h_tens
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
-- Drive output ports
|
||||||
|
S_UNITS <= sig_s_units;
|
||||||
|
S_TENS <= sig_s_tens;
|
||||||
|
M_UNITS <= sig_m_units;
|
||||||
|
M_TENS <= sig_m_tens;
|
||||||
|
H_UNITS <= sig_h_units;
|
||||||
|
H_TENS <= sig_h_tens;
|
||||||
|
end Behavioral;
|
||||||
@@ -1,37 +1,9 @@
|
|||||||
----------------------------------------------------------------------------------
|
-- project_7/project_5.srcs/sources_1/new/counter.vhd
|
||||||
-- Company:
|
|
||||||
-- Engineer:
|
|
||||||
--
|
|
||||||
-- Create Date: 09.03.2026 15:14:35
|
|
||||||
-- Design Name:
|
|
||||||
-- Module Name: counter - Behavioral
|
|
||||||
-- Project Name:
|
|
||||||
-- Target Devices:
|
|
||||||
-- Tool Versions:
|
|
||||||
-- Description:
|
|
||||||
--
|
|
||||||
-- Dependencies:
|
|
||||||
--
|
|
||||||
-- Revision:
|
|
||||||
-- Revision 0.01 - File Created
|
|
||||||
-- Additional Comments:
|
|
||||||
--
|
|
||||||
----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
library IEEE;
|
library IEEE;
|
||||||
use IEEE.STD_LOGIC_1164.ALL;
|
use IEEE.STD_LOGIC_1164.ALL;
|
||||||
use IEEE.STD_LOGIC_UNSIGNED.ALL;
|
use IEEE.STD_LOGIC_UNSIGNED.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 counter is
|
entity counter is
|
||||||
Generic ( MAX_LIMIT : STD_LOGIC_VECTOR(3 downto 0) := "1001" ); -- Default to 9
|
Generic ( MAX_LIMIT : STD_LOGIC_VECTOR(3 downto 0) := "1001" ); -- Default to 9
|
||||||
Port ( CLK : in STD_LOGIC;
|
Port ( CLK : in STD_LOGIC;
|
||||||
@@ -45,7 +17,9 @@ end counter;
|
|||||||
|
|
||||||
architecture Behavioral of counter is
|
architecture Behavioral of counter is
|
||||||
-- Internal signal to keep track of the current number
|
-- Internal signal to keep track of the current number
|
||||||
signal s_cnt : STD_LOGIC_VECTOR(3 downto 0) := "0000";
|
signal s_cnt : STD_LOGIC_VECTOR(3 downto 0) := (others => '0');
|
||||||
|
-- (others => '0') je to iste ako "0000" pre 4 bity. Ale narozdiel od hardcode
|
||||||
|
-- robi nuly cez vsetky bity, takze zalezi na pocte bitov rodica
|
||||||
begin
|
begin
|
||||||
|
|
||||||
-- Main counting logic
|
-- Main counting logic
|
||||||
@@ -54,23 +28,18 @@ begin
|
|||||||
if rising_edge(CLK) then
|
if rising_edge(CLK) then
|
||||||
if RST = '1' then
|
if RST = '1' then
|
||||||
s_cnt <= "0000";
|
s_cnt <= "0000";
|
||||||
TC <= '0'; -- Reset TC
|
|
||||||
elsif PE = '1' then
|
elsif PE = '1' then
|
||||||
s_cnt <= DIN;
|
s_cnt <= DIN;
|
||||||
TC <= '0';
|
|
||||||
elsif CE = '1' then
|
elsif CE = '1' then
|
||||||
if s_cnt = MAX_LIMIT then
|
if s_cnt = MAX_LIMIT then
|
||||||
s_cnt <= "0000"; -- Reset to 0 when limit is hit
|
s_cnt <= (others => '0'); -- Reset to 0 when limit is hit
|
||||||
TC <= '1';
|
|
||||||
else
|
else
|
||||||
s_cnt <= s_cnt + 1; -- Otherwise increment
|
s_cnt <= s_cnt + 1; -- Otherwise increment
|
||||||
TC <= '0';
|
|
||||||
end if;
|
end if;
|
||||||
else
|
|
||||||
TC <= '0';
|
|
||||||
end if;
|
end if;
|
||||||
end if;
|
end if;
|
||||||
end process;
|
end process;
|
||||||
|
TC <= '1' when (s_cnt = MAX_LIMIT and CE = '1') else '0';
|
||||||
|
|
||||||
COUNT_OUT <= s_cnt;
|
COUNT_OUT <= s_cnt;
|
||||||
|
|
||||||
|
|||||||
64
project_7/project_5.srcs/sources_1/new/display_drive.vhd
Normal file
64
project_7/project_5.srcs/sources_1/new/display_drive.vhd
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
-- display_drive.vhd
|
||||||
|
|
||||||
|
|
||||||
|
library IEEE;
|
||||||
|
use IEEE.STD_LOGIC_1164.ALL;
|
||||||
|
|
||||||
|
|
||||||
|
entity display_driver is
|
||||||
|
Port (
|
||||||
|
CLK : in STD_LOGIC; -- Connect to 400Hz signal
|
||||||
|
RST : in STD_LOGIC;
|
||||||
|
-- The four BCD digits from your counters
|
||||||
|
DIGIT_0 : in STD_LOGIC_VECTOR (3 downto 0);
|
||||||
|
DIGIT_1 : in STD_LOGIC_VECTOR (3 downto 0);
|
||||||
|
DIGIT_2 : in STD_LOGIC_VECTOR (3 downto 0);
|
||||||
|
DIGIT_3 : in STD_LOGIC_VECTOR (3 downto 0);
|
||||||
|
-- Physical outputs to the FPGA pins
|
||||||
|
SEGMENTS : out STD_LOGIC_VECTOR (7 downto 0);
|
||||||
|
ANODES : out STD_LOGIC_VECTOR (3 downto 0)
|
||||||
|
);
|
||||||
|
end display_driver;
|
||||||
|
|
||||||
|
architecture Behavioral of display_driver is
|
||||||
|
|
||||||
|
component counter_2bit is
|
||||||
|
Port ( CLK : in STD_LOGIC; RST : in STD_LOGIC;
|
||||||
|
COUNT_OUT : out STD_LOGIC_VECTOR (1 downto 0));
|
||||||
|
end component;
|
||||||
|
|
||||||
|
component decoder_an is
|
||||||
|
Port ( SEL : in STD_LOGIC_VECTOR (1 downto 0);
|
||||||
|
ANODES : out STD_LOGIC_VECTOR (3 downto 0));
|
||||||
|
end component;
|
||||||
|
|
||||||
|
component mux is
|
||||||
|
Port ( I0, I1, I2, I3 : in STD_LOGIC_VECTOR (3 downto 0);
|
||||||
|
S : in STD_LOGIC_VECTOR (1 downto 0);
|
||||||
|
Y : out STD_LOGIC_VECTOR (3 downto 0));
|
||||||
|
end component;
|
||||||
|
|
||||||
|
component dec_seg is
|
||||||
|
Port ( bcd : in STD_LOGIC_VECTOR (3 downto 0);
|
||||||
|
seg : out STD_LOGIC_VECTOR (7 downto 0));
|
||||||
|
end component;
|
||||||
|
|
||||||
|
-- Internal signals stay here now
|
||||||
|
signal s_cnt_2bit : std_logic_vector(1 downto 0);
|
||||||
|
signal s_mux_out : std_logic_vector(3 downto 0);
|
||||||
|
|
||||||
|
begin
|
||||||
|
U_CNT_2BIT : counter_2bit
|
||||||
|
port map (CLK => CLK, RST => RST, COUNT_OUT => s_cnt_2bit);
|
||||||
|
|
||||||
|
U_DEC_ANODES : decoder_an
|
||||||
|
port map (SEL => s_cnt_2bit, ANODES => ANODES);
|
||||||
|
|
||||||
|
U_MUX : mux
|
||||||
|
port map (I0 => DIGIT_0, I1 => DIGIT_1, I2 => DIGIT_2, I3 => DIGIT_3,
|
||||||
|
S => s_cnt_2bit, Y => s_mux_out);
|
||||||
|
|
||||||
|
U_DEC_SEG : dec_seg
|
||||||
|
port map (BCD => s_mux_out, SEG => SEGMENTS);
|
||||||
|
|
||||||
|
end Behavioral;
|
||||||
@@ -1,124 +1,82 @@
|
|||||||
----------------------------------------------------------------------------------
|
-- top_modul.vhd
|
||||||
-- Company:
|
|
||||||
-- Engineer:
|
|
||||||
--
|
|
||||||
-- Create Date: 09.03.2026 14:40:14
|
|
||||||
-- Design Name:
|
|
||||||
-- Module Name: top_modul - Behavioral
|
|
||||||
-- Project Name:
|
|
||||||
-- Target Devices:
|
|
||||||
-- Tool Versions:
|
|
||||||
-- Description:
|
|
||||||
--
|
|
||||||
-- Dependencies:
|
|
||||||
--
|
|
||||||
-- Revision:
|
|
||||||
-- Revision 0.01 - File Created
|
|
||||||
-- Additional Comments:
|
|
||||||
--
|
|
||||||
----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
library IEEE;
|
library IEEE;
|
||||||
use IEEE.STD_LOGIC_1164.ALL;
|
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 top_modul is
|
entity top_modul is
|
||||||
Port ( CLK : in STD_LOGIC;
|
Port ( CLK : in STD_LOGIC;
|
||||||
RST : in STD_LOGIC;
|
RST : in STD_LOGIC;
|
||||||
START : in STD_LOGIC;
|
START : in STD_LOGIC;
|
||||||
SW_DIN : in STD_LOGIC_VECTOR (3 downto 0); -- The value to set
|
SW_MODE : in STD_LOGIC; -- '0' = HH:MM, '1' = MM:SS
|
||||||
|
SW_ALARM_SET : in STD_LOGIC; -- '0' = Display Clock, '1' = Set Alarm
|
||||||
|
SW_STOP_SET : in STD_LOGIC; -- '0' = Display Clock, '1' = Set Stopky
|
||||||
|
SW_DIN : in STD_LOGIC_VECTOR (3 downto 0); -- Value to set
|
||||||
BTN_LOAD : in STD_LOGIC_VECTOR (3 downto 0); -- Which digit to set
|
BTN_LOAD : in STD_LOGIC_VECTOR (3 downto 0); -- Which digit to set
|
||||||
|
RST_B : in STD_LOGIC;
|
||||||
|
RST_C : in STD_LOGIC;
|
||||||
SEGMENTS : out STD_LOGIC_VECTOR (7 downto 0);
|
SEGMENTS : out STD_LOGIC_VECTOR (7 downto 0);
|
||||||
ANODS : out STD_LOGIC_VECTOR (3 downto 0));
|
ANODS : out STD_LOGIC_VECTOR (3 downto 0);
|
||||||
|
ALARM_LED : out STD_LOGIC -- LED lights up when alarm triggers
|
||||||
|
);
|
||||||
end top_modul;
|
end top_modul;
|
||||||
|
|
||||||
architecture Behavioral of top_modul is
|
architecture Behavioral of top_modul is
|
||||||
|
|
||||||
component divider is
|
component divider is
|
||||||
Port ( CLK : in STD_LOGIC;
|
Port ( CLK : in STD_LOGIC;
|
||||||
RST : in STD_LOGIC;
|
RST : in STD_LOGIC;
|
||||||
CLK_1_Hz : out STD_LOGIC); -- This will be our enable pulse
|
CLK_1_Hz : out STD_LOGIC); -- Enable pulse
|
||||||
end component;
|
end component;
|
||||||
|
|
||||||
component divider_400Hz is
|
component divider_400Hz is
|
||||||
Port ( CLK : in STD_LOGIC;
|
Port ( CLK : in STD_LOGIC;
|
||||||
RST : in STD_LOGIC;
|
RST : in STD_LOGIC;
|
||||||
CLK_400_Hz : out STD_LOGIC); -- This will be our enable pulse
|
CLK_400_Hz : out STD_LOGIC); -- Enable pulse
|
||||||
end component;
|
|
||||||
|
|
||||||
component counter is
|
|
||||||
Generic ( MAX_LIMIT : STD_LOGIC_VECTOR(3 downto 0) := "1001" ); -- Default to 9
|
|
||||||
Port ( CLK : in STD_LOGIC;
|
|
||||||
CE : in STD_LOGIC;
|
|
||||||
PE : in STD_LOGIC;
|
|
||||||
DIN : in STD_LOGIC_VECTOR(3 downto 0);
|
|
||||||
RST : in STD_LOGIC;
|
|
||||||
TC : out STD_LOGIC;
|
|
||||||
COUNT_OUT : out STD_LOGIC_VECTOR (3 downto 0));
|
|
||||||
end component;
|
|
||||||
|
|
||||||
component counter_2bit is
|
|
||||||
Port ( CLK : in STD_LOGIC;
|
|
||||||
RST : in STD_LOGIC;
|
|
||||||
COUNT_OUT : out STD_LOGIC_VECTOR (1 downto 0));
|
|
||||||
end component;
|
|
||||||
|
|
||||||
component decoder_an is
|
|
||||||
Port ( SEL : in STD_LOGIC_VECTOR (1 downto 0);
|
|
||||||
ANODES : out STD_LOGIC_VECTOR (3 downto 0));
|
|
||||||
end component;
|
|
||||||
|
|
||||||
component mux is
|
|
||||||
Port ( I0 : in STD_LOGIC_VECTOR (3 downto 0);
|
|
||||||
I1 : in STD_LOGIC_VECTOR (3 downto 0);
|
|
||||||
I2 : in STD_LOGIC_VECTOR (3 downto 0);
|
|
||||||
I3 : in STD_LOGIC_VECTOR (3 downto 0);
|
|
||||||
S : in STD_LOGIC_VECTOR (1 downto 0);
|
|
||||||
Y : out STD_LOGIC_VECTOR (3 downto 0));
|
|
||||||
end component;
|
|
||||||
|
|
||||||
component dec_seg is
|
|
||||||
Port ( bcd : in STD_LOGIC_VECTOR (3 downto 0);
|
|
||||||
seg : out STD_LOGIC_VECTOR (7 downto 0));
|
|
||||||
end component;
|
end component;
|
||||||
|
|
||||||
signal clk_1_Hz : std_logic;
|
signal clk_1_Hz : std_logic;
|
||||||
signal clk_400_Hz : std_logic;
|
signal clk_400_Hz : std_logic;
|
||||||
|
|
||||||
signal s_ce_units : std_logic;
|
signal s_ce_units : std_logic;
|
||||||
-- Internal signals to connect the counters
|
|
||||||
signal sig_m_units : std_logic_vector(3 downto 0);
|
|
||||||
signal sig_m_tens : std_logic_vector(3 downto 0);
|
|
||||||
signal sig_h_units : std_logic_vector(3 downto 0);
|
|
||||||
signal sig_h_tens : std_logic_vector(3 downto 0);
|
|
||||||
-- Carry signals (TC)
|
|
||||||
signal tc_mu, tc_mt, tc_hu : std_logic;
|
|
||||||
-- Reset for hours (to handle the 24 reset)
|
|
||||||
signal hour_reset : std_logic;
|
|
||||||
|
|
||||||
signal s_cnt_2bit : std_logic_vector(1 downto 0);
|
-- Top_modul can carry data between the two submodules thanks to this
|
||||||
signal s_mux_out : std_logic_vector(3 downto 0);
|
signal sig_s_units, sig_s_tens : std_logic_vector(3 downto 0);
|
||||||
|
signal sig_m_units, sig_m_tens : std_logic_vector(3 downto 0);
|
||||||
|
signal sig_h_units, sig_h_tens : std_logic_vector(3 downto 0);
|
||||||
|
|
||||||
|
-- Alarm display clock
|
||||||
|
signal alrm_s_units, alrm_s_tens : std_logic_vector(3 downto 0);
|
||||||
|
signal alrm_m_units, alrm_m_tens : std_logic_vector(3 downto 0);
|
||||||
|
signal alrm_h_units, alrm_h_tens : std_logic_vector(3 downto 0);
|
||||||
|
|
||||||
|
-- stopky clock
|
||||||
|
signal stop_s_units, stop_s_tens : std_logic_vector(3 downto 0);
|
||||||
|
signal stop_m_units, stop_m_tens : std_logic_vector(3 downto 0);
|
||||||
|
signal stop_h_units, stop_h_tens : std_logic_vector(3 downto 0);
|
||||||
|
-- cap stopky clock
|
||||||
|
signal cap_s_units, cap_s_tens : std_logic_vector(3 downto 0);
|
||||||
|
signal cap_m_units, cap_m_tens : std_logic_vector(3 downto 0);
|
||||||
|
signal cap_h_units, cap_h_tens : std_logic_vector(3 downto 0);
|
||||||
|
|
||||||
|
-- Signals to send to the display
|
||||||
|
signal d0, d1, d2, d3 : std_logic_vector(3 downto 0);
|
||||||
|
|
||||||
|
signal load_clock : std_logic_vector(3 downto 0);
|
||||||
|
signal load_alarm : std_logic_vector(3 downto 0);
|
||||||
|
signal load_stopky : std_logic_vector(3 downto 0);
|
||||||
|
|
||||||
|
-- stopky ci behaju
|
||||||
|
signal stops_running : std_logic := '0';
|
||||||
|
signal stops_reset: std_logic := '0';
|
||||||
|
signal sw_stop_prev : std_logic := '0';
|
||||||
begin
|
begin
|
||||||
|
|
||||||
U_DIV : divider
|
U_DIV_1HZ : divider
|
||||||
port map (
|
port map (
|
||||||
CLK => CLK,
|
CLK => CLK,
|
||||||
RST => RST,
|
RST => RST,
|
||||||
CLK_1_Hz => clk_1_Hz
|
CLK_1_Hz => clk_1_Hz
|
||||||
);
|
);
|
||||||
|
|
||||||
|
U_DIV_REFRESH : divider_400Hz
|
||||||
U_DIV_400Hz : divider_400Hz
|
|
||||||
port map (
|
port map (
|
||||||
CLK => CLK,
|
CLK => CLK,
|
||||||
RST => RST,
|
RST => RST,
|
||||||
@@ -126,88 +84,152 @@ begin
|
|||||||
);
|
);
|
||||||
|
|
||||||
s_ce_units <= clk_1_Hz and START;
|
s_ce_units <= clk_1_Hz and START;
|
||||||
-- MINUTES UNITS (0-9)
|
load_clock <= BTN_LOAD when SW_ALARM_SET = '0' else "0000";
|
||||||
U_CNT_MIN_UNITS : counter
|
load_alarm <= BTN_LOAD when SW_ALARM_SET = '1' else "0000";
|
||||||
generic map ( MAX_LIMIT => "1001" ) -- To 9
|
-- Clock Engine submodule
|
||||||
|
U_CLOCK_CORE : entity work.clock_logic
|
||||||
port map (
|
port map (
|
||||||
CLK => CLK,
|
CLK => CLK,
|
||||||
RST => RST,
|
RST => RST,
|
||||||
CE => s_ce_units,
|
CE_1HZ => s_ce_units,
|
||||||
PE => BTN_LOAD(0),
|
SW_DIN => SW_DIN,
|
||||||
DIN => SW_DIN,
|
BTN_LOAD => load_clock,
|
||||||
TC => tc_mu,
|
S_UNITS => sig_s_units,
|
||||||
COUNT_OUT => sig_m_units
|
S_TENS => sig_s_tens,
|
||||||
|
M_UNITS => sig_m_units,
|
||||||
|
M_TENS => sig_m_tens,
|
||||||
|
H_UNITS => sig_h_units,
|
||||||
|
H_TENS => sig_h_tens
|
||||||
);
|
);
|
||||||
|
|
||||||
-- MINUTES TENS (0-5)
|
-- Clock Engine submodule for alarm
|
||||||
U_CNT_MIN_TENS : counter
|
U_ALARM_CORE : entity work.clock_logic
|
||||||
generic map ( MAX_LIMIT => "0101" ) -- To 5
|
|
||||||
port map (
|
port map (
|
||||||
CLK => CLK,
|
CLK => CLK,
|
||||||
RST => RST,
|
RST => RST,
|
||||||
CE => tc_mu,
|
CE_1HZ => '0',
|
||||||
PE => BTN_LOAD(1),
|
SW_DIN => SW_DIN,
|
||||||
DIN => SW_DIN,
|
BTN_LOAD => load_alarm,
|
||||||
TC => tc_mt,
|
S_UNITS => alrm_s_units,
|
||||||
COUNT_OUT => sig_m_tens
|
S_TENS => alrm_s_tens,
|
||||||
|
M_UNITS => alrm_m_units,
|
||||||
|
M_TENS => alrm_m_tens,
|
||||||
|
H_UNITS => alrm_h_units,
|
||||||
|
H_TENS => alrm_h_tens
|
||||||
);
|
);
|
||||||
|
|
||||||
-- Logic to reset hours at 24:00
|
stops_running <= s_ce_units;
|
||||||
hour_reset <= '1' when (RST = '1' or (sig_h_tens = "0010" and sig_h_units = "0011" and tc_mt = '1')) else '0';
|
stops_reset <= RST or RST_C;
|
||||||
|
-- Clock Engine submodule for stopky
|
||||||
-- HOURS UNITS (0-9)
|
U_STOPKY_CORE : entity work.clock_logic
|
||||||
U_CNT_HOR_UNITS : counter
|
|
||||||
generic map ( MAX_LIMIT => "1001" ) -- To 9
|
|
||||||
port map (
|
port map (
|
||||||
CLK => CLK,
|
CLK => CLK,
|
||||||
RST => hour_reset,
|
RST => stops_reset,
|
||||||
CE => tc_mt,
|
CE_1HZ => stops_running,
|
||||||
PE => BTN_LOAD(2),
|
SW_DIN => "0000",
|
||||||
DIN => SW_DIN,
|
BTN_LOAD => "0000",
|
||||||
TC => tc_hu,
|
S_UNITS => stop_s_units,
|
||||||
COUNT_OUT => sig_h_units
|
S_TENS => stop_s_tens,
|
||||||
|
M_UNITS => stop_m_units,
|
||||||
|
M_TENS => stop_m_tens,
|
||||||
|
H_UNITS => stop_h_units,
|
||||||
|
H_TENS => stop_h_tens
|
||||||
);
|
);
|
||||||
|
|
||||||
-- HOURS TENS (0-2)
|
-- Comparator Logic for alarm LED to be ON or OFF
|
||||||
U_CNT_HOR_TENS : counter
|
-- TODO BUG proste niekedy na zaciatku ledka svieti aj ked ma byt zhasnuta
|
||||||
generic map ( MAX_LIMIT => "0010" ) -- To 2
|
process(CLK)
|
||||||
port map (
|
begin
|
||||||
CLK => CLK,
|
if rising_edge(CLK) then
|
||||||
RST => hour_reset,
|
sw_stop_prev <= SW_STOP_SET;
|
||||||
CE => tc_hu,
|
-- alarm
|
||||||
PE => BTN_LOAD(3),
|
if RST = '1' or RST_B = '1' then
|
||||||
DIN => SW_DIN,
|
ALARM_LED <= '0';
|
||||||
TC => open,
|
-- Match condition (HH:MM)
|
||||||
COUNT_OUT => sig_h_tens
|
elsif (START = '1' and
|
||||||
);
|
sig_h_tens = alrm_h_tens and sig_h_units = alrm_h_units and
|
||||||
|
sig_m_tens = alrm_m_tens and sig_m_units = alrm_m_units and
|
||||||
|
sig_s_tens = "0000" and sig_s_units = "0000") then
|
||||||
|
ALARM_LED <= '1';
|
||||||
|
end if;
|
||||||
|
if RST = '1' or RST_C = '1' then
|
||||||
|
cap_s_units <= "0000";
|
||||||
|
cap_s_tens <= "0000";
|
||||||
|
cap_m_units <= "0000";
|
||||||
|
cap_m_tens <= "0000";
|
||||||
|
cap_h_units <= "0000";
|
||||||
|
cap_h_tens <= "0000";
|
||||||
|
elsif SW_STOP_SET = '1' and sw_stop_prev = '0' then
|
||||||
|
cap_s_units <= stop_s_units;
|
||||||
|
cap_s_tens <= stop_s_tens;
|
||||||
|
cap_m_units <= stop_m_units;
|
||||||
|
cap_m_tens <= stop_m_tens;
|
||||||
|
cap_h_units <= stop_h_units;
|
||||||
|
cap_h_tens <= stop_h_tens;
|
||||||
|
end if;
|
||||||
|
end if;
|
||||||
|
end process;
|
||||||
|
|
||||||
U_CNT_2BIT : counter_2bit
|
-- -- Mode Multiplexing
|
||||||
port map (
|
-- -- If SW_MODE = '1', show MM:SS. If '0', show HH:MM.
|
||||||
CLK => clk_400_Hz,
|
-- d0 <= sig_s_units when SW_MODE = '1' else sig_m_units;
|
||||||
RST => RST,
|
-- d1 <= sig_s_tens when SW_MODE = '1' else sig_m_tens;
|
||||||
COUNT_OUT => s_cnt_2bit
|
-- d2 <= sig_m_units when SW_MODE = '1' else sig_h_units;
|
||||||
);
|
-- d3 <= sig_m_tens when SW_MODE = '1' else sig_h_tens;
|
||||||
|
|
||||||
U_DEC_ANODES : decoder_an
|
-- Mode Multiplexing (4 digit display)
|
||||||
port map (
|
process(SW_ALARM_SET, SW_MODE,
|
||||||
SEL => s_cnt_2bit,
|
sig_s_units, sig_s_tens, sig_m_units, sig_m_tens, sig_h_units, sig_h_tens,
|
||||||
ANODES => ANODS
|
alrm_m_units, alrm_m_tens, alrm_h_units, alrm_h_tens, stop_s_units, stop_s_tens,
|
||||||
);
|
stop_m_units, stop_m_tens, stop_h_units, stop_h_tens )
|
||||||
|
begin
|
||||||
|
if SW_ALARM_SET = '1' then
|
||||||
|
-- While setting alarm, always show Alarm HH:MM
|
||||||
|
d0 <= alrm_m_units;
|
||||||
|
d1 <= alrm_m_tens;
|
||||||
|
d2 <= alrm_h_units;
|
||||||
|
d3 <= alrm_h_tens;
|
||||||
|
elsif SW_STOP_SET = '1' then
|
||||||
|
if SW_MODE = '1' then
|
||||||
|
-- Stopky (MM:SS)
|
||||||
|
d0 <= cap_s_units;
|
||||||
|
d1 <= cap_s_tens;
|
||||||
|
d2 <= cap_m_units;
|
||||||
|
d3 <= cap_m_tens;
|
||||||
|
else
|
||||||
|
-- Stopky (HH:MM)
|
||||||
|
d0 <= cap_m_units;
|
||||||
|
d1 <= cap_m_tens;
|
||||||
|
d2 <= cap_h_units;
|
||||||
|
d3 <= cap_h_tens;
|
||||||
|
end if;
|
||||||
|
else
|
||||||
|
-- Normal Operation
|
||||||
|
if SW_MODE = '1' then
|
||||||
|
-- Show Seconds and Minutes (MM:SS)
|
||||||
|
d0 <= sig_s_units;
|
||||||
|
d1 <= sig_s_tens;
|
||||||
|
d2 <= sig_m_units;
|
||||||
|
d3 <= sig_m_tens;
|
||||||
|
else
|
||||||
|
-- Show Minutes and Hours (HH:MM)
|
||||||
|
d0 <= sig_m_units;
|
||||||
|
d1 <= sig_m_tens;
|
||||||
|
d2 <= sig_h_units;
|
||||||
|
d3 <= sig_h_tens;
|
||||||
|
end if;
|
||||||
|
end if;
|
||||||
|
end process;
|
||||||
|
|
||||||
U_MUX : mux
|
U_DISPLAY : entity work.display_driver
|
||||||
port map (
|
port map (
|
||||||
I0 => sig_m_units,
|
CLK => clk_400_Hz,
|
||||||
I1 => sig_m_tens,
|
RST => RST,
|
||||||
I2 => sig_h_units,
|
DIGIT_0 => d0,
|
||||||
I3 => sig_h_tens,
|
DIGIT_1 => d1,
|
||||||
S => s_cnt_2bit,
|
DIGIT_2 => d2,
|
||||||
Y => s_mux_out
|
DIGIT_3 => d3,
|
||||||
|
SEGMENTS => SEGMENTS,
|
||||||
|
ANODES => ANODS
|
||||||
);
|
);
|
||||||
|
|
||||||
U_DEC_SEG : dec_seg
|
|
||||||
port map (
|
|
||||||
BCD => s_mux_out,
|
|
||||||
SEG => SEGMENTS
|
|
||||||
);
|
|
||||||
|
|
||||||
end Behavioral;
|
end Behavioral;
|
||||||
|
|||||||
@@ -92,6 +92,12 @@
|
|||||||
<FileSets Version="1" Minor="31">
|
<FileSets Version="1" Minor="31">
|
||||||
<FileSet Name="sources_1" Type="DesignSrcs" RelSrcDir="$PSRCDIR/sources_1" RelGenDir="$PGENDIR/sources_1">
|
<FileSet Name="sources_1" Type="DesignSrcs" RelSrcDir="$PSRCDIR/sources_1" RelGenDir="$PGENDIR/sources_1">
|
||||||
<Filter Type="Srcs"/>
|
<Filter Type="Srcs"/>
|
||||||
|
<File Path="$PSRCDIR/sources_1/new/clock_logic.vhd">
|
||||||
|
<FileInfo>
|
||||||
|
<Attr Name="UsedIn" Val="synthesis"/>
|
||||||
|
<Attr Name="UsedIn" Val="simulation"/>
|
||||||
|
</FileInfo>
|
||||||
|
</File>
|
||||||
<File Path="$PSRCDIR/sources_1/new/counter.vhd">
|
<File Path="$PSRCDIR/sources_1/new/counter.vhd">
|
||||||
<FileInfo>
|
<FileInfo>
|
||||||
<Attr Name="UsedIn" Val="synthesis"/>
|
<Attr Name="UsedIn" Val="synthesis"/>
|
||||||
@@ -116,6 +122,12 @@
|
|||||||
<Attr Name="UsedIn" Val="simulation"/>
|
<Attr Name="UsedIn" Val="simulation"/>
|
||||||
</FileInfo>
|
</FileInfo>
|
||||||
</File>
|
</File>
|
||||||
|
<File Path="$PSRCDIR/sources_1/new/display_drive.vhd">
|
||||||
|
<FileInfo>
|
||||||
|
<Attr Name="UsedIn" Val="synthesis"/>
|
||||||
|
<Attr Name="UsedIn" Val="simulation"/>
|
||||||
|
</FileInfo>
|
||||||
|
</File>
|
||||||
<File Path="$PSRCDIR/sources_1/new/divider.vhd">
|
<File Path="$PSRCDIR/sources_1/new/divider.vhd">
|
||||||
<FileInfo>
|
<FileInfo>
|
||||||
<Attr Name="UsedIn" Val="synthesis"/>
|
<Attr Name="UsedIn" Val="synthesis"/>
|
||||||
@@ -165,6 +177,7 @@
|
|||||||
<Option Name="DesignMode" Val="RTL"/>
|
<Option Name="DesignMode" Val="RTL"/>
|
||||||
<Option Name="TopModule" Val="top_modul"/>
|
<Option Name="TopModule" Val="top_modul"/>
|
||||||
<Option Name="TopAutoSet" Val="TRUE"/>
|
<Option Name="TopAutoSet" Val="TRUE"/>
|
||||||
|
<Option Name="dataflowViewerSettings" Val="min_width=16"/>
|
||||||
</Config>
|
</Config>
|
||||||
</FileSet>
|
</FileSet>
|
||||||
<FileSet Name="constrs_1" Type="Constrs" RelSrcDir="$PSRCDIR/constrs_1" RelGenDir="$PGENDIR/constrs_1">
|
<FileSet Name="constrs_1" Type="Constrs" RelSrcDir="$PSRCDIR/constrs_1" RelGenDir="$PGENDIR/constrs_1">
|
||||||
|
|||||||
7
vhdl_ls.toml
Normal file
7
vhdl_ls.toml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
[libraries]
|
||||||
|
ieee.files = [
|
||||||
|
]
|
||||||
|
|
||||||
|
work.files = [
|
||||||
|
"project_*/**/*.vhd",
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user