]> jspc29.x-matter.uni-frankfurt.de Git - trb3sc.git/commitdiff
add flash register settings for hub
authorJan Michel <michel@physik.uni-frankfurt.de>
Thu, 15 Dec 2022 11:14:59 +0000 (12:14 +0100)
committerJan Michel <michel@physik.uni-frankfurt.de>
Thu, 15 Dec 2022 11:14:59 +0000 (12:14 +0100)
hub/config_compile_frankfurt.pl
hub/trb3sc_hub.vhd

index 6ed05321fa84dabd797d1d84f34a9332f9235593..e6790b2c0835223e780964e678724336a7bbe026 100644 (file)
@@ -1,8 +1,8 @@
 TOPNAME                      => "trb3sc_hub",
 lm_license_file_for_synplify => "27020\@jspc29", #"27000\@lxcad01.gsi.de";
 lm_license_file_for_par      => "1710\@jspc29",
-lattice_path                 => '/d/jspc29/lattice/diamond/3.11_x64',
-synplify_path                => '/d/jspc29/lattice/synplify/R-2020.09-SP1',
+lattice_path                 => '/d/jspc29/lattice/diamond/3.12',
+synplify_path                => '/d/jspc29/lattice/synplify/S-2021.09-SP2',
 #synplify_path                => '/d/jspc29/lattice/synplify/L-2016.09-1/',
 #synplify_command             => "/d/jspc29/lattice/diamond/3.5_x64/bin/lin64/synpwrap -fg -options",
 #synplify_command             => "/d/jspc29/lattice/synplify/J-2014.09-SP2/bin/synplify_premier_dp",
index 969ff5d25c81ad94b4db34a4ea1724423afc81f6..7d1108d9210738146211864b13d0f48a21e38922 100644 (file)
@@ -108,7 +108,7 @@ architecture trb3sc_arch of trb3sc_hub is
   signal med_stat_debug    : std_logic_vector (1*64-1  downto 0);
   
   signal ctrlbus_rx, bussci1_rx, bussci2_rx, bussci3_rx, bussci4_rx, bustools_rx, 
-         bustc_rx, busgbeip_rx, busgbereg_rx, bus_master_out, handlerbus_rx  : CTRLBUS_RX;
+         bustc_rx, busgbeip_rx, busgbereg_rx, bus_master_out  : CTRLBUS_RX;
   signal ctrlbus_tx, bussci1_tx, bussci2_tx, bussci3_tx, bussci4_tx, bustools_tx, 
          bustc_tx, busgbeip_tx, busgbereg_tx, bus_master_in : CTRLBUS_TX;
   
@@ -620,7 +620,9 @@ gen_hub_with_gbe : if INCLUDE_GBE = c_YES generate
       BUS_RX                  => ctrlbus_rx,
       BUS_TX                  => ctrlbus_tx,
       TIMER                   => timer,
-
+      BUS_MASTER_IN           => bus_master_in,
+      BUS_MASTER_OUT          => bus_master_out,
+      BUS_MASTER_ACTIVE       => bus_master_active,  
       --Gbe Sctrl Input
       GSC_INIT_DATAREADY_IN        => gsc_init_dataready,
       GSC_INIT_DATA_IN             => gsc_init_data,
@@ -697,7 +699,9 @@ gen_hub_no_gbe : if INCLUDE_GBE = c_NO generate
       REGIO_WRITE_ACK_IN        => wrack,
       REGIO_UNKNOWN_ADDR_IN     => ctrlbus_tx.unknown,
       REGIO_TIMEOUT_OUT         => ctrlbus_rx.timeout,
-      
+      BUS_MASTER_IN             => bus_master_in,
+      BUS_MASTER_OUT            => bus_master_out,
+      BUS_MASTER_ACTIVE         => bus_master_active,      
       ONEWIRE                         => TEMPSENS,
       ONEWIRE_MONITOR_OUT             => open,
       --Status ports (for debugging)
@@ -738,7 +742,7 @@ end generate;
       CLK   => clk_sys,
       RESET => reset_i,
 
-      REGIO_RX  => handlerbus_rx,
+      REGIO_RX  => ctrlbus_rx,
       REGIO_TX  => ctrlbus_tx,
       
       BUS_RX(0) => bustools_rx, --Flash, SPI, UART, ADC, SED
@@ -760,7 +764,7 @@ end generate;
       STAT_DEBUG => open
       );
 
-  handlerbus_rx <= ctrlbus_rx when bus_master_active = '0' else bus_master_out;         
+  --handlerbus_rx <= ctrlbus_rx;-- when bus_master_active = '0' else bus_master_out;         
       
 ---------------------------------------------------------------------------
 -- Control Tools
@@ -801,7 +805,7 @@ end generate;
       BUS_RX     => bustools_rx,
       BUS_TX     => bustools_tx,
       --Control master for default settings
-      BUS_MASTER_IN  => ctrlbus_tx,
+      BUS_MASTER_IN  => bus_master_in,
       BUS_MASTER_OUT => bus_master_out,
       BUS_MASTER_ACTIVE => bus_master_active,        
       DEBUG_OUT  => open