Shift right arithmetic implemented into ALU
This commit is contained in:
@@ -45,7 +45,17 @@ module ALU(
|
||||
.A(operand0),
|
||||
.B(result_G));
|
||||
// H (0111) - Shift Right Arithmetic
|
||||
|
||||
shift_right_arithmetic sra(
|
||||
.A(operand0),
|
||||
.B(result_H));
|
||||
// I (1000)
|
||||
// J (1001)
|
||||
// K (1010)
|
||||
// L (1011)
|
||||
// M (1100)
|
||||
// N (1101)
|
||||
// O (1110)
|
||||
// P (1111)
|
||||
|
||||
// MUX chooses which result to show based on the ALU's opcode
|
||||
mux_16_1 mux0(
|
||||
|
||||
Reference in New Issue
Block a user