Skip to content
Snippets Groups Projects
Commit ffc7f9d3 authored by Kenneth Hiemstra's avatar Kenneth Hiemstra
Browse files

mem model only needed when c_use_ddr=TRUE

parent 7f4e7314
No related branches found
No related tags found
No related merge requests found
...@@ -75,6 +75,7 @@ ARCHITECTURE tb OF tb_unb1_test IS ...@@ -75,6 +75,7 @@ ARCHITECTURE tb OF tb_unb1_test IS
CONSTANT c_sa_clk_period : TIME := 6.4 ns; CONSTANT c_sa_clk_period : TIME := 6.4 ns;
CONSTANT c_pps_period : NATURAL := 1000; CONSTANT c_pps_period : NATURAL := 1000;
CONSTANT c_use_ddr : BOOLEAN := g_design_name="unb1_test_ddr" OR g_design_name="unb1_test_all";
CONSTANT c_ddr : t_c_tech_ddr := c_tech_ddr3_4g_800m_master; CONSTANT c_ddr : t_c_tech_ddr := c_tech_ddr3_4g_800m_master;
-- DUT -- DUT
...@@ -209,15 +210,17 @@ BEGIN ...@@ -209,15 +210,17 @@ BEGIN
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
-- DDR3 memory model -- DDR3 memory model
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
u_tech_ddr_memory_model : ENTITY tech_ddr_lib.tech_ddr_memory_model gen_tech_ddr_memory_model : IF c_use_ddr = TRUE GENERATE
GENERIC MAP ( u_tech_ddr_memory_model : ENTITY tech_ddr_lib.tech_ddr_memory_model
g_tech_ddr => c_ddr GENERIC MAP (
) g_tech_ddr => c_ddr
PORT MAP ( )
mem3_in => phy_ou, PORT MAP (
mem3_io => phy_io, mem3_in => phy_ou,
mem3_ou => phy_in mem3_io => phy_io,
); mem3_ou => phy_in
);
END GENERATE;
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
-- UniBoard sensors -- UniBoard sensors
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment