You're also missing the "when others" case.
You dont actually need when others, but without it you will create a latch.
The with-select construct must cover all combinations, so it is not possible to get a latch by skipping one or more cases.
I've NEVER used 'with-select' . I use 'case/when' (inside a process). I generally put EVERYTHING in a process. Maybe that's just style, but I don't like to have stuff just floating around free; seems like a good way to make a mistakes. (I also like to clock everything unless there's a good reason not to. At the very least, it will yield better performance.)I stand corrected. I just confirmed it in my VHDL reference (I dont use with select much).
Thank you all for your help. :smile: I've fixed my code. Added "select", "," and "when others" case and yet there's error. It says that "object with std_logic type cannot contain characters". So meaning I have to change the input and output type? or add library?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?