mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-02 09:45:18 +00:00
b1e2a1e5a1
This reverts commit 5dd07c76bd
.
19 lines
348 B
Systemverilog
Executable File
19 lines
348 B
Systemverilog
Executable File
module shifter_right(input logic signed [63:0] a,
|
|
input logic [ 5:0] shamt,
|
|
output logic signed [63:0] y);
|
|
|
|
|
|
y = a >> shamt;
|
|
|
|
endmodule // shifter_right
|
|
|
|
module shifter_left(input logic signed [63:0] a,
|
|
input logic [ 5:0] shamt,
|
|
output logic signed [63:0] y);
|
|
|
|
|
|
y = a << shamt;
|
|
|
|
endmodule // shifter_right
|
|
|