Forum Discussion
Altera_Forum
Honored Contributor
8 years agoI have a few simplistic code confusions
First question: Say we have: a : STD_LOGIC_VECTOR(0 TO 4); b : STD_LOGIC_VECTOR(2 TO 6); b <= "10100"; a <= b; How do the bits get assigned to "a" here? Does it go like this:...
Altera_Forum
Honored Contributor
8 years ago1. Correct. The position always matches based assigning 'left <= 'left and so on.
2. Yes, this is a logic construct. But be aware the synthesis tool will do logic reduction to remove unnecessary logic and may merge cells if they have the same function, etc. So any diagrams may not be identical to your code, but should be functionally identical.