Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

sytax error/error in sequential error

Status
Not open for further replies.

royalreddy

Newbie level 5
Joined
Apr 3, 2012
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,347

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:

like I said in the dublicate thread - a case statement is a bit of procedural code and has to go in a process.
"when" is not and cannot go inside a process.

so you cannot mix the two bits of code.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top