I can’t get this line of code to work:
result <= (a * b)(31 downto 16);
the compiler (ghdl) suggests there’s a missing ‘;’ after the first ‘)’
a, b and result are unsigned 16 bit.
any suggestions?
Obviously I could do the multiplication first then slice on a new line (it’s happy with that), but even chatgpt thinks it should work as is.
I tried:
result <= (a * b)(31 downto 16);
I expected no errors.
I got an error: missing “;” at end of statement
New contributor
David Perry is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.