??? 10/17/07 17:52 Read: times |
#145859 - re: what happens Responding to: ???'s previous message |
Jan Waclawek said:
... and what happens, if
case (in) 8'b00000000: out = 2'dx; 8'b00000001: out = 2'dx; 8'b00000010: out = 2'dx; 8'b00000011: out = 2'dx; [...] 8'b00110000: out = 2'dx; 8'b00110001: out = 2'b01; 8'b00110010: out = 2'dx; [...] 8'b10101011: out = 2'dx; 8'b10101100: out = 2'b10; 8'b10101101: out = 2'dx; [...] 8'b11110100: out = 2'dx; 8'b11110101: out = 2'b11; 8'b11110110: out = 2'dx; [...] 8'b11111110: out = 2'dx; 8'b11111111: out = 2'dx; endcase ? If you specify all 256 cases, then you don't get a latch. And if it was in a synchronous always block, then it doesn't matter, anyway. However: you NEVER want to assign unknown to a wire or reg in any code you intend to synthesize. -a |