forked from Github_Repos/cvw
zbc input select mux optimize
This commit is contained in:
parent
2bfbf051a5
commit
905373d53b
@ -43,16 +43,16 @@ module zbc #(parameter WIDTH=32) (
|
|||||||
|
|
||||||
//NOTE: Optimize this when doing decoder stuff.
|
//NOTE: Optimize this when doing decoder stuff.
|
||||||
always_comb begin
|
always_comb begin
|
||||||
casez (Funct3)
|
casez (Funct3[1:0])
|
||||||
3'b001: begin //clmul
|
2'b01: begin //clmul
|
||||||
x = A;
|
x = A;
|
||||||
y = B;
|
y = B;
|
||||||
end
|
end
|
||||||
3'b011: begin //clmulh
|
2'b11: begin //clmulh
|
||||||
x = {RevA[WIDTH-2:0], {1'b0}};
|
x = {RevA[WIDTH-2:0], {1'b0}};
|
||||||
y = {{1'b0}, RevB[WIDTH-2:0]};
|
y = {{1'b0}, RevB[WIDTH-2:0]};
|
||||||
end
|
end
|
||||||
3'b010: begin //clmulr
|
2'b10: begin //clmulr
|
||||||
x = RevA;
|
x = RevA;
|
||||||
y = RevB;
|
y = RevB;
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user