N
nyffeler
Guest
Sorry this is a beginner question.
Is it true that in concatenation {a,b} a is lsb and b is msb,
but binay representation 2'bxx starts with msb?
At least I have the feeling that the following case is treated like this.
module gaga (clk, trigger, ready, error);
input clk, trigger,ready;
output error;
reg status;
always @(posedge clk)
begin
case ({trigger,ready})
2'b11: status=0; //ready = error false
2'b10: status=1; //not ready = error true
default: status = error
endcase
end
assign error = status;
endmodule
Is it true that in concatenation {a,b} a is lsb and b is msb,
but binay representation 2'bxx starts with msb?
At least I have the feeling that the following case is treated like this.
module gaga (clk, trigger, ready, error);
input clk, trigger,ready;
output error;
reg status;
always @(posedge clk)
begin
case ({trigger,ready})
2'b11: status=0; //ready = error false
2'b10: status=1; //not ready = error true
default: status = error
endcase
end
assign error = status;
endmodule