royalreddy
Newbie level 5
Code VHDL - [expand] 1 2 3 4 5 6 CASE bus_rd_byte_no_i(0) IS WHEN BR_1_BYTE => rx_rd_ptrs_nxt(0) <= rx_rd_ptrs(0)+1 WHEN rx_rd_ptrs(0)<95 ELSE 0; WHEN BR_2_BYTE => rx_rd_ptrs_nxt(0) <= rx_rd_ptrs(0)+2 WHEN rx_rd_ptrs(0)<94 ELSE 1; WHEN BR_3_BYTE => rx_rd_ptrs_nxt(0) <= rx_rd_ptrs(0)+3 WHEN rx_rd_ptrs(0)<93 ELSE 2; WHEN OTHERS => rx_rd_ptrs_nxt(0) <= rx_rd_ptrs(0)+4 WHEN rx_rd_ptrs(0)<92 ELSE 3; END CASE;
inthe above code I am getting errors......... SIGNAL rx_rd_ptrs : ptr_a_t;
SUBTYPE ptr_t IS unsigned(6 DOWNTO 0);
type ptr_a_t is array (pcm_channels_c-1 downto 0) of ptr_t;
I tried all combinations still geeting errors, can anyone help me.
I wanted rx_rd_ptrs_nxt should increment based on current value of rx_rd_ptrs
thanks
Last edited by a moderator: