]> jspc29.x-matter.uni-frankfurt.de Git - dirich.git/commitdiff
different way of calculation for ram addressing due to modelsim issue
authorAdrian Weber <adrian.a.weber@exp2.physik.uni-giessen.de>
Wed, 23 Sep 2020 15:16:44 +0000 (17:16 +0200)
committerAdrian Weber <adrian.a.weber@exp2.physik.uni-giessen.de>
Wed, 23 Sep 2020 15:16:44 +0000 (17:16 +0200)
combiner_cts/code_EBR/Calibration.vhd

index 923ff8314c79e8dc29ecc7ad64ed47eb65a73a74..012a4db407a27bf99489b1d9b2084e95c1c2c22e 100644 (file)
@@ -189,6 +189,7 @@ begin
 
 --BUS Handler
   proc_reg : process 
+    variable tmp_chnl_addr : std_logic_vector(6 downto 0);
   begin
   wait until rising_edge(CLK);
   BUS_TX.ack     <= '0';
@@ -278,7 +279,8 @@ begin
       Monitor_RAM_RE <= '1';
     elsif (BUS_RX.addr(11 downto 4) > x"03") and (BUS_RX.addr(11 downto 4) < x"20")  then
       BUS_TX.ack <= '0';
-      Monitor_RAM_AddChnl <= std_logic_vector(unsigned("00" & BUS_RX.addr(4 downto 0))+1);
+      tmp_chnl_addr := "00" & BUS_RX.addr(4 downto 0);
+      Monitor_RAM_AddChnl <= std_logic_vector(unsigned(tmp_chnl_addr)+1);
       Monitor_RAM_AddFPGA <= std_logic_vector(unsigned(BUS_RX.addr(8 downto 5)) - 2);
       Monitor_RAM_RE <= '1'; 
     else