??? 10/17/07 10:32 Read: times |
#145845 - A noob question Responding to: ???'s previous message |
case (in) 8'b00110001: out = 2'b01; 8'b10101100: out = 2'b10; 8'b11110101: out = 2'b11; default: out = 2'dx; endcaseSince apparently 2'dx here means unknown instead of don't care, what happens if you leave out the default case? Would that qualify as don't care about the output for unspecified inputs? The solution with casex and specifying which input bits are don't care places the burden on you to reduce the logic where I would expect the tool to do that for me. |