Forum Discussion
Need help with this vhdl code
- 3 years ago
B is std_logic_vector (3 downto 0) while G is std_logic.
The or operator needs operands of the same type, i.e all operands are boolean, or all of type std_logic.
Try this:
Z1 <= VB when (B = "0000") or (G = '0') else VA;
Best Regards,
Richard Tan
p/s: If any answer from the community or Intel Support are helpful, please feel free to give best answer or rate 9/10 survey.
Thank you for acknowledge the solution provided.
I’m glad that your question has been addressed, I now transition this thread to community support. If you have a new question, Please login to ‘https://supporttickets.intel.com’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.
Thank you.
Best Regards,
Richard Tan
p/s: If any answer from the community or Intel Support are helpful, please feel free to give best answer or rate 9/10 survey.