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

'minimal' -> 'test'

parent 378a99e6
No related branches found
No related tags found
No related merge requests found
...@@ -28,10 +28,10 @@ USE unb2_board_lib.unb2_board_pkg.ALL; ...@@ -28,10 +28,10 @@ USE unb2_board_lib.unb2_board_pkg.ALL;
USE unb2_board_lib.unb2_board_peripherals_pkg.ALL; USE unb2_board_lib.unb2_board_peripherals_pkg.ALL;
USE mm_lib.mm_file_pkg.ALL; USE mm_lib.mm_file_pkg.ALL;
USE mm_lib.mm_file_unb_pkg.ALL; USE mm_lib.mm_file_unb_pkg.ALL;
USE work.qsys_unb2_minimal_pkg.ALL; USE work.qsys_unb2_test_pkg.ALL;
ENTITY mmm_unb2_minimal IS ENTITY mmm_unb2_test IS
GENERIC ( GENERIC (
g_sim : BOOLEAN := FALSE; --FALSE: use SOPC; TRUE: use mm_file I/O g_sim : BOOLEAN := FALSE; --FALSE: use SOPC; TRUE: use mm_file I/O
g_sim_unb_nr : NATURAL := 0; g_sim_unb_nr : NATURAL := 0;
...@@ -89,9 +89,9 @@ ENTITY mmm_unb2_minimal IS ...@@ -89,9 +89,9 @@ ENTITY mmm_unb2_minimal IS
reg_remu_mosi : OUT t_mem_mosi; reg_remu_mosi : OUT t_mem_mosi;
reg_remu_miso : IN t_mem_miso reg_remu_miso : IN t_mem_miso
); );
END mmm_unb2_minimal; END mmm_unb2_test;
ARCHITECTURE str OF mmm_unb2_minimal IS ARCHITECTURE str OF mmm_unb2_test IS
CONSTANT c_sim_node_nr : NATURAL := g_sim_node_nr; CONSTANT c_sim_node_nr : NATURAL := g_sim_node_nr;
CONSTANT c_sim_node_type : STRING(1 TO 2):= "FN"; CONSTANT c_sim_node_type : STRING(1 TO 2):= "FN";
...@@ -151,7 +151,7 @@ BEGIN ...@@ -151,7 +151,7 @@ BEGIN
-- QSYS for synthesis -- QSYS for synthesis
---------------------------------------------------------------------------- ----------------------------------------------------------------------------
gen_qsys : IF g_sim = FALSE GENERATE gen_qsys : IF g_sim = FALSE GENERATE
u_qsys : qsys_unb2_minimal u_qsys : qsys_unb2_test
PORT MAP ( PORT MAP (
clk_clk => mm_clk, clk_clk => mm_clk,
......
...@@ -22,13 +22,13 @@ ...@@ -22,13 +22,13 @@
LIBRARY IEEE; LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL; USE IEEE.STD_LOGIC_1164.ALL;
PACKAGE qsys_unb2_minimal_pkg IS PACKAGE qsys_unb2_test_pkg IS
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
-- this component declaration is copy-pasted from Quartus v14 QSYS builder -- this component declaration is copy-pasted from Quartus v14 QSYS builder
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
COMPONENT qsys_unb2_minimal is COMPONENT qsys_unb2_test is
port ( port (
clk_clk : in std_logic := 'X'; -- clk clk_clk : in std_logic := 'X'; -- clk
reset_reset_n : in std_logic := 'X'; -- reset_n reset_reset_n : in std_logic := 'X'; -- reset_n
...@@ -131,6 +131,6 @@ PACKAGE qsys_unb2_minimal_pkg IS ...@@ -131,6 +131,6 @@ PACKAGE qsys_unb2_minimal_pkg IS
reg_dpmm_data_clk_export : out std_logic; -- export reg_dpmm_data_clk_export : out std_logic; -- export
reg_dpmm_data_reset_export : out std_logic -- export reg_dpmm_data_reset_export : out std_logic -- export
); );
END COMPONENT qsys_unb2_minimal; END COMPONENT qsys_unb2_test;
END qsys_unb2_minimal_pkg; END qsys_unb2_test_pkg;
...@@ -27,9 +27,9 @@ USE common_lib.common_pkg.ALL; ...@@ -27,9 +27,9 @@ USE common_lib.common_pkg.ALL;
USE common_lib.common_mem_pkg.ALL; USE common_lib.common_mem_pkg.ALL;
USE unb2_board_lib.unb2_board_pkg.ALL; USE unb2_board_lib.unb2_board_pkg.ALL;
ENTITY unb2_minimal IS ENTITY unb2_test IS
GENERIC ( GENERIC (
g_design_name : STRING := "unb2_minimal"; g_design_name : STRING := "unb2_test";
g_design_note : STRING := "UNUSED"; g_design_note : STRING := "UNUSED";
g_sim : BOOLEAN := FALSE; --Overridden by TB g_sim : BOOLEAN := FALSE; --Overridden by TB
g_sim_unb_nr : NATURAL := 0; g_sim_unb_nr : NATURAL := 0;
...@@ -60,10 +60,10 @@ ENTITY unb2_minimal IS ...@@ -60,10 +60,10 @@ ENTITY unb2_minimal IS
ETH_SGIN : IN STD_LOGIC_VECTOR(c_unb2_board_nof_eth-1 DOWNTO 0); ETH_SGIN : IN STD_LOGIC_VECTOR(c_unb2_board_nof_eth-1 DOWNTO 0);
ETH_SGOUT : OUT STD_LOGIC_VECTOR(c_unb2_board_nof_eth-1 DOWNTO 0) ETH_SGOUT : OUT STD_LOGIC_VECTOR(c_unb2_board_nof_eth-1 DOWNTO 0)
); );
END unb2_minimal; END unb2_test;
ARCHITECTURE str OF unb2_minimal IS ARCHITECTURE str OF unb2_test IS
-- Firmware version x.y -- Firmware version x.y
CONSTANT c_fw_version : t_unb2_board_fw_version := (1, 1); CONSTANT c_fw_version : t_unb2_board_fw_version := (1, 1);
...@@ -237,7 +237,7 @@ BEGIN ...@@ -237,7 +237,7 @@ BEGIN
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
-- MM master -- MM master
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
u_mmm : ENTITY work.mmm_unb2_minimal u_mmm : ENTITY work.mmm_unb2_test
GENERIC MAP ( GENERIC MAP (
g_sim => g_sim, g_sim => g_sim,
g_sim_unb_nr => g_sim_unb_nr, g_sim_unb_nr => g_sim_unb_nr,
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
# #
############################################################################### ###############################################################################
"""Test case for unb1_minimal """Test case for unb2_test
Usage: Usage:
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
-- --
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
-- Purpose: Test bench for unb2_minimal. -- Purpose: Test bench for unb2_test.
-- Description: -- Description:
-- The DUT can be targeted at unb 0, node 3 with the same Python scripts -- The DUT can be targeted at unb 0, node 3 with the same Python scripts
-- that are used on hardware. -- that are used on hardware.
...@@ -29,10 +29,10 @@ ...@@ -29,10 +29,10 @@
-- > run_modelsim & (to start Modeslim) -- > run_modelsim & (to start Modeslim)
-- --
-- In Modelsim do: -- In Modelsim do:
-- > lp unb2_minimal -- > lp unb2_test
-- > mk clean all (only first time to clean all libraries) -- > mk clean all (only first time to clean all libraries)
-- > mk all (to compile all libraries that are needed for unb2_minimal) -- > mk all (to compile all libraries that are needed for unb2_test)
-- . load tb_unb1_minimal simulation by double clicking the tb_unb2_minimal icon -- . load tb_unb1_test simulation by double clicking the tb_unb2_test icon
-- > as 10 (to view signals in Wave Window) -- > as 10 (to view signals in Wave Window)
-- > run 100 us (or run -all) -- > run 100 us (or run -all)
-- --
...@@ -49,15 +49,15 @@ USE common_lib.common_pkg.ALL; ...@@ -49,15 +49,15 @@ USE common_lib.common_pkg.ALL;
USE unb2_board_lib.unb2_board_pkg.ALL; USE unb2_board_lib.unb2_board_pkg.ALL;
USE common_lib.tb_common_pkg.ALL; USE common_lib.tb_common_pkg.ALL;
ENTITY tb_unb2_minimal IS ENTITY tb_unb2_test IS
GENERIC ( GENERIC (
g_design_name : STRING := "unb2_minimal"; g_design_name : STRING := "unb2_test";
g_sim_unb_nr : NATURAL := 0; -- UniBoard 0 g_sim_unb_nr : NATURAL := 0; -- UniBoard 0
g_sim_node_nr : NATURAL := 3 -- Node 3 g_sim_node_nr : NATURAL := 3 -- Node 3
); );
END tb_unb2_minimal; END tb_unb2_test;
ARCHITECTURE tb OF tb_unb2_minimal IS ARCHITECTURE tb OF tb_unb2_test IS
CONSTANT c_sim : BOOLEAN := TRUE; CONSTANT c_sim : BOOLEAN := TRUE;
...@@ -132,7 +132,7 @@ BEGIN ...@@ -132,7 +132,7 @@ BEGIN
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
-- DUT -- DUT
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
u_unb2_minimal : ENTITY work.unb2_minimal u_unb2_test : ENTITY work.unb2_test
GENERIC MAP ( GENERIC MAP (
g_sim => c_sim, g_sim => c_sim,
g_sim_unb_nr => c_unb_nr, g_sim_unb_nr => c_unb_nr,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment