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