Forum Discussion
Altera_Forum
Honored Contributor
13 years agovhdl don't care problem
Hello. I am making priority encoder in vhdl and I want to use process, case statement and don't care statement. This is my code and compile is done very well. but in model_sim, the output is alw...
Altera_Forum
Honored Contributor
13 years agoOk, you cannot use '-' in case statements with older versions of VHDL, but newer versions of Quartus do support the matching case statement from 2008 (ie. using dont cares).
If you have problems with this, you can always use the old fashioned method using the std_match function from the numeric_std library:
if std_match(input, "00000001") then
elsif std_match(input, "0000001-") then
elsif std_match(input, "000001--") then
--etc