]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
apply patches bei Thomas Geßler - syntax fixes
authorJan Michel <j.michel@gsi.de>
Fri, 30 Aug 2019 12:28:12 +0000 (14:28 +0200)
committerJan Michel <j.michel@gsi.de>
Fri, 30 Aug 2019 12:28:32 +0000 (14:28 +0200)
trb_net16_hub_streaming_port_sctrl_cts.vhd
trb_net_std.vhd

index c56259ff758610941696a3c00f9597cdfc282b6e..eb1a97050b3d1d33e8a25c52bbe3a9efc56aa44e 100644 (file)
@@ -375,8 +375,14 @@ signal info_registers          : std_logic_vector_array_32(0 to 4);
 signal info_rx : CTRLBUS_RX;
 signal info_tx : CTRLBUS_TX;
 
+signal info_tx_ack_or_info_tx_rack : std_logic;
+signal info_tx_ack_or_info_tx_wack : std_logic;
+
 begin
 
+info_tx_ack_or_info_tx_rack <= info_tx.ack or info_tx.rack;
+info_tx_ack_or_info_tx_wack <= info_tx.ack or info_tx.wack;
+
 ---------------------------------------------------------------------
 -- Reset
 ---------------------------------------------------------------------
@@ -1120,14 +1126,14 @@ COMMON_STAT_REGS <= common_stat;
       BUS_DATA_IN(223 downto 192)=> stat_buffer_i,
       BUS_DATAREADY_IN(0)        => REGIO_DATAREADY_IN,
       BUS_DATAREADY_IN(1)        => dbuf_dataready,
-      BUS_DATAREADY_IN(2)        => info_tx.ack or info_tx.rack,--tbuf_dataready,
+      BUS_DATAREADY_IN(2)        => info_tx_ack_or_info_tx_rack,--tbuf_dataready,
       BUS_DATAREADY_IN(3)        => last_read_enable(3),
       BUS_DATAREADY_IN(4)        => last_read_enable(4),
       BUS_DATAREADY_IN(5)        => last_read_enable(5),
       BUS_DATAREADY_IN(6)        => stat_buffer_ready,
       BUS_WRITE_ACK_IN(0)        => REGIO_WRITE_ACK_IN,
       BUS_WRITE_ACK_IN(1)        => '0',
-      BUS_WRITE_ACK_IN(2)        => info_tx.ack or info_tx.wack,--'0',
+      BUS_WRITE_ACK_IN(2)        => info_tx_ack_or_info_tx_wack,--'0',
       BUS_WRITE_ACK_IN(3)        => '0',
       BUS_WRITE_ACK_IN(4)        => '0',
       BUS_WRITE_ACK_IN(5)        => '0',
index e896faf412d73a9ff1ffd448d05db3f1660d0089..3b1466f23641a2e9fe1f8e30330b3a9e14499392 100644 (file)
@@ -283,9 +283,6 @@ package trb_net_std is
   function is_time_reached  (timer : integer; time : integer; period : integer)
     return std_logic;
 
-  function MAX(x : integer; y : integer)
-    return integer;
-
   function Log2( input:integer ) return integer;
   function count_ones( input:std_logic_vector ) return integer;
   function minimum (LEFT, RIGHT: INTEGER) return INTEGER;
@@ -385,16 +382,6 @@ package body trb_net_std is
       if i = 1 then  return '1'; else return '0'; end if;
     end is_time_reached;
 
-  function MAX(x : integer; y : integer)
-    return integer is
-    begin
-      if x > y then
-        return x;
-      else
-        return y;
-      end if;
-    end MAX;
-
 
   function Log2( input:integer ) return integer is
     variable temp,log:integer;