]> jspc29.x-matter.uni-frankfurt.de Git - TOMcat.git/commitdiff
READOUT removed, seems still to work
authorMichael Boehmer <mboehmer@ph.tum.de>
Mon, 25 Jul 2022 07:19:14 +0000 (09:19 +0200)
committerMichael Boehmer <mboehmer@ph.tum.de>
Mon, 25 Jul 2022 07:19:14 +0000 (09:19 +0200)
gbe/tomcat_gbe.vhd

index bcdf3fe24af015efec7358245c87394beef204fd..0917117888e2af1dc4ed5af81cbcfa9ebec8b136 100644 (file)
@@ -98,8 +98,8 @@ architecture arch of tomcat_gbe is
   signal common_stat_reg            : std_logic_vector(std_COMSTATREG*32-1 downto 0) := (others => '0');
   signal common_ctrl_reg            : std_logic_vector(std_COMCTRLREG*32-1 downto 0);
   
-  signal ctrlbus_tx, bustools_tx, busgbeip_tx, busgbereg_tx, bus_master_in  : CTRLBUS_TX;
-  signal ctrlbus_rx, bustools_rx, busgbeip_rx, busgbereg_rx, bus_master_out : CTRLBUS_RX;
+  signal ctrlbus_tx, bustools_tx, bus_master_in  : CTRLBUS_TX;
+  signal ctrlbus_rx, bustools_rx, bus_master_out : CTRLBUS_RX;
   signal bus_master_active          : std_logic;
 
   signal timer                      : TIMERS;
@@ -162,7 +162,9 @@ architecture arch of tomcat_gbe is
 
   signal tick_ms_int                : std_logic;
   signal tick_us_int                : std_logic;
-  
+
+  signal reboot_int                 : std_logic;
+
 begin
 
 ---------------------------------------------------------------------------
@@ -234,7 +236,7 @@ begin
     -- Status
     PCS_AN_READY_OUT      => open,
     LINK_ACTIVE_OUT       => link_active,
-    TICK_MS_IN            => tick_us_int,
+    TICK_MS_IN            => tick_ms_int,
     -- Debug
     STATUS_OUT            => status(7 downto 0),
     DEBUG_OUT             => open --debug(63 downto 0) 
@@ -276,7 +278,7 @@ begin
     CLK                       => clk_sys,
     RESET                     => reset_i,
     --
---    FIFO_FULL_IN(0 downto 0)  => dl_tx_fifofull(0 downto 0),
+--    FIFO_FULL_IN(0 downto 0)  => dl_tx_fifofull(0 downto 0), -- not needed, only SCTRL at the moment
     FIFO_FULL_OUT             => ul_rx_fifofull,
     FRAME_AVAIL_IN            => ul_rx_frame_avail,
     FRAME_REQ_OUT             => ul_rx_frame_req,
@@ -316,7 +318,6 @@ begin
 ---------------------------------------------------------------------------    
   GBE: entity work.gbe_wrapper_fifo
     generic map(
-      LINK_HAS_READOUT          => '0',
       LINK_HAS_SLOWCTRL         => '1',
       LINK_HAS_DHCP             => '1',
       LINK_HAS_ARP              => '1',
@@ -327,8 +328,6 @@ begin
       CLK_125_IN               => clk_sys,
       RESET                    => reset_i,
       GSR_N                    => reset_n_i,
-      -- Trigger
-      TRIGGER_IN               => '0',
       -- we connect to FIFO interface directly
       -- FIFO interface TX (transmit frames)
       FIFO_DATA_OUT            => dl_rx_data(0)(8 downto 0),
@@ -361,11 +360,6 @@ begin
       GSC_REPLY_PACKET_NUM_IN  => gsc_reply_packet_num, 
       GSC_REPLY_READ_OUT       => gsc_reply_read,       
       GSC_BUSY_IN              => gsc_busy,            
-      -- readout
-      BUS_IP_RX                => busgbeip_rx,
-      BUS_IP_TX                => busgbeip_tx,
-      BUS_REG_RX               => busgbereg_rx,
-      BUS_REG_TX               => busgbereg_tx,
       -- Forwarder
       FWD_DST_MAC_IN           => fwd_mac_int,
       FWD_DST_IP_IN            => fwd_ip_int,
@@ -501,9 +495,9 @@ begin
 -------------------------------------------------------------------------------
   THE_BUS_HANDLER : entity work.trb_net16_regio_bus_handler_record
     generic map(
-      PORT_NUMBER      => 3,
-      PORT_ADDRESSES   => (0 => x"d000", 1 => x"8100", 2 => x"8300", others => x"0000"),
-      PORT_ADDR_MASK   => (0 => 12,      1 => 8,       2 => 8,       others => 0),
+      PORT_NUMBER      => 1,
+      PORT_ADDRESSES   => (0 => x"d000", others => x"0000"),
+      PORT_ADDR_MASK   => (0 => 12,      others => 0),
       PORT_MASK_ENABLE => 1
     )
     port map(
@@ -512,11 +506,7 @@ begin
       REGIO_RX   => ctrlbus_rx,
       REGIO_TX   => ctrlbus_tx,
       BUS_RX(0)  => bustools_rx,         --Flash, SPI, UART, ADC, SED
-      BUS_RX(1)  => busgbeip_rx,
-      BUS_RX(2)  => busgbereg_rx,
       BUS_TX(0)  => bustools_tx,
-      BUS_TX(1)  => busgbeip_tx,
-      BUS_TX(2)  => busgbereg_tx,
       STAT_DEBUG => open
     );
 
@@ -533,7 +523,7 @@ begin
       FLASH_IN           => flash_miso_i,
       FLASH_OUT          => flash_mosi_i,
       PROGRAMN           => PROGRAMN,
-      REBOOT_IN          => common_ctrl_reg(15),
+      REBOOT_IN          => reboot_int,
       -- I2C
       SDA_INOUT          => SFP_MOD_2, --open, --I2C_SDA,
       SCL_INOUT          => SFP_MOD_1, --open, --SI2C_SCL,      
@@ -554,6 +544,8 @@ begin
       DEBUG_OUT          => open
     );
 
+  reboot_int <= common_ctrl_reg(15) or reboot_from_gbe;
+    
 --  led_off        <= additional_reg(0);
 
   -- FlashROM external connections