]> jspc29.x-matter.uni-frankfurt.de Git - trb3.git/commitdiff
fixed to use internal trigger source for CTS
authorJan Michel <j.michel@gsi.de>
Fri, 13 Mar 2015 13:33:04 +0000 (14:33 +0100)
committerJan Michel <j.michel@gsi.de>
Fri, 13 Mar 2015 13:33:04 +0000 (14:33 +0100)
base/code/clock_switch.vhd
cts/trb3_central.p2t
cts/trb3_central.prj
cts/trb3_central.vhd
cts/trb3_central_constraints_3.lpf

index 06fd622cc55cda317f69ee89d2a5a8570b07b74e..a38554685d567bc3e8746f3d887782328e882afa 100644 (file)
@@ -8,6 +8,9 @@ library work;
   use work.config.all;
 
 entity clock_switch is
+  generic(
+    DEFAULT_INTERNAL_TRIGGER  : integer := c_NO
+    );
   port (
     INT_CLK_IN   : in std_logic;  -- dont care which clock
     SYS_CLK_IN   : in std_logic;
@@ -30,13 +33,14 @@ end entity;
 
 architecture clock_switch_arch of clock_switch is
   constant USE_EXTERNAL_CLOCK_std : std_logic := std_logic_vector(to_unsigned(USE_EXTERNAL_CLOCK,1))(0);
+  constant DEFAULT_INTERNAL_TRIGGER_std : std_logic := std_logic_vector(to_unsigned(DEFAULT_INTERNAL_TRIGGER,1))(0);
 
   type INT_FSM_STATES_T is (WAIT_FOR_LOCK, WAIT_PLL_STABLE, OPERATING);
   signal int_fsm_i : INT_FSM_STATES_T := WAIT_FOR_LOCK;
   signal int_fsm_code_i : std_logic_vector(3 downto 0);
 
   signal select_tc  : std_logic_vector(7 downto 0);
-  signal select_trg : std_logic;
+  signal select_trg : std_logic := DEFAULT_INTERNAL_TRIGGER_std;
   signal select_clk : std_logic := USE_EXTERNAL_CLOCK_std;
 --   signal select_clk_sys  : std_logic := USE_EXTERNAL_CLOCK_std;
   signal select_clk_qsys : std_logic;
index b3a6824f4c7c5028b769efeff1a750d8dcd0ffce..123a34b295b857d50f0702f6d0309c41f396bd15 100644 (file)
@@ -4,11 +4,11 @@
 -n 1
 -y
 -s 15
--t 19
+-t 18
 -c 1
 -e 2
 #-g guidefile.ncd
--m nodelist.txt
+#-m nodelist.txt
 # -w
 # -i 6
 # -l 5
index f9fd5267357fb60694b4c2cd12ea98b84a7e6a33..4a98f6bedbcb33b7bf9e8110165c91f1973d0d45 100644 (file)
@@ -60,7 +60,7 @@ impl -active "workdir"
 
 ####################
 
-add_file -fpga_constraint "./trb3_central_syn.fdc"
+#add_file -fpga_constraint "./trb3_central_syn.fdc"
 
 
 
index c629048b24f7fbea3d54c99230d2caeba88c3bdb..e902e4bc4bded84767ba51df01ceb8578764b0ca 100644 (file)
@@ -1712,8 +1712,6 @@ begin
       esb_data_ready <= '0';
       fwb_data_ready <= '0';
       hitreg_data_ready <= '0';
-   
-   
       process begin
          wait until rising_edge(clk_100_i);
          srb_invalid <= srb_read_en or srb_write_en;
@@ -1755,6 +1753,9 @@ begin
 --    CLK_MNGR2_USER <= select_tc_i(27 downto 24); 
 
    THE_CLOCK_SWITCH: entity work.clock_switch
+   generic map(
+      DEFAULT_INTERNAL_TRIGGER => c_YES
+      )
    port map(
       INT_CLK_IN   => CLK_GPLL_RIGHT,
       SYS_CLK_IN   => clk_100_i,
index b703e5895ebada46aac26e05e31cd52a5c59bc7e..57435d20864b46cf183c3492a9f95e4b4d44bb49 100644 (file)
@@ -52,6 +52,8 @@ LOCATE COMP "THE_MEDIA_ONBOARD/gen_serdes_125_THE_SERDES/PCSD_INST" SITE "PCSC"
 
 UGROUP "THE_RESET_HANDLER_GRP" BLKNAME THE_RESET_HANDLER;
 MULTICYCLE TO CELL "THE_RESET_HANDLER/final_reset[*]" 30.000000 ns ;
+MULTICYCLE FROM CELL "THE_RESET_HANDLER/final_reset*" 30.000000 ns ;
+
 #MULTICYCLE TO CELL "THE_HUB/THE_HUB/local_network_reset*" 30.000000 ns ;
 
 #REGION "MEDIA_UPLINK" "R100C115D" 20 60 DEVSIZE;