diff options
| author | uvok | 2026-01-16 18:22:10 +0100 |
|---|---|---|
| committer | uvok | 2026-01-16 18:22:36 +0100 |
| commit | 47c26f27b8be4c6c22ed81f701f1b25072bb3341 (patch) | |
| tree | b4baf08315beb28bcb00c7075413e2462db185af /nandgame/alu.sv | |
| parent | dd222c33ae00eb9312cb34610efd886dc565c159 (diff) | |
(System)Verilog: Be explicit about wire/logic
Diffstat (limited to 'nandgame/alu.sv')
| -rw-r--r-- | nandgame/alu.sv | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nandgame/alu.sv b/nandgame/alu.sv index 54297c9..5f82a64 100644 --- a/nandgame/alu.sv +++ b/nandgame/alu.sv @@ -13,17 +13,17 @@ 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, // "u" flag. 1=arithmetic, 0=logic operation - input logic u_arith_nlogic_in, + input wire u_arith_nlogic_in, // opcode, see ArithCode / LogicCode - input logic [1:0] opcode_in, + input wire [1:0] opcode_in, // zero the "X" operand - input logic zx_in, + input wire zx_in, // swap "X" and "Y" operands - input logic sw_in, + input wire sw_in, // result of operation output logic [(DATA_WIDTH-1):0] result_out |
