]> jspc29.x-matter.uni-frankfurt.de Git - trb3.git/commitdiff
Miscallenous changes. Having issues with persisting timing violations showing up...
authorTobias Weber <toweber86@gmail.com>
Mon, 7 Aug 2017 13:45:06 +0000 (15:45 +0200)
committerTobias Weber <toweber86@gmail.com>
Mon, 7 Aug 2017 13:45:06 +0000 (15:45 +0200)
base/trb3_periph_mupix.lpf
mupix/sources/MuPix3_interface.vhd
mupix/sources/TriggerHandler.vhd
mupix/sources/graycounter.vhd

index 35f9d96356f05a2f2ef78500e92fa370297267f2..2c802ed1108810e99065991bf0bf131e03b7afca 100644 (file)
@@ -373,4 +373,4 @@ IOBUF GROUP "not_connected_group" IO_TYPE=LVCMOS25;
 ###########################################################
 ##Relax some timing constraints
 ###########################################################
-MULTICYCLE FROM CELL "MuPix3_Board_*/board_interface_1/hbus_from_mupix_sync" TO CELL "MuPix3_Board_*/HitbusHistogram_1/hitbus_buffer" 2 X;
+#MULTICYCLE FROM CELL "MuPix3_Board_*/board_interface_1/hbus_from_mupix_sync" TO CELL "MuPix3_Board_*/HitbusHistogram_1/hitbus_buffer" 2 X;
index b2643cfc80e65432a80386777e7de8151eee109b..ca593b11d5ca3a5f59d09e07e27c368051173d3d 100644 (file)
@@ -70,7 +70,6 @@ architecture RTL of mupix_interface is
   signal sensor_id                  : std_logic_vector(31 downto 0) := (others => '0');
 
   signal triggering            : std_logic := '0';
-  signal busy_r                : std_logic := '0';
   signal continousread         : std_logic := '0';
   signal readnow               : std_logic := '0';
   signal readmanual            : std_logic := '0';
@@ -229,8 +228,7 @@ begin
   -----------------------------------------------------------------------------
   --Readout Control
   -----------------------------------------------------------------------------
-
-  process(rst, clk)
+  process(clk)
   begin
     if rising_edge(clk) then
       if(rst = '1') then
@@ -273,7 +271,7 @@ begin
   -----------------------------------------------------------------------------
   --MuPix 3/4/6 Readout Statemachine
   -----------------------------------------------------------------------------
-  ro_statemachine : process(rst, clk)
+  ro_statemachine : process(clk)
   begin
     if rising_edge(clk) then
       if(rst = '1') then
@@ -500,27 +498,25 @@ begin
               delcounter   <= "00000100";
               eventcounter <= eventcounter + 1;
             end if;
-          when others =>
-            testoutro(8) <= '1';
-            state        <= waiting;
         end case;
       end if;
     end if;
   end process;
 
-  tsgen :
-  process(rst, clk)
-  begin
-    if(rst = '1') then
-      mupixcontrol.timestamps <= (others => '0');
-    elsif(clk'event and clk = '1') then
-      if(timestampcontrolbits(8) = '1') then
-        mupixcontrol.timestamps <= graycount;
-      else
-        mupixcontrol.timestamps <= timestampcontrolbits(7 downto 0);
-      end if;
-    end if;
-  end process;
+  tsgen : process(clk)
+       begin
+               if rising_edge(clk) then
+                       if (rst = '1') then
+                               mupixcontrol.timestamps <= (others => '0');
+                       else
+                               if (timestampcontrolbits(8) = '1') then
+                                       mupixcontrol.timestamps <= graycount;
+                               else
+                                       mupixcontrol.timestamps <= timestampcontrolbits(7 downto 0);
+                               end if;
+                       end if;
+               end if;
+       end process;
 
   resetgraycounter <= timestampreset_in or timestampcontrolbits(9);
 
index d77ca36f044cb7adfde03b9041c1f02d8c2e7815..9de6ca11ee2309e70d4b2f700bfe3f9dd7d30903 100644 (file)
@@ -73,7 +73,6 @@ architecture behavioral of TriggerHandler is
   signal timing_trigger_int      : std_logic                     := '0';
   signal timing_trigger_edge     : std_logic_vector(1 downto 0)  := "00";
   signal status_trigger_int      : std_logic                     := '0';
-  signal calibration_trigger_int : std_logic                     := '0';
   signal fast_clear_int          : std_logic                     := '0';
   signal flush_buffer_int        : std_logic                     := '0';
   signal trigger_busy_int        : std_logic                     := '0';
@@ -86,7 +85,6 @@ architecture behavioral of TriggerHandler is
   signal fee_trg_release_int     : std_logic                     := '0';
   signal fee_trg_statusbit_int   : std_logic_vector(31 downto 0) := (others => '0');
 --event buffer
-  signal fast_clear_o            : std_logic                     := '0';
 
 --registers
   signal reset_trigger_counters : std_logic := '0';
index a15ad76cf97c7acb86bd9bfc8ccb2cf6cd99a796..2722c1aab3f3236c818559da72befd31c64034b2 100644 (file)
@@ -52,9 +52,9 @@ begin
     end if;
   end process clock_divider_proc;
 
-  process(clk, reset)
+  process(clk)
   begin
-    if (clk'event and clk = '1') then
+    if rising_edge(clk) then
       if (reset = '1') then
         no_ones_below(0) <= '1';
         counter_reg      <= (others => '0');