0

I have the following piece of code which the Vivado simulator doesn't seem to support (results in ERROR: [XSIM 43-3209] - Unsupported Construct):

assign b = {<<{a}};

Wondering if I can just change this code to the following:

assign b = a<<1;

Could someone please confirm that the 2 lines above are identical? Note that both a and b are 8 bit wide. Thanks!

1 Answer 1

4

No they are not the same. {<<{a}} is a bit reversal. Assuming a was declared with the range [7:0], you would need to write

assign b = {a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7]};
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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.