Renamed shifting for incoming shift_right_arithmetic
This commit is contained in:
@@ -36,12 +36,12 @@ module ALU(
|
|||||||
.A(operand0),
|
.A(operand0),
|
||||||
.B(operand1),
|
.B(operand1),
|
||||||
.C(result_E));
|
.C(result_E));
|
||||||
// F (101) - Shift Logical Left
|
// F (101) - Shift Left
|
||||||
shift_logical_left sll(
|
shift_left sl(
|
||||||
.A(operand0),
|
.A(operand0),
|
||||||
.B(result_F));
|
.B(result_F));
|
||||||
// G (110) - Shift Logical Right
|
// G (110) - Shift Logical Right
|
||||||
shift_logical_right slr(
|
shift_right_logical srl(
|
||||||
.A(operand0),
|
.A(operand0),
|
||||||
.B(result_G));
|
.B(result_G));
|
||||||
// H (111) //slt
|
// H (111) //slt
|
||||||
|
|||||||
@@ -665,7 +665,7 @@ module register_tb();
|
|||||||
end
|
end
|
||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
module shift_logical_left(
|
module shift_left(
|
||||||
input wire [8:0] A,
|
input wire [8:0] A,
|
||||||
output wire [8:0] B);
|
output wire [8:0] B);
|
||||||
|
|
||||||
@@ -674,11 +674,11 @@ module shift_logical_left(
|
|||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
//testbench
|
//testbench
|
||||||
module shift_logical_left_tb();
|
module shift_left_tb();
|
||||||
reg [8:0] a;
|
reg [8:0] a;
|
||||||
wire [8:0] b;
|
wire [8:0] b;
|
||||||
|
|
||||||
shift_logical_left tb0(
|
shift_left tb0(
|
||||||
.A(a),
|
.A(a),
|
||||||
.B(b));
|
.B(b));
|
||||||
|
|
||||||
@@ -702,7 +702,7 @@ module shift_logical_left_tb();
|
|||||||
end
|
end
|
||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
module shift_logical_right(
|
module shift_right_logical(
|
||||||
input wire [8:0] A,
|
input wire [8:0] A,
|
||||||
output wire [8:0] B);
|
output wire [8:0] B);
|
||||||
|
|
||||||
@@ -711,11 +711,11 @@ module shift_logical_right(
|
|||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
//testbench
|
//testbench
|
||||||
module shift_logical_right_tb();
|
module shift_right_logical_tb();
|
||||||
reg [8:0] a;
|
reg [8:0] a;
|
||||||
wire [8:0] b;
|
wire [8:0] b;
|
||||||
|
|
||||||
shift_logical_right tb0(
|
shift_right_logical tb0(
|
||||||
.A(a),
|
.A(a),
|
||||||
.B(b));
|
.B(b));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user