1
\$\begingroup\$

I want to assign multiple values to signals as shown in example below. Do I separate values there by ; or ,?

Example:

opcode : process (OP)
begin
 case OP is
 when CALL => AOp <= "000", -- am I separating right?
 ALS <= "0",
 OE <= "0",
 RE <= "0"; -- should the last one be a ;?
 ....

CALL is a constant

asked Dec 7, 2016 at 19:46
\$\endgroup\$
0

1 Answer 1

3
\$\begingroup\$

They should all be semicolons:

opcode : process (OP)
begin
 case state is
 when CALL => AOp <= "000";
 ALS <= "0";
 OE <= "0";
 RE <= "0";
 when ....

Each one is a complete assignment statement. Any number of statements can follow a when clause.

answered Dec 7, 2016 at 19:59
\$\endgroup\$
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.