Forum Discussion
Altera_Forum
Honored Contributor
16 years agoQuartus will pick up Dont cares, but probably just ignore them, the same way it ignores 'X' statements.
For simulation purposes, it can be useful to specifially produce 'X's, like this example:
if en = '1' then
q <= d;
elsif en = '0' then
null; --hold q
else --catch all for unitialised input enable
q <= 'X';
end if;
With this example, you can see that inputs are uninitialised just by looking at the output. When quartus gets hold of it it strips out the else case and just puts in a DFFE.