Skip to content
Snippets Groups Projects
Commit 80ba2261 authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Renamed g_sim into g_use_ddr_memory_model.

parent fc437369
No related branches found
No related tags found
No related merge requests found
...@@ -24,9 +24,11 @@ ...@@ -24,9 +24,11 @@
-- Description: -- Description:
-- The component also supports different types of DDR, so DDR3 and DDR4. -- The component also supports different types of DDR, so DDR3 and DDR4.
-- Remark: -- Remark:
-- In simulation use g_sim=TRUE to also include the DDR memory model that is -- In simulation use g_use_ddr_memory_model=TRUE to also include the DDR
-- internally available within tech_ddr. This avoids having to connect a DDR -- memory model that is internally available within tech_ddr. This avoids
-- memory model at top level in the test bench. -- having to connect a DDR memory model at top level in the test bench.
-- Default g_use_ddr_memory_model must be FALSE to avoid further analysis
-- of the DDR memory model component by synthesis.
LIBRARY IEEE, common_lib, technology_lib; LIBRARY IEEE, common_lib, technology_lib;
USE IEEE.STD_LOGIC_1164.ALL; USE IEEE.STD_LOGIC_1164.ALL;
...@@ -39,7 +41,7 @@ ENTITY tech_ddr IS ...@@ -39,7 +41,7 @@ ENTITY tech_ddr IS
GENERIC ( GENERIC (
g_technology : NATURAL := c_tech_select_default; g_technology : NATURAL := c_tech_select_default;
g_tech_ddr : t_c_tech_ddr; g_tech_ddr : t_c_tech_ddr;
g_sim : BOOLEAN := FALSE g_use_ddr_memory_model : BOOLEAN := FALSE
); );
PORT ( PORT (
-- PLL reference clock -- PLL reference clock
...@@ -90,15 +92,15 @@ BEGIN ...@@ -90,15 +92,15 @@ BEGIN
phy_in, phy_io, i_phy_ou); phy_in, phy_io, i_phy_ou);
END GENERATE; END GENERATE;
-- Include DDR memory model for simulation -- Include DDR memory model only for simulation
no_sim : IF g_sim=FALSE GENERATE no_ddr_memory_model : IF g_use_ddr_memory_model=FALSE GENERATE
phy_ou <= i_phy_ou; phy_ou <= i_phy_ou;
END GENERATE; END GENERATE;
gen_sim: IF g_sim=TRUE GENERATE gen_ddr_memory_model: IF g_use_ddr_memory_model=TRUE GENERATE
u_tech_ddr_memory_model : ENTITY work.tech_ddr_memory_model u_tech_ddr_memory_model : ENTITY work.tech_ddr_memory_model
GENERIC MAP ( GENERIC MAP (
g_sim => g_sim, g_sim => g_use_ddr_memory_model,
g_tech_ddr => g_tech_ddr g_tech_ddr => g_tech_ddr
) )
PORT MAP ( PORT MAP (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment