Skip to content
Snippets Groups Projects
Commit dfad601e authored by David Brouwer's avatar David Brouwer
Browse files

RTSD-181: Added severity error for Agilex7, when two different clocks are used.

parent 9ba7d997
No related branches found
No related tags found
1 merge request!376RTSD-181: Continuation of porting RAM for Intel Agilex 7
-- ----------------------------------------------------------------------------- -- -----------------------------------------------------------------------------
-- --
-- Copyright 2014-2023 -- Copyright 2014-2024
-- ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/> -- ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
-- P.O.Box 2, 7990 AA Dwingeloo, The Netherlands -- P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
-- --
...@@ -58,7 +58,7 @@ entity tech_memory_ram_crw_crw is ...@@ -58,7 +58,7 @@ entity tech_memory_ram_crw_crw is
address_a : in std_logic_vector(g_adr_w - 1 downto 0); address_a : in std_logic_vector(g_adr_w - 1 downto 0);
address_b : in std_logic_vector(g_adr_w - 1 downto 0); address_b : in std_logic_vector(g_adr_w - 1 downto 0);
clock_a : in std_logic := '1'; clock_a : in std_logic := '1';
clock_b : in std_logic; clock_b : in std_logic := '1';
data_a : in std_logic_vector(g_dat_w - 1 downto 0); data_a : in std_logic_vector(g_dat_w - 1 downto 0);
data_b : in std_logic_vector(g_dat_w - 1 downto 0); data_b : in std_logic_vector(g_dat_w - 1 downto 0);
enable_a : in std_logic := '1'; enable_a : in std_logic := '1';
...@@ -110,6 +110,10 @@ begin ...@@ -110,6 +110,10 @@ begin
port map (address_a, address_b, clock_a, clock_b, data_a, data_b, wren_a, wren_b, q_a, q_b); port map (address_a, address_b, clock_a, clock_b, data_a, data_b, wren_a, wren_b, q_a, q_b);
end generate; end generate;
assert not(g_technology = c_tech_agi027_xxxx and clock_a /= clock_b)
report "tech_memory_ram_crw_crw, utilizing ip_agi027_xxxx_ram_rw_rw : only supports one clock domain (use clock_b)"
severity FAILURE;
gen_ip_agi027_xxxx : if g_technology = c_tech_agi027_xxxx generate gen_ip_agi027_xxxx : if g_technology = c_tech_agi027_xxxx generate
u0 : ip_agi027_xxxx_ram_rw_rw u0 : ip_agi027_xxxx_ram_rw_rw
generic map (false, g_adr_w, g_dat_w, g_nof_words, g_rd_latency, g_init_file) generic map (false, g_adr_w, g_dat_w, g_nof_words, g_rd_latency, g_init_file)
...@@ -117,3 +121,4 @@ begin ...@@ -117,3 +121,4 @@ begin
end generate; end generate;
end architecture; end architecture;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment