Altera_Forum
Honored Contributor
13 years agoCase don't care statement won't work
Hello, I am wondering why I am getting an error when using a don't care statement in a case. Here is a portion of the code:
when "1000--" =>
add_bus_out0 <= a_bus_in;
add_bus_out1 <= b_bus_in;
subtract_out <= instruction(1);
unsigned_add_out <= instruction(0);
when "100100" =>
and_bus_out0 <= a_bus_in;
and_bus_out1 <= b_bus_in;
when "1001-1" =>
or_bus_out0 <= a_bus_in;
or_bus_out1 <= b_bus_in;
negate_or_out <= instruction(1);
when "100110" =>
xor_bus_out0 <= a_bus_in;
xor_bus_out1 <= b_bus_in; This is the error message I get:
Warning (10325): VHDL Choice warning at testvhdl.vhd(294): ignored choice containing meta-value ""1000--""
Warning (10325): VHDL Choice warning at testvhdl.vhd(302): ignored choice containing meta-value ""1001-1""