Skip to content

0x00 and 0xFF give IndexOutOfBounds errors #20

Description

@bder

module 0x00(output out, input in1, in2, in3);
always@(in1, in2, in3)
begin
case({in1,in2,in3})
3'b000: out = 1'b0;
3'b001: out = 1'b0;
3'b010: out = 1'b0;
3'b011: out = 1'b0;
3'b100: out = 1'b0;
3'b101: out = 1'b0;
3'b110: out = 1'b0;
3'b111: out = 1'b0;
default: out = 1'b0;
endcase
end
endmodule

module 0xFF(output out, input in1, in2, in3);
always@(in1, in2, in3)
begin
case({in1,in2,in3})
3'b000: out = 1'b1;
3'b001: out = 1'b1;
3'b010: out = 1'b1;
3'b011: out = 1'b1;
3'b100: out = 1'b1;
3'b101: out = 1'b1;
3'b110: out = 1'b1;
3'b111: out = 1'b1;
default: out = 1'b0;
endcase
end
endmodule

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions