??? 10/11/07 22:45 Read: times |
#145677 - re: drip Responding to: ???'s previous message |
Russ Cooper said:
module test ( input wire [7:0] in, output reg [1:0] out ); always @(in) begin case (in) 8'b00110001: out = 1; 8'b10101100: out = 2; 8'b11110101: out = 3; default: out = 2'dx; endcase end endmoduleYou can see by inspection that this requires no logic at all to implement. Just connect out[0] to in[0] and out[1] to in[7] and you're done. Yet the synthesizer spits out a network of four LUTs for this example! Actually, I don't see ... -a |