Comments and slight renames
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
`timescale 1ns / 1ps
|
||||
|
||||
module ALU(
|
||||
input wire [2:0] opcode,
|
||||
input wire [2:0] opcode, // NOT the same as the instruction set opcode
|
||||
input wire [8:0] operand0,
|
||||
input wire [8:0] operand1,
|
||||
output wire [8:0] result
|
||||
@@ -25,8 +25,8 @@ module ALU(
|
||||
// H (111)
|
||||
|
||||
|
||||
// MUX chooses which result to show based on the OPCODE
|
||||
mux_8_1 mux_result(
|
||||
// MUX chooses which result to show based on the ALU's opcode
|
||||
mux_8_1 mux0(
|
||||
.switch(opcode),
|
||||
.A(result_A),
|
||||
.B(result_B),
|
||||
|
||||
Reference in New Issue
Block a user