summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBert Lange <b.lange@hzdr.de>2014-09-08 10:53:13 +0200
committerBert Lange <b.lange@hzdr.de>2014-09-08 10:53:13 +0200
commita391790f1e78bd01e647b468ad73bdf1c86c335c (patch)
treec6d370cc4addb15c4d28119cba2bae58ca84bc51
parent0083804c4d7f52963cb2dfd0826c7600f4cd3188 (diff)
downloadzpu-a391790f1e78bd01e647b468ad73bdf1c86c335c.zip
zpu-a391790f1e78bd01e647b468ad73bdf1c86c335c.tar.gz
change: mainly beautify
-rw-r--r--mig_test/rtl/top.vhd850
-rw-r--r--mig_test/software/main.c17
-rw-r--r--mig_test/vhdl_files.txt30
3 files changed, 557 insertions, 340 deletions
diff --git a/mig_test/rtl/top.vhd b/mig_test/rtl/top.vhd
index 2d02186..872af28 100644
--- a/mig_test/rtl/top.vhd
+++ b/mig_test/rtl/top.vhd
@@ -20,53 +20,53 @@ library ieee;
use ieee.std_logic_1164.all;
entity top is
- port (
+ port (
-- pragma translate_off
- simulation_break : out std_logic;
+ simulation_break : out std_logic;
-- pragma translate_on
-- system stuff
- CLK : in std_logic; -- 125 MHz
+ CLK : in std_logic; -- 125 MHz
--RESET_N : in std_logic;
- POWER_FAIL_N : in std_logic;
- WATCHDOG : out std_logic;
- REPROG_N : out std_logic;
+ POWER_FAIL_N : in std_logic;
+ WATCHDOG : out std_logic;
+ REPROG_N : out std_logic;
-- user clock
- USER_CLK : in std_logic;
+ USER_CLK : in std_logic;
--
-- DDR3 SDRAM
- MCB1_DRAM_A : out std_logic_vector(14 downto 0);
- MCB1_DRAM_BA : out std_logic_vector(2 downto 0);
- MCB1_DRAM_CAS_B : out std_logic;
- MCB1_DRAM_RAS_B : out std_logic;
- MCB1_DRAM_WE_B : out std_logic;
- MCB1_DRAM_CKE : out std_logic;
- MCB1_DRAM_CK_N : out std_logic;
- MCB1_DRAM_CK_P : out std_logic;
- MCB1_DRAM_DQ : inout std_logic_vector(15 downto 0);
- MCB1_DRAM_LDM : out std_logic;
- MCB1_DRAM_UDM : out std_logic;
- MCB1_DRAM_DQS_N : inout std_logic_vector( 1 downto 0);
- MCB1_DRAM_DQS_P : inout std_logic_vector( 1 downto 0);
- MCB1_DRAM_ODT : out std_logic;
- MCB1_DRAM_RESET_B : out std_logic;
+ MCB1_DRAM_A : out std_logic_vector(14 downto 0);
+ MCB1_DRAM_BA : out std_logic_vector(2 downto 0);
+ MCB1_DRAM_CAS_B : out std_logic;
+ MCB1_DRAM_RAS_B : out std_logic;
+ MCB1_DRAM_WE_B : out std_logic;
+ MCB1_DRAM_CKE : out std_logic;
+ MCB1_DRAM_CK_N : out std_logic;
+ MCB1_DRAM_CK_P : out std_logic;
+ MCB1_DRAM_DQ : inout std_logic_vector(15 downto 0);
+ MCB1_DRAM_LDM : out std_logic;
+ MCB1_DRAM_UDM : out std_logic;
+ MCB1_DRAM_DQS_N : inout std_logic_vector(1 downto 0);
+ MCB1_DRAM_DQS_P : inout std_logic_vector(1 downto 0);
+ MCB1_DRAM_ODT : out std_logic;
+ MCB1_DRAM_RESET_B : out std_logic;
MCB1_RZQ : inout std_logic;
MCB1_ZIO : inout std_logic;
--
- MCB3_DRAM_A : out std_logic_vector(14 downto 0);
- MCB3_DRAM_BA : out std_logic_vector(2 downto 0);
- MCB3_DRAM_CAS_B : out std_logic;
- MCB3_DRAM_RAS_B : out std_logic;
- MCB3_DRAM_WE_B : out std_logic;
- MCB3_DRAM_CKE : out std_logic;
- MCB3_DRAM_CK_N : out std_logic;
- MCB3_DRAM_CK_P : out std_logic;
- MCB3_DRAM_DQ : inout std_logic_vector(15 downto 0);
- MCB3_DRAM_LDM : out std_logic;
- MCB3_DRAM_UDM : out std_logic;
- MCB3_DRAM_DQS_N : inout std_logic_vector( 1 downto 0);
- MCB3_DRAM_DQS_P : inout std_logic_vector( 1 downto 0);
- MCB3_DRAM_ODT : out std_logic;
- MCB3_DRAM_RESET_B : out std_logic;
+ MCB3_DRAM_A : out std_logic_vector(14 downto 0);
+ MCB3_DRAM_BA : out std_logic_vector(2 downto 0);
+ MCB3_DRAM_CAS_B : out std_logic;
+ MCB3_DRAM_RAS_B : out std_logic;
+ MCB3_DRAM_WE_B : out std_logic;
+ MCB3_DRAM_CKE : out std_logic;
+ MCB3_DRAM_CK_N : out std_logic;
+ MCB3_DRAM_CK_P : out std_logic;
+ MCB3_DRAM_DQ : inout std_logic_vector(15 downto 0);
+ MCB3_DRAM_LDM : out std_logic;
+ MCB3_DRAM_UDM : out std_logic;
+ MCB3_DRAM_DQS_N : inout std_logic_vector(1 downto 0);
+ MCB3_DRAM_DQS_P : inout std_logic_vector(1 downto 0);
+ MCB3_DRAM_ODT : out std_logic;
+ MCB3_DRAM_RESET_B : out std_logic;
MCB3_RZQ : inout std_logic;
MCB3_ZIO : inout std_logic;
--
@@ -80,148 +80,148 @@ entity top is
-- config(5) = '1'
-- config(6) = PHY_LED_RX
--PHY_125 : in std_logic; -- 125 MHz from phy, used as clk
- PHY_MDIO : inout std_logic;
- PHY_MDC : out std_logic;
- PHY_INT : in std_logic;
- PHY_RESET_B : out std_logic;
- PHY_CRS : in std_logic;
- PHY_COL : inout std_logic;
- PHY_TXEN : out std_logic;
- PHY_TXCLK : in std_logic;
- PHY_TXER : out std_logic;
- PHY_TXD : out std_logic_vector(7 downto 0);
- PHY_GTXCLK : out std_logic;
- PHY_RXCLK : in std_logic;
- PHY_RXER : in std_logic;
- PHY_RXDV : in std_logic;
- PHY_RXD : in std_logic_vector(7 downto 0);
+ PHY_MDIO : inout std_logic;
+ PHY_MDC : out std_logic;
+ PHY_INT : in std_logic;
+ PHY_RESET_B : out std_logic;
+ PHY_CRS : in std_logic;
+ PHY_COL : inout std_logic;
+ PHY_TXEN : out std_logic;
+ PHY_TXCLK : in std_logic;
+ PHY_TXER : out std_logic;
+ PHY_TXD : out std_logic_vector(7 downto 0);
+ PHY_GTXCLK : out std_logic;
+ PHY_RXCLK : in std_logic;
+ PHY_RXER : in std_logic;
+ PHY_RXDV : in std_logic;
+ PHY_RXD : in std_logic_vector(7 downto 0);
--
-- quad SPI Flash (W25Q64BV)
- SPI_FLASH_CSO_B : out std_logic;
- SPI_FLASH_CCLK : out std_logic;
- SPI_FLASH_IO : inout std_logic_vector(3 downto 0); -- ( 0=di, 1=do, 2=wp_n, 3=hold_n)
+ SPI_FLASH_CSO_B : out std_logic;
+ SPI_FLASH_CCLK : out std_logic;
+ SPI_FLASH_IO : inout std_logic_vector(3 downto 0); -- ( 0=di, 1=do, 2=wp_n, 3=hold_n)
--
-- EEPROM (48bit MAC address, DS2502-E48)
- MAC_DATA : inout std_logic;
+ MAC_DATA : inout std_logic;
--
-- B2B J1 user IO
- B2B_B2_L57_N : inout std_logic;
- B2B_B2_L57_P : inout std_logic;
- B2B_B2_L49_N : inout std_logic;
- B2B_B2_L49_P : inout std_logic;
- B2B_B2_L48_N : inout std_logic;
- B2B_B2_L48_P : inout std_logic;
- B2B_B2_L45_N : inout std_logic;
- B2B_B2_L45_P : inout std_logic;
- B2B_B2_L43_N : inout std_logic;
- B2B_B2_L43_P : inout std_logic;
- B2B_B2_L41_N : inout std_logic;
- B2B_B2_L41_P : inout std_logic;
- B2B_B2_L21_P : inout std_logic;
- B2B_B2_L21_N : inout std_logic;
- B2B_B2_L15_P : inout std_logic;
- B2B_B2_L15_N : inout std_logic;
- B2B_B2_L31_N : inout std_logic; -- single ended
- B2B_B2_L32_N : inout std_logic; -- single ended
- B2B_B2_L60_P : inout std_logic;
- B2B_B2_L60_N : inout std_logic;
- B2B_B2_L59_N : inout std_logic;
- B2B_B2_L59_P : inout std_logic;
- B2B_B2_L44_N : inout std_logic;
- B2B_B2_L44_P : inout std_logic;
- B2B_B2_L42_N : inout std_logic;
- B2B_B2_L42_P : inout std_logic;
- B2B_B2_L18_P : inout std_logic;
- B2B_B2_L18_N : inout std_logic;
- B2B_B2_L8_N : inout std_logic;
- B2B_B2_L8_P : inout std_logic;
- B2B_B2_L11_P : inout std_logic;
- B2B_B2_L11_N : inout std_logic;
- B2B_B2_L6_P : inout std_logic;
- B2B_B2_L6_N : inout std_logic;
- B2B_B2_L5_P : inout std_logic;
- B2B_B2_L5_N : inout std_logic;
- B2B_B2_L9_N : inout std_logic;
- B2B_B2_L9_P : inout std_logic;
- B2B_B2_L4_N : inout std_logic;
- B2B_B2_L4_P : inout std_logic;
- B2B_B2_L29_N : inout std_logic; -- single ended
- B2B_B2_L10_N : inout std_logic;
- B2B_B2_L10_P : inout std_logic;
- B2B_B2_L2_N : inout std_logic;
- B2B_B2_L2_P : inout std_logic;
+ B2B_B2_L57_N : inout std_logic;
+ B2B_B2_L57_P : inout std_logic;
+ B2B_B2_L49_N : inout std_logic;
+ B2B_B2_L49_P : inout std_logic;
+ B2B_B2_L48_N : inout std_logic;
+ B2B_B2_L48_P : inout std_logic;
+ B2B_B2_L45_N : inout std_logic;
+ B2B_B2_L45_P : inout std_logic;
+ B2B_B2_L43_N : inout std_logic;
+ B2B_B2_L43_P : inout std_logic;
+ B2B_B2_L41_N : inout std_logic;
+ B2B_B2_L41_P : inout std_logic;
+ B2B_B2_L21_P : inout std_logic;
+ B2B_B2_L21_N : inout std_logic;
+ B2B_B2_L15_P : inout std_logic;
+ B2B_B2_L15_N : inout std_logic;
+ B2B_B2_L31_N : inout std_logic; -- single ended
+ B2B_B2_L32_N : inout std_logic; -- single ended
+ B2B_B2_L60_P : inout std_logic;
+ B2B_B2_L60_N : inout std_logic;
+ B2B_B2_L59_N : inout std_logic;
+ B2B_B2_L59_P : inout std_logic;
+ B2B_B2_L44_N : inout std_logic;
+ B2B_B2_L44_P : inout std_logic;
+ B2B_B2_L42_N : inout std_logic;
+ B2B_B2_L42_P : inout std_logic;
+ B2B_B2_L18_P : inout std_logic;
+ B2B_B2_L18_N : inout std_logic;
+ B2B_B2_L8_N : inout std_logic;
+ B2B_B2_L8_P : inout std_logic;
+ B2B_B2_L11_P : inout std_logic;
+ B2B_B2_L11_N : inout std_logic;
+ B2B_B2_L6_P : inout std_logic;
+ B2B_B2_L6_N : inout std_logic;
+ B2B_B2_L5_P : inout std_logic;
+ B2B_B2_L5_N : inout std_logic;
+ B2B_B2_L9_N : inout std_logic;
+ B2B_B2_L9_P : inout std_logic;
+ B2B_B2_L4_N : inout std_logic;
+ B2B_B2_L4_P : inout std_logic;
+ B2B_B2_L29_N : inout std_logic; -- single ended
+ B2B_B2_L10_N : inout std_logic;
+ B2B_B2_L10_P : inout std_logic;
+ B2B_B2_L2_N : inout std_logic;
+ B2B_B2_L2_P : inout std_logic;
--
-- B2B J2 user IO
- B2B_B3_L60_N : inout std_logic;
- B2B_B3_L60_P : inout std_logic;
- B2B_B3_L9_N : inout std_logic;
- B2B_B3_L9_P : inout std_logic;
- B2B_B0_L3_P : inout std_logic;
- B2B_B0_L3_N : inout std_logic;
- B2B_B3_L59_P : inout std_logic;
- B2B_B3_L59_N : inout std_logic;
- B2B_B0_L32_P : inout std_logic;
- B2B_B0_L32_N : inout std_logic;
- B2B_B0_L7_N : inout std_logic;
- B2B_B0_L7_P : inout std_logic;
- B2B_B0_L33_N : inout std_logic;
- B2B_B0_L33_P : inout std_logic;
- B2B_B0_L36_P : inout std_logic;
- B2B_B0_L36_N : inout std_logic;
- B2B_B0_L49_P : inout std_logic;
- B2B_B0_L49_N : inout std_logic;
- B2B_B0_L62_P : inout std_logic;
- B2B_B0_L62_N : inout std_logic;
- B2B_B0_L66_P : inout std_logic;
- B2B_B0_L66_N : inout std_logic;
- B2B_B1_L10_P : inout std_logic;
- B2B_B1_L10_N : inout std_logic;
- B2B_B1_L9_P : inout std_logic;
- B2B_B1_L9_N : inout std_logic;
- B2B_B1_L21_N : inout std_logic;
- B2B_B1_L21_P : inout std_logic;
- B2B_B1_L61_P : inout std_logic;
- B2B_B1_L61_N : inout std_logic;
- B2B_B0_L1 : inout std_logic; -- used as reset_n
- B2B_B0_L2_P : inout std_logic;
- B2B_B0_L2_N : inout std_logic;
- B2B_B0_L4_N : inout std_logic;
- B2B_B0_L4_P : inout std_logic;
- B2B_B0_L5_N : inout std_logic;
- B2B_B0_L5_P : inout std_logic;
- B2B_B0_L6_N : inout std_logic;
- B2B_B0_L6_P : inout std_logic;
- B2B_B0_L8_N : inout std_logic;
- B2B_B0_L8_P : inout std_logic;
- B2B_B0_L34_N : inout std_logic;
- B2B_B0_L34_P : inout std_logic;
- B2B_B0_L35_N : inout std_logic;
- B2B_B0_L35_P : inout std_logic;
- B2B_B0_L37_N : inout std_logic;
- B2B_B0_L37_P : inout std_logic;
- B2B_B0_L38_N : inout std_logic;
- B2B_B0_L38_P : inout std_logic;
- B2B_B0_L50_N : inout std_logic;
- B2B_B0_L50_P : inout std_logic;
- B2B_B0_L51_N : inout std_logic;
- B2B_B0_L51_P : inout std_logic;
- B2B_B0_L63_N : inout std_logic;
- B2B_B0_L63_P : inout std_logic;
- B2B_B0_L64_N : inout std_logic;
- B2B_B0_L64_P : inout std_logic;
- B2B_B0_L65_N : inout std_logic;
- B2B_B0_L65_P : inout std_logic;
- B2B_B1_L20_P : inout std_logic;
- B2B_B1_L20_N : inout std_logic;
- B2B_B1_L19_P : inout std_logic;
- B2B_B1_L19_N : inout std_logic;
- B2B_B1_L59 : inout std_logic;
+ B2B_B3_L60_N : inout std_logic;
+ B2B_B3_L60_P : inout std_logic;
+ B2B_B3_L9_N : inout std_logic;
+ B2B_B3_L9_P : inout std_logic;
+ B2B_B0_L3_P : inout std_logic;
+ B2B_B0_L3_N : inout std_logic;
+ B2B_B3_L59_P : inout std_logic;
+ B2B_B3_L59_N : inout std_logic;
+ B2B_B0_L32_P : inout std_logic;
+ B2B_B0_L32_N : inout std_logic;
+ B2B_B0_L7_N : inout std_logic;
+ B2B_B0_L7_P : inout std_logic;
+ B2B_B0_L33_N : inout std_logic;
+ B2B_B0_L33_P : inout std_logic;
+ B2B_B0_L36_P : inout std_logic;
+ B2B_B0_L36_N : inout std_logic;
+ B2B_B0_L49_P : inout std_logic;
+ B2B_B0_L49_N : inout std_logic;
+ B2B_B0_L62_P : inout std_logic;
+ B2B_B0_L62_N : inout std_logic;
+ B2B_B0_L66_P : inout std_logic;
+ B2B_B0_L66_N : inout std_logic;
+ B2B_B1_L10_P : inout std_logic;
+ B2B_B1_L10_N : inout std_logic;
+ B2B_B1_L9_P : inout std_logic;
+ B2B_B1_L9_N : inout std_logic;
+ B2B_B1_L21_N : inout std_logic;
+ B2B_B1_L21_P : inout std_logic;
+ B2B_B1_L61_P : inout std_logic;
+ B2B_B1_L61_N : inout std_logic;
+ B2B_B0_L1 : inout std_logic; -- used as reset_n
+ B2B_B0_L2_P : inout std_logic;
+ B2B_B0_L2_N : inout std_logic;
+ B2B_B0_L4_N : inout std_logic;
+ B2B_B0_L4_P : inout std_logic;
+ B2B_B0_L5_N : inout std_logic;
+ B2B_B0_L5_P : inout std_logic;
+ B2B_B0_L6_N : inout std_logic;
+ B2B_B0_L6_P : inout std_logic;
+ B2B_B0_L8_N : inout std_logic;
+ B2B_B0_L8_P : inout std_logic;
+ B2B_B0_L34_N : inout std_logic;
+ B2B_B0_L34_P : inout std_logic;
+ B2B_B0_L35_N : inout std_logic;
+ B2B_B0_L35_P : inout std_logic;
+ B2B_B0_L37_N : inout std_logic;
+ B2B_B0_L37_P : inout std_logic;
+ B2B_B0_L38_N : inout std_logic;
+ B2B_B0_L38_P : inout std_logic;
+ B2B_B0_L50_N : inout std_logic;
+ B2B_B0_L50_P : inout std_logic;
+ B2B_B0_L51_N : inout std_logic;
+ B2B_B0_L51_P : inout std_logic;
+ B2B_B0_L63_N : inout std_logic;
+ B2B_B0_L63_P : inout std_logic;
+ B2B_B0_L64_N : inout std_logic;
+ B2B_B0_L64_P : inout std_logic;
+ B2B_B0_L65_N : inout std_logic;
+ B2B_B0_L65_P : inout std_logic;
+ B2B_B1_L20_P : inout std_logic;
+ B2B_B1_L20_N : inout std_logic;
+ B2B_B1_L19_P : inout std_logic;
+ B2B_B1_L19_N : inout std_logic;
+ B2B_B1_L59 : inout std_logic;
--
-- misc
- USER_LED_N : out std_logic;
- AV : in std_logic_vector(3 downto 0);
- BR : in std_logic_vector(3 downto 0)
- );
+ USER_LED_N : out std_logic;
+ AV : in std_logic_vector(3 downto 0);
+ BR : in std_logic_vector(3 downto 0)
+ );
end entity top;
@@ -250,7 +250,7 @@ architecture Behavioral of top is
end function simulation_active;
-
+
alias CARRIER_LED0 : std_logic is B2B_B3_L59_N;
alias CARRIER_LED1 : std_logic is B2B_B3_L59_P;
alias CARRIER_LED2 : std_logic is B2B_B3_L9_P;
@@ -260,38 +260,38 @@ architecture Behavioral of top is
alias UART_TX : std_logic is B2B_B2_L6_P;
- constant system_frequency_c : natural := 125_000_000;
+ constant system_frequency_c : natural := 125_000_000;
-- system signals
- signal clk_box : std_ulogic;
- signal clk_ready : std_ulogic := '1';
+ signal clk_box : std_ulogic;
+ signal clk_ready : std_ulogic := '1';
--
- signal reset_shreg : std_ulogic_vector(3 downto 0) := (others => '1');
- signal reset : std_ulogic := '1';
- signal reset_n : std_ulogic := '0';
+ signal reset_shreg : std_ulogic_vector(3 downto 0) := (others => '1');
+ signal reset : std_ulogic := '1';
+ signal reset_n : std_ulogic := '0';
--
-- io signals
- signal box_i0_break : std_ulogic;
- signal gpioi : gpio_in_type;
- signal uarti : uart_in_type;
+ signal box_i0_break : std_ulogic;
+ signal gpioi : gpio_in_type;
+ signal uarti : uart_in_type;
--
- signal box_i0_gpioo : gpio_out_type;
- signal box_i0_uarto : uart_out_type;
+ signal box_i0_gpioo : gpio_out_type;
+ signal box_i0_uarto : uart_out_type;
begin
-
+
-- default output drivers
-- for unused blocks
- PHY_MDC <= '1';
- PHY_TXEN <= '0';
- PHY_TXER <= '0';
- PHY_TXD <= (others => '1');
- PHY_GTXCLK <= '0';
- PHY_RESET_B <= '0';
- PHY_COL <= 'Z';
- PHY_MDIO <= 'Z';
-
+ PHY_MDC <= '1';
+ PHY_TXEN <= '0';
+ PHY_TXER <= '0';
+ PHY_TXD <= (others => '1');
+ PHY_GTXCLK <= '0';
+ PHY_RESET_B <= '0';
+ PHY_COL <= 'Z';
+ PHY_MDIO <= 'Z';
+
MCB1_DRAM_RESET_B <= '0';
MCB1_DRAM_A <= (others => '1');
MCB1_DRAM_BA <= (others => '1');
@@ -324,186 +324,186 @@ begin
MCB3_DRAM_DQS_P <= (others => 'Z');
MCB3_DRAM_DQ <= (others => 'Z');
- SPI_FLASH_CSO_B <= '1';
- SPI_FLASH_CCLK <= '1';
- SPI_FLASH_IO <= (others => 'Z');
+ SPI_FLASH_CSO_B <= '1';
+ SPI_FLASH_CCLK <= '1';
+ SPI_FLASH_IO <= (others => 'Z');
- WATCHDOG <= 'Z'; -- disable watchdog
+ WATCHDOG <= 'Z'; -- disable watchdog
--REPROG_N <= '1';
- MAC_DATA <= 'Z';
+ MAC_DATA <= 'Z';
-- B2B J1 user IO
- B2B_B2_L57_N <= 'Z';
- B2B_B2_L57_P <= 'Z';
- B2B_B2_L49_N <= 'Z';
- B2B_B2_L49_P <= 'Z';
- B2B_B2_L48_N <= 'Z';
- B2B_B2_L48_P <= 'Z';
- B2B_B2_L45_N <= 'Z';
- B2B_B2_L45_P <= 'Z';
- B2B_B2_L43_N <= 'Z';
- B2B_B2_L43_P <= 'Z';
- B2B_B2_L41_N <= 'Z';
- B2B_B2_L41_P <= 'Z';
- B2B_B2_L21_P <= 'Z';
- B2B_B2_L21_N <= 'Z';
- B2B_B2_L15_P <= 'Z';
- B2B_B2_L15_N <= 'Z';
- B2B_B2_L31_N <= 'Z';
- B2B_B2_L32_N <= 'Z';
- B2B_B2_L60_P <= 'Z';
- B2B_B2_L60_N <= 'Z';
- B2B_B2_L59_N <= 'Z';
- B2B_B2_L59_P <= 'Z';
- B2B_B2_L44_N <= 'Z';
- B2B_B2_L44_P <= 'Z';
- B2B_B2_L42_N <= 'Z';
- B2B_B2_L42_P <= 'Z';
- B2B_B2_L18_P <= 'Z';
- B2B_B2_L18_N <= 'Z';
- B2B_B2_L8_N <= 'Z';
- B2B_B2_L8_P <= 'Z';
- B2B_B2_L11_P <= 'Z';
- B2B_B2_L11_N <= 'Z';
- B2B_B2_L6_P <= 'Z';
- B2B_B2_L6_N <= 'Z';
- B2B_B2_L5_P <= 'Z';
- B2B_B2_L5_N <= 'Z';
- B2B_B2_L9_N <= 'Z';
- B2B_B2_L9_P <= 'Z';
- B2B_B2_L4_N <= 'Z';
- B2B_B2_L4_P <= 'Z';
- B2B_B2_L29_N <= 'Z';
- B2B_B2_L10_N <= 'Z';
- B2B_B2_L10_P <= 'Z';
- B2B_B2_L2_N <= 'Z';
- B2B_B2_L2_P <= 'Z';
- B2B_B3_L60_N <= 'Z';
- B2B_B3_L60_P <= 'Z';
+ B2B_B2_L57_N <= 'Z';
+ B2B_B2_L57_P <= 'Z';
+ B2B_B2_L49_N <= 'Z';
+ B2B_B2_L49_P <= 'Z';
+ B2B_B2_L48_N <= 'Z';
+ B2B_B2_L48_P <= 'Z';
+ B2B_B2_L45_N <= 'Z';
+ B2B_B2_L45_P <= 'Z';
+ B2B_B2_L43_N <= 'Z';
+ B2B_B2_L43_P <= 'Z';
+ B2B_B2_L41_N <= 'Z';
+ B2B_B2_L41_P <= 'Z';
+ B2B_B2_L21_P <= 'Z';
+ B2B_B2_L21_N <= 'Z';
+ B2B_B2_L15_P <= 'Z';
+ B2B_B2_L15_N <= 'Z';
+ B2B_B2_L31_N <= 'Z';
+ B2B_B2_L32_N <= 'Z';
+ B2B_B2_L60_P <= 'Z';
+ B2B_B2_L60_N <= 'Z';
+ B2B_B2_L59_N <= 'Z';
+ B2B_B2_L59_P <= 'Z';
+ B2B_B2_L44_N <= 'Z';
+ B2B_B2_L44_P <= 'Z';
+ B2B_B2_L42_N <= 'Z';
+ B2B_B2_L42_P <= 'Z';
+ B2B_B2_L18_P <= 'Z';
+ B2B_B2_L18_N <= 'Z';
+ B2B_B2_L8_N <= 'Z';
+ B2B_B2_L8_P <= 'Z';
+ B2B_B2_L11_P <= 'Z';
+ B2B_B2_L11_N <= 'Z';
+ B2B_B2_L6_P <= 'Z';
+ B2B_B2_L6_N <= 'Z';
+ B2B_B2_L5_P <= 'Z';
+ B2B_B2_L5_N <= 'Z';
+ B2B_B2_L9_N <= 'Z';
+ B2B_B2_L9_P <= 'Z';
+ B2B_B2_L4_N <= 'Z';
+ B2B_B2_L4_P <= 'Z';
+ B2B_B2_L29_N <= 'Z';
+ B2B_B2_L10_N <= 'Z';
+ B2B_B2_L10_P <= 'Z';
+ B2B_B2_L2_N <= 'Z';
+ B2B_B2_L2_P <= 'Z';
+ B2B_B3_L60_N <= 'Z';
+ B2B_B3_L60_P <= 'Z';
--B2B_B3_L9_N <= 'Z';
--B2B_B3_L9_P <= 'Z';
- B2B_B0_L3_P <= 'Z';
- B2B_B0_L3_N <= 'Z';
+ B2B_B0_L3_P <= 'Z';
+ B2B_B0_L3_N <= 'Z';
-- B2B J2 user IO
--B2B_B3_L59_P <= 'Z';
--B2B_B3_L59_N <= 'Z';
- B2B_B0_L32_P <= 'Z';
- B2B_B0_L32_N <= 'Z';
- B2B_B0_L7_N <= 'Z';
- B2B_B0_L7_P <= 'Z';
- B2B_B0_L33_N <= 'Z';
- B2B_B0_L33_P <= 'Z';
- B2B_B0_L36_P <= 'Z';
- B2B_B0_L36_N <= 'Z';
- B2B_B0_L49_P <= 'Z';
- B2B_B0_L49_N <= 'Z';
- B2B_B0_L62_P <= 'Z';
- B2B_B0_L62_N <= 'Z';
- B2B_B0_L66_P <= 'Z';
- B2B_B0_L66_N <= 'Z';
- B2B_B1_L10_P <= 'Z';
- B2B_B1_L10_N <= 'Z';
- B2B_B1_L9_P <= 'Z';
- B2B_B1_L9_N <= 'Z';
- B2B_B1_L21_N <= 'Z';
- B2B_B1_L21_P <= 'Z';
- B2B_B1_L61_P <= 'Z';
- B2B_B1_L61_N <= 'Z';
- B2B_B0_L2_P <= 'Z';
- B2B_B0_L2_N <= 'Z';
- B2B_B0_L4_N <= 'Z';
- B2B_B0_L4_P <= 'Z';
- B2B_B0_L5_N <= 'Z';
- B2B_B0_L5_P <= 'Z';
- B2B_B0_L6_N <= 'Z';
- B2B_B0_L6_P <= 'Z';
- B2B_B0_L8_N <= 'Z';
- B2B_B0_L8_P <= 'Z';
- B2B_B0_L34_N <= 'Z';
- B2B_B0_L34_P <= 'Z';
- B2B_B0_L35_N <= 'Z';
- B2B_B0_L35_P <= 'Z';
- B2B_B0_L37_N <= 'Z';
- B2B_B0_L37_P <= 'Z';
- B2B_B0_L38_N <= 'Z';
- B2B_B0_L38_P <= 'Z';
- B2B_B0_L50_N <= 'Z';
- B2B_B0_L50_P <= 'Z';
- B2B_B0_L51_N <= 'Z';
- B2B_B0_L51_P <= 'Z';
- B2B_B0_L63_N <= 'Z';
- B2B_B0_L63_P <= 'Z';
- B2B_B0_L64_N <= 'Z';
- B2B_B0_L64_P <= 'Z';
- B2B_B0_L65_N <= 'Z';
- B2B_B0_L65_P <= 'Z';
- B2B_B1_L20_P <= 'Z';
- B2B_B1_L20_N <= 'Z';
- B2B_B1_L19_P <= 'Z';
- B2B_B1_L19_N <= 'Z';
- B2B_B1_L59 <= 'Z';
+ B2B_B0_L32_P <= 'Z';
+ B2B_B0_L32_N <= 'Z';
+ B2B_B0_L7_N <= 'Z';
+ B2B_B0_L7_P <= 'Z';
+ B2B_B0_L33_N <= 'Z';
+ B2B_B0_L33_P <= 'Z';
+ B2B_B0_L36_P <= 'Z';
+ B2B_B0_L36_N <= 'Z';
+ B2B_B0_L49_P <= 'Z';
+ B2B_B0_L49_N <= 'Z';
+ B2B_B0_L62_P <= 'Z';
+ B2B_B0_L62_N <= 'Z';
+ B2B_B0_L66_P <= 'Z';
+ B2B_B0_L66_N <= 'Z';
+ B2B_B1_L10_P <= 'Z';
+ B2B_B1_L10_N <= 'Z';
+ B2B_B1_L9_P <= 'Z';
+ B2B_B1_L9_N <= 'Z';
+ B2B_B1_L21_N <= 'Z';
+ B2B_B1_L21_P <= 'Z';
+ B2B_B1_L61_P <= 'Z';
+ B2B_B1_L61_N <= 'Z';
+ B2B_B0_L2_P <= 'Z';
+ B2B_B0_L2_N <= 'Z';
+ B2B_B0_L4_N <= 'Z';
+ B2B_B0_L4_P <= 'Z';
+ B2B_B0_L5_N <= 'Z';
+ B2B_B0_L5_P <= 'Z';
+ B2B_B0_L6_N <= 'Z';
+ B2B_B0_L6_P <= 'Z';
+ B2B_B0_L8_N <= 'Z';
+ B2B_B0_L8_P <= 'Z';
+ B2B_B0_L34_N <= 'Z';
+ B2B_B0_L34_P <= 'Z';
+ B2B_B0_L35_N <= 'Z';
+ B2B_B0_L35_P <= 'Z';
+ B2B_B0_L37_N <= 'Z';
+ B2B_B0_L37_P <= 'Z';
+ B2B_B0_L38_N <= 'Z';
+ B2B_B0_L38_P <= 'Z';
+ B2B_B0_L50_N <= 'Z';
+ B2B_B0_L50_P <= 'Z';
+ B2B_B0_L51_N <= 'Z';
+ B2B_B0_L51_P <= 'Z';
+ B2B_B0_L63_N <= 'Z';
+ B2B_B0_L63_P <= 'Z';
+ B2B_B0_L64_N <= 'Z';
+ B2B_B0_L64_P <= 'Z';
+ B2B_B0_L65_N <= 'Z';
+ B2B_B0_L65_P <= 'Z';
+ B2B_B1_L20_P <= 'Z';
+ B2B_B1_L20_N <= 'Z';
+ B2B_B1_L19_P <= 'Z';
+ B2B_B1_L19_N <= 'Z';
+ B2B_B1_L59 <= 'Z';
------------------------------------------------------------
-- (internal) reset generation
-- with wait for locked DCM
- reset_generator_p : process( clk_box, clk_ready)
+ reset_generator_p : process(clk_box, clk_ready)
begin
- if clk_ready = '0' then
+ if clk_ready = '0' then
reset_shreg <= (others => '1');
- elsif rising_edge( clk_box) then
+ elsif rising_edge(clk_box) then
reset_shreg <= reset_shreg(reset_shreg'left-1 downto 0) & '0';
- end if;
+ end if;
end process;
reset <= reset_shreg(reset_shreg'left);
reset_n <= not reset;
-
-
+
+
------------------------------------------------------------
-- clock selection
- clk_box <= CLK; -- 125 MHz
+ clk_box <= CLK; -- 125 MHz
-- used IOs
-- LEDs
- gpioi.sig_in <= ( others => '0');
- gpioi.sig_en <= ( others => '0');
- gpioi.din <= ( 4 => MAC_DATA,
- 31 => simulation_active,
- others => '0');
- CARRIER_LED0 <= not box_i0_gpioo.dout( 0);
- CARRIER_LED1 <= not box_i0_gpioo.dout( 1);
- CARRIER_LED2 <= not box_i0_gpioo.dout( 2);
- CARRIER_LED3 <= not box_i0_gpioo.dout( 3);
- user_led_n <= not box_i0_gpioo.dout( 5);
- MAC_DATA <= box_i0_gpioo.dout(4) when box_i0_gpioo.oen(4) = '0' else 'Z';
-
+ gpioi.sig_in <= (others => '0');
+ gpioi.sig_en <= (others => '0');
+ gpioi.din <= (4 => MAC_DATA,
+ 31 => simulation_active,
+ others => '0');
+ CARRIER_LED0 <= not box_i0_gpioo.dout(0);
+ CARRIER_LED1 <= not box_i0_gpioo.dout(1);
+ CARRIER_LED2 <= not box_i0_gpioo.dout(2);
+ CARRIER_LED3 <= not box_i0_gpioo.dout(3);
+ user_led_n <= not box_i0_gpioo.dout(5);
+ MAC_DATA <= box_i0_gpioo.dout(4) when box_i0_gpioo.oen(4) = '0' else 'Z';
+
-- uart i/o
- uarti.rxd <= UART_RX;
- uarti.ctsn <= '0';
- uarti.extclk <= '0';
+ uarti.rxd <= UART_RX;
+ uarti.ctsn <= '0';
+ uarti.extclk <= '0';
--
- UART_TX <= box_i0_uarto.txd;
-
-
+ UART_TX <= box_i0_uarto.txd;
+
+
------------------------------------------------------------
-- box system
- box_i0: entity work.box
+ box_i0 : entity work.box
generic map (
- simulation_active => simulation_active, --: std_ulogic;
- system_frequency => system_frequency_c --: integer
- )
- port map (
- clk => clk_box, --: in std_ulogic;
- reset_n => reset_n, --: in std_ulogic;
- break => box_i0_break, --: out std_ulogic;
+ simulation_active => simulation_active, --: std_ulogic;
+ system_frequency => system_frequency_c --: integer
+ )
+ port map (
+ clk => clk_box, --: in std_ulogic;
+ reset_n => reset_n, --: in std_ulogic;
+ break => box_i0_break, --: out std_ulogic;
--
- uarti => uarti, --: in uart_in_type;
- uarto => box_i0_uarto, --: out uart_out_type;
+ uarti => uarti, --: in uart_in_type;
+ uarto => box_i0_uarto, --: out uart_out_type;
--
- gpioi => gpioi, --: in gpio_in_type;
- gpioo => box_i0_gpioo --: out gpio_out_type;
+ gpioi => gpioi, --: in gpio_in_type;
+ gpioo => box_i0_gpioo --: out gpio_out_type;
);
@@ -517,5 +517,181 @@ begin
-- reboot FPGA for real
REPROG_N <= not box_i0_break;
+
+ ------------------------------------------------------------
+ -- MCB stuff
+ --
+ mcb_stuff_b : block
+
+ begin
+
+ memc1_tb_top_inst : memc1_tb_top
+ generic map (
+ C_SIMULATION => C1_SIMULATION,
+ C_P0_MASK_SIZE => C1_P0_MASK_SIZE,
+ C_P0_DATA_PORT_SIZE => C1_P0_DATA_PORT_SIZE,
+ C_P1_MASK_SIZE => C1_P1_MASK_SIZE,
+ C_P1_DATA_PORT_SIZE => C1_P1_DATA_PORT_SIZE,
+ C_NUM_DQ_PINS => C1_NUM_DQ_PINS,
+ C_MEM_BURST_LEN => C1_MEM_BURST_LEN,
+ C_MEM_NUM_COL_BITS => C1_MEM_NUM_COL_BITS,
+ C_p0_BEGIN_ADDRESS => C1_p0_BEGIN_ADDRESS,
+ C_p0_DATA_MODE => C1_p0_DATA_MODE,
+ C_p0_END_ADDRESS => C1_p0_END_ADDRESS,
+ C_p0_PRBS_EADDR_MASK_POS => C1_p0_PRBS_EADDR_MASK_POS,
+ C_p0_PRBS_SADDR_MASK_POS => C1_p0_PRBS_SADDR_MASK_POS,
+ C_p1_BEGIN_ADDRESS => C1_p1_BEGIN_ADDRESS,
+ C_p1_DATA_MODE => C1_p1_DATA_MODE,
+ C_p1_END_ADDRESS => C1_p1_END_ADDRESS,
+ C_p1_PRBS_EADDR_MASK_POS => C1_p1_PRBS_EADDR_MASK_POS,
+ C_p1_PRBS_SADDR_MASK_POS => C1_p1_PRBS_SADDR_MASK_POS,
+ C_p2_BEGIN_ADDRESS => C1_p2_BEGIN_ADDRESS,
+ C_p2_DATA_MODE => C1_p2_DATA_MODE,
+ C_p2_END_ADDRESS => C1_p2_END_ADDRESS,
+ C_p2_PRBS_EADDR_MASK_POS => C1_p2_PRBS_EADDR_MASK_POS,
+ C_p2_PRBS_SADDR_MASK_POS => C1_p2_PRBS_SADDR_MASK_POS
+ )
+ port map (
+ error => c1_error,
+ calib_done => c1_calib_done,
+ clk0 => c1_clk0,
+ rst0 => c1_rst0,
+ cmp_error => c1_cmp_error,
+ cmp_data_valid => c1_cmp_data_valid,
+ vio_modify_enable => c1_vio_modify_enable,
+ error_status => c1_error_status,
+ vio_data_mode_value => c1_vio_data_mode_value,
+ vio_addr_mode_value => c1_vio_addr_mode_value,
+ cmp_data => c1_cmp_data,
+ p0_mcb_cmd_en_o => c1_p0_cmd_en,
+ p0_mcb_cmd_instr_o => c1_p0_cmd_instr,
+ p0_mcb_cmd_bl_o => c1_p0_cmd_bl,
+ p0_mcb_cmd_addr_o => c1_p0_cmd_byte_addr,
+ p0_mcb_cmd_full_i => c1_p0_cmd_full,
+ p0_mcb_wr_en_o => c1_p0_wr_en,
+ p0_mcb_wr_mask_o => c1_p0_wr_mask,
+ p0_mcb_wr_data_o => c1_p0_wr_data,
+ p0_mcb_wr_full_i => c1_p0_wr_full,
+ p0_mcb_wr_fifo_counts => c1_p0_wr_count,
+ p0_mcb_rd_en_o => c1_p0_rd_en,
+ p0_mcb_rd_data_i => c1_p0_rd_data,
+ p0_mcb_rd_empty_i => c1_p0_rd_empty,
+ p0_mcb_rd_fifo_counts => c1_p0_rd_count,
+ p1_mcb_cmd_en_o => c1_p1_cmd_en,
+ p1_mcb_cmd_instr_o => c1_p1_cmd_instr,
+ p1_mcb_cmd_bl_o => c1_p1_cmd_bl,
+ p1_mcb_cmd_addr_o => c1_p1_cmd_byte_addr,
+ p1_mcb_cmd_full_i => c1_p1_cmd_full,
+ p1_mcb_wr_en_o => c1_p1_wr_en,
+ p1_mcb_wr_mask_o => c1_p1_wr_mask,
+ p1_mcb_wr_data_o => c1_p1_wr_data,
+ p1_mcb_wr_full_i => c1_p1_wr_full,
+ p1_mcb_wr_fifo_counts => c1_p1_wr_count,
+ p1_mcb_rd_en_o => c1_p1_rd_en,
+ p1_mcb_rd_data_i => c1_p1_rd_data,
+ p1_mcb_rd_empty_i => c1_p1_rd_empty,
+ p1_mcb_rd_fifo_counts => c1_p1_rd_count,
+ p2_mcb_cmd_en_o => c1_p2_cmd_en,
+ p2_mcb_cmd_instr_o => c1_p2_cmd_instr,
+ p2_mcb_cmd_bl_o => c1_p2_cmd_bl,
+ p2_mcb_cmd_addr_o => c1_p2_cmd_byte_addr,
+ p2_mcb_cmd_full_i => c1_p2_cmd_full,
+ p2_mcb_wr_en_o => c1_p2_wr_en,
+ p2_mcb_wr_mask_o => c1_p2_wr_mask,
+ p2_mcb_wr_data_o => c1_p2_wr_data,
+ p2_mcb_wr_full_i => c1_p2_wr_full,
+ p2_mcb_wr_fifo_counts => c1_p2_wr_count,
+ p2_mcb_rd_en_o => c1_p2_rd_en,
+ p2_mcb_rd_data_i => c1_p2_rd_data,
+ p2_mcb_rd_empty_i => c1_p2_rd_empty,
+ p2_mcb_rd_fifo_counts => c1_p2_rd_count
+ );
+
+
+ memc3_tb_top_inst : memc3_tb_top
+ generic map (
+ C_SIMULATION => C3_SIMULATION,
+ C_P0_MASK_SIZE => C3_P0_MASK_SIZE,
+ C_P0_DATA_PORT_SIZE => C3_P0_DATA_PORT_SIZE,
+ C_P1_MASK_SIZE => C3_P1_MASK_SIZE,
+ C_P1_DATA_PORT_SIZE => C3_P1_DATA_PORT_SIZE,
+ C_NUM_DQ_PINS => C3_NUM_DQ_PINS,
+ C_MEM_BURST_LEN => C3_MEM_BURST_LEN,
+ C_MEM_NUM_COL_BITS => C3_MEM_NUM_COL_BITS,
+ C_p0_BEGIN_ADDRESS => C3_p0_BEGIN_ADDRESS,
+ C_p0_DATA_MODE => C3_p0_DATA_MODE,
+ C_p0_END_ADDRESS => C3_p0_END_ADDRESS,
+ C_p0_PRBS_EADDR_MASK_POS => C3_p0_PRBS_EADDR_MASK_POS,
+ C_p0_PRBS_SADDR_MASK_POS => C3_p0_PRBS_SADDR_MASK_POS,
+ C_p1_BEGIN_ADDRESS => C3_p1_BEGIN_ADDRESS,
+ C_p1_DATA_MODE => C3_p1_DATA_MODE,
+ C_p1_END_ADDRESS => C3_p1_END_ADDRESS,
+ C_p1_PRBS_EADDR_MASK_POS => C3_p1_PRBS_EADDR_MASK_POS,
+ C_p1_PRBS_SADDR_MASK_POS => C3_p1_PRBS_SADDR_MASK_POS,
+ C_p2_BEGIN_ADDRESS => C3_p2_BEGIN_ADDRESS,
+ C_p2_DATA_MODE => C3_p2_DATA_MODE,
+ C_p2_END_ADDRESS => C3_p2_END_ADDRESS,
+ C_p2_PRBS_EADDR_MASK_POS => C3_p2_PRBS_EADDR_MASK_POS,
+ C_p2_PRBS_SADDR_MASK_POS => C3_p2_PRBS_SADDR_MASK_POS
+ )
+ port map (
+ error => c3_error,
+ calib_done => c3_calib_done,
+ clk0 => c3_clk0,
+ rst0 => c3_rst0,
+ cmp_error => c3_cmp_error,
+ cmp_data_valid => c3_cmp_data_valid,
+ vio_modify_enable => c3_vio_modify_enable,
+ error_status => c3_error_status,
+ vio_data_mode_value => c3_vio_data_mode_value,
+ vio_addr_mode_value => c3_vio_addr_mode_value,
+ cmp_data => c3_cmp_data,
+ p0_mcb_cmd_en_o => c3_p0_cmd_en,
+ p0_mcb_cmd_instr_o => c3_p0_cmd_instr,
+ p0_mcb_cmd_bl_o => c3_p0_cmd_bl,
+ p0_mcb_cmd_addr_o => c3_p0_cmd_byte_addr,
+ p0_mcb_cmd_full_i => c3_p0_cmd_full,
+ p0_mcb_wr_en_o => c3_p0_wr_en,
+ p0_mcb_wr_mask_o => c3_p0_wr_mask,
+ p0_mcb_wr_data_o => c3_p0_wr_data,
+ p0_mcb_wr_full_i => c3_p0_wr_full,
+ p0_mcb_wr_fifo_counts => c3_p0_wr_count,
+ p0_mcb_rd_en_o => c3_p0_rd_en,
+ p0_mcb_rd_data_i => c3_p0_rd_data,
+ p0_mcb_rd_empty_i => c3_p0_rd_empty,
+ p0_mcb_rd_fifo_counts => c3_p0_rd_count,
+ p1_mcb_cmd_en_o => c3_p1_cmd_en,
+ p1_mcb_cmd_instr_o => c3_p1_cmd_instr,
+ p1_mcb_cmd_bl_o => c3_p1_cmd_bl,
+ p1_mcb_cmd_addr_o => c3_p1_cmd_byte_addr,
+ p1_mcb_cmd_full_i => c3_p1_cmd_full,
+ p1_mcb_wr_en_o => c3_p1_wr_en,
+ p1_mcb_wr_mask_o => c3_p1_wr_mask,
+ p1_mcb_wr_data_o => c3_p1_wr_data,
+ p1_mcb_wr_full_i => c3_p1_wr_full,
+ p1_mcb_wr_fifo_counts => c3_p1_wr_count,
+ p1_mcb_rd_en_o => c3_p1_rd_en,
+ p1_mcb_rd_data_i => c3_p1_rd_data,
+ p1_mcb_rd_empty_i => c3_p1_rd_empty,
+ p1_mcb_rd_fifo_counts => c3_p1_rd_count,
+ p2_mcb_cmd_en_o => c3_p2_cmd_en,
+ p2_mcb_cmd_instr_o => c3_p2_cmd_instr,
+ p2_mcb_cmd_bl_o => c3_p2_cmd_bl,
+ p2_mcb_cmd_addr_o => c3_p2_cmd_byte_addr,
+ p2_mcb_cmd_full_i => c3_p2_cmd_full,
+ p2_mcb_wr_en_o => c3_p2_wr_en,
+ p2_mcb_wr_mask_o => c3_p2_wr_mask,
+ p2_mcb_wr_data_o => c3_p2_wr_data,
+ p2_mcb_wr_full_i => c3_p2_wr_full,
+ p2_mcb_wr_fifo_counts => c3_p2_wr_count,
+ p2_mcb_rd_en_o => c3_p2_rd_en,
+ p2_mcb_rd_data_i => c3_p2_rd_data,
+ p2_mcb_rd_empty_i => c3_p2_rd_empty,
+ p2_mcb_rd_fifo_counts => c3_p2_rd_count
+ );
+
+ end block mcb_stuff_b;
+
+
end architecture Behavioral;
diff --git a/mig_test/software/main.c b/mig_test/software/main.c
index 883090a..535abf2 100644
--- a/mig_test/software/main.c
+++ b/mig_test/software/main.c
@@ -106,7 +106,6 @@ void running_light( uint32_t simulation_active)
}
-
////////////////////////////////////////////////////////////
@@ -122,11 +121,23 @@ void end_simulation_task( void)
+void running_light_task( void)
+{
+ static unsigned int pattern = 0x80300700;
+
+ gpio0->ioout = 0x0000000f & pattern;
+ pattern = (pattern << 1) | (pattern >> 31);
+
+ scheduler_task_add( running_light_task, SECONDS( 0.125));
+}
+
+
+
////////////////////////////////////////////////////////////
// start running light
uint32_t run_light_function( void)
{
- running_light( simulation_active);
+ scheduler_task_add( running_light_task, 1);
return 0;
}
@@ -168,7 +179,7 @@ void uart_monitor( void)
while( monitor_run)
{
// process scheduler
- if (timer_tick)
+ if ( timer_tick)
{
timer_tick = FALSE;
scheduler_task_check();
diff --git a/mig_test/vhdl_files.txt b/mig_test/vhdl_files.txt
index 693137b..a94534a 100644
--- a/mig_test/vhdl_files.txt
+++ b/mig_test/vhdl_files.txt
@@ -61,3 +61,33 @@ zpu ../zpu/rtl/zpu_wrapper_package.vhd
zpu ../zpu/rtl/zpupkg.vhd
zpu ../zpu/rtl_tb/sim_small_fpga_top_noint.vhd
zpu ../zpu/rtl_tb/txt_util.vhd
+
+
+# MIG example design
+work cores/mig_v3_61/example_design/rtl/example_top.vhd
+work cores/mig_v3_61/example_design/rtl/iodrp_controller.vhd
+work cores/mig_v3_61/example_design/rtl/iodrp_mcb_controller.vhd
+work cores/mig_v3_61/example_design/rtl/mcb_raw_wrapper.vhd
+work cores/mig_v3_61/example_design/rtl/mcb_soft_calibration.vhd
+work cores/mig_v3_61/example_design/rtl/mcb_soft_calibration_top.vhd
+work cores/mig_v3_61/example_design/rtl/memc1_infrastructure.vhd
+work cores/mig_v3_61/example_design/rtl/memc1_tb_top.vhd
+work cores/mig_v3_61/example_design/rtl/memc1_wrapper.vhd
+work cores/mig_v3_61/example_design/rtl/memc3_infrastructure.vhd
+work cores/mig_v3_61/example_design/rtl/memc3_tb_top.vhd
+work cores/mig_v3_61/example_design/rtl/memc3_wrapper.vhd
+work cores/mig_v3_61/example_design/rtl/traffic_gen/afifo.vhd
+work cores/mig_v3_61/example_design/rtl/traffic_gen/cmd_gen.vhd
+work cores/mig_v3_61/example_design/rtl/traffic_gen/cmd_prbs_gen.vhd
+work cores/mig_v3_61/example_design/rtl/traffic_gen/data_prbs_gen.vhd
+work cores/mig_v3_61/example_design/rtl/traffic_gen/init_mem_pattern_ctr.vhd
+work cores/mig_v3_61/example_design/rtl/traffic_gen/mcb_flow_control.vhd
+work cores/mig_v3_61/example_design/rtl/traffic_gen/mcb_traffic_gen.vhd
+work cores/mig_v3_61/example_design/rtl/traffic_gen/rd_data_gen.vhd
+work cores/mig_v3_61/example_design/rtl/traffic_gen/read_data_path.vhd
+work cores/mig_v3_61/example_design/rtl/traffic_gen/read_posted_fifo.vhd
+work cores/mig_v3_61/example_design/rtl/traffic_gen/sp6_data_gen.vhd
+work cores/mig_v3_61/example_design/rtl/traffic_gen/tg_status.vhd
+work cores/mig_v3_61/example_design/rtl/traffic_gen/v6_data_gen.vhd
+work cores/mig_v3_61/example_design/rtl/traffic_gen/wr_data_gen.vhd
+work cores/mig_v3_61/example_design/rtl/traffic_gen/write_data_path.vhd
OpenPOWER on IntegriCloud