]> jspc29.x-matter.uni-frankfurt.de Git - trb3sc.git/commitdiff
added triggerlogic to triggerlogic proj
authorFlorian Marx <fmarx@jspc71.x-matter.uni-frankfurt.de>
Tue, 7 Aug 2018 09:19:47 +0000 (11:19 +0200)
committerFlorian Marx <fmarx@jspc71.x-matter.uni-frankfurt.de>
Tue, 7 Aug 2018 09:19:47 +0000 (11:19 +0200)
pinout/trb3sc_basic.lpf
triggerlogic/config.vhd
triggerlogic/trb3sc_trigger.prj
triggerlogic/trb3sc_trigger.vhd

index aae022c36d7d36f5e15d53afa9f1408fe2e61ebe..b10da1645c9f434da8ca14494991698d9ddf8e17 100644 (file)
@@ -415,6 +415,7 @@ LOCATE COMP "KEL_40"                        SITE "L28";
 DEFINE PORT GROUP "KEL_group" "KEL*" ;\r
 IOBUF GROUP  "KEL_group" IO_TYPE=LVDS25  DIFFRESISTOR=100;\r
 \r
+\r
 #################################################################\r
 # Many LED\r
 #################################################################\r
index 698d9c002619b96d449bc8d0f4b9b786bd8f084b..08c6226228e61e496847873c57b5ae7e58549c85 100644 (file)
@@ -24,7 +24,7 @@ package config is
     constant USE_RXCLOCK            : integer := c_NO;
    
 --Address settings   
-    constant INIT_ADDRESS           : std_logic_vector := x"F3CC";
+    constant INIT_ADDRESS           : std_logic_vector := x"F369";
     constant BROADCAST_SPECIAL_ADDR : std_logic_vector := x"69";
    
 --set to 0 for backplane serdes, set to 3 for front SFP serdes
index a8bd3457cef9a2973ccddeaf995e25feb7f51f49..c9d457cb4621cd14c0f44aa0cf6cdfc24950b12f 100644 (file)
@@ -112,8 +112,8 @@ add_file -vhdl -lib work "../../trb3sc/code/trb3sc_tools.vhd"
 add_file -vhdl -lib work "../../trb3sc/code/lcd.vhd"
 add_file -vhdl -lib work "../../trb3sc/code/debuguart.vhd"
 add_file -vhdl -lib work "../../trbnet/special/uart.vhd"
-add_file -vhdl -lib work "../../trbnet/special/uart_rec.vhd"
-add_file -vhdl -lib work "../../trbnet/special/uart_trans.vhd"
+add_file -vhdl -lib work "../../vhdlbasics/interface/code/uart_rec.vhd"
+add_file -vhdl -lib work "../../vhdlbasics/interface/code/uart_trans.vhd"
 add_file -vhdl -lib work "../../trbnet/special/spi_ltc2600.vhd"
 add_file -vhdl -lib work "../../trb3sc/code/load_settings.vhd"
 add_file -vhdl -lib work "../../trb3sc/code/spi_master_generic.vhd"
@@ -139,6 +139,18 @@ add_file -vhdl -lib work "../../trbnet/media_interfaces/ecp3_sfp/serdes_sync_0.v
 add_file -vhdl -lib work "../../trbnet/media_interfaces/ecp3_sfp/serdes_sync_3.vhd"
 add_file -vhdl -lib work "../../trbnet/media_interfaces/med_ecp3_sfp_sync.vhd"
 
+#Triggerogic_flo
+#alle files einzeln adden 
+add_file -vhdl -lib work "../../triggerlogic/trigger_logic.vhd"
+add_file -vhdl -lib work "../../triggerlogic/trigger_enable.vhd"
+add_file -vhdl -lib work "../../triggerlogic/trigger_inverter.vhd"
+add_file -vhdl -lib work "../../triggerlogic/trigger_edgedetect.vhd"
+add_file -vhdl -lib work "../../triggerlogic/trigger_delay.vhd"
+add_file -vhdl -lib work "../../triggerlogic/trigger_stretch.vhd"
+add_file -vhdl -lib work "../../triggerlogic/trigger_coin.vhd"
+add_file -vhdl -lib work "../../triggerlogic/trigger_merge.vhd"
+add_file -vhdl -lib work "../../triggerlogic/cores/delay_shift_reg.vhd"
+
 #TrbNet Endpoint
 add_file -vhdl -lib work "../../trbnet/trb_net16_term_buf.vhd"
 add_file -vhdl -lib work "../../trbnet/trb_net_CRC.vhd"
index f53720d514d6bdabc74c1fc4e74810cb5b20847a..9df6a2f30313269477246651d56363027dd1bf08 100644 (file)
@@ -346,7 +346,7 @@ THE_ENDPOINT : entity work.trb_net16_endpoint_hades_full_handler_record
       SPI_MISO_IN => spi_miso,
       SPI_CLK_OUT => spi_clk,
       --Header
-      HEADER_IO   => HDR_IO,
+      HEADER_IO   => open,
       --LCD
       LCD_DATA_IN => lcd_data,
       --ADC
@@ -416,10 +416,24 @@ THE_ENDPOINT : entity work.trb_net16_endpoint_hades_full_handler_record
     end if;
   end process;  
 
+---------------------------------------------------------------------------
+-- triggerlocig 
+---------------------------------------------------------------------------
+  THE_LOGIC : entity work.trigger_logic 
+  generic map(
+    INPUTS => 24,
+    OUTPUTS => 8
+    )
+  port map(
+    CLK           => clk_sys,
+    RESET         => reset_i,
+    BUS_RX        => bustrglogic_rx,
+    BUS_TX        => bustrglogic_tx,
+    INPUT         => KEL(24 downto 1),
+    OUTPUT        => HDR_IO(8 downto 1)
+    );
 
   
-  
-  
 
   
 end architecture;