Commit 0ae4c117 authored by Ille, Ondrej, Ing.'s avatar Ille, Ondrej, Ing.

Bug-fix of improper function call.

parent b34dde4a
...@@ -1126,7 +1126,7 @@ begin ...@@ -1126,7 +1126,7 @@ begin
if (drv_set_rx_ctr = '1') then if (drv_set_rx_ctr = '1') then
rx_counter <= drv_set_ctr_val; rx_counter <= drv_set_ctr_val;
elsif (rec_valid = '1') then elsif (rec_valid = '1') then
rx_counter <= std_logic_vector(unsigned( rx_counter <= std_logic_vector(to_unsigned(
to_integer(unsigned(rx_counter)) + 1, to_integer(unsigned(rx_counter)) + 1,
rx_counter'length)); rx_counter'length));
...@@ -1135,7 +1135,7 @@ begin ...@@ -1135,7 +1135,7 @@ begin
if (drv_set_tx_ctr = '1') then if (drv_set_tx_ctr = '1') then
tx_counter <= drv_set_ctr_val; tx_counter <= drv_set_ctr_val;
elsif (tran_valid = '1') then elsif (tran_valid = '1') then
tx_counter <= std_logic_vector(unsigned( tx_counter <= std_logic_vector(to_unsigned(
to_integer(unsigned(tx_counter)) + 1, to_integer(unsigned(tx_counter)) + 1,
tx_counter'length)); tx_counter'length));
end if; end if;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment