]> jspc29.x-matter.uni-frankfurt.de Git - trb3.git/commitdiff
*** empty log message ***
authorhadeshyp <hadeshyp>
Thu, 4 Oct 2012 12:08:29 +0000 (12:08 +0000)
committerhadeshyp <hadeshyp>
Thu, 4 Oct 2012 12:08:29 +0000 (12:08 +0000)
base/code/mbs_vulom_recv.vhd

index 7d6f7f2e48e0aa01805dc36b6d7aa82b5d04552c..b9e37bbaed6651fe86dbca24b4249cdcef85e2e7 100644 (file)
@@ -91,11 +91,11 @@ end process;
   
 first_bits_slow <= first_bits_fast when rising_edge(CLK);
 
-trg_async     <= not MBS_IN or trg_async when first_bits_fast = '1' else '0';
-trg_sync      <= not reg_MBS_IN or trg_sync when rising_edge(CLK) and first_bits_slow ='1' else '0';
+trg_async     <= (not MBS_IN or trg_async) when first_bits_fast = '1' else '0';
+trg_sync      <= (not reg_MBS_IN or trg_sync) and first_bits_slow when rising_edge(CLK);
 
 TRG_ASYNC_OUT <= trg_async;
-TRG_SYNC_OUT  <= trg_sync;
+TRG_SYNC_OUT  <= trg_sync when rising_edge(CLK);
 
 PROC_FSM: process begin
   wait until rising_edge(CLK_200);
@@ -161,4 +161,7 @@ PROC_RDO : process begin
   end case;
 end process;
 
+STATUS_REG_OUT <= error_reg & '0' & std_logic_vector(to_unsigned(bitcnt,6)) & number_reg;
+
+
 end architecture;
\ No newline at end of file