summaryrefslogtreecommitdiff
path: root/nandgame/hack_alu.sv
diff options
context:
space:
mode:
authoruvok2026-01-16 18:22:10 +0100
committeruvok2026-01-16 18:22:36 +0100
commit47c26f27b8be4c6c22ed81f701f1b25072bb3341 (patch)
treeb4baf08315beb28bcb00c7075413e2462db185af /nandgame/hack_alu.sv
parentdd222c33ae00eb9312cb34610efd886dc565c159 (diff)
(System)Verilog: Be explicit about wire/logic
Diffstat (limited to 'nandgame/hack_alu.sv')
-rw-r--r--nandgame/hack_alu.sv16
1 files changed, 8 insertions, 8 deletions
diff --git a/nandgame/hack_alu.sv b/nandgame/hack_alu.sv
index 93d7476..94e30b9 100644
--- a/nandgame/hack_alu.sv
+++ b/nandgame/hack_alu.sv
@@ -10,24 +10,24 @@ module alu #(
parameter DATA_WIDTH = 16
) (
// "X" operand
- input [(DATA_WIDTH-1):0] X_in,
+ input wire [(DATA_WIDTH-1):0] X_in,
// "Y" operand
- input [(DATA_WIDTH-1):0] Y_in,
+ input wire [(DATA_WIDTH-1):0] Y_in,
// zero X
- input zx,
+ input wire zx,
// negate X
- input nx,
+ input wire nx,
// zero Y
- input zy,
+ input wire zy,
// negate Y
- input ny,
+ input wire ny,
// "u" flag. 1=add, 0=and
- input logic f_arith_nlogic_in,
+ input wire f_arith_nlogic_in,
// negate output
- input logic neg_out,
+ input wire neg_out,
// result of operation
output logic [(DATA_WIDTH-1):0] result_out,