From 47c26f27b8be4c6c22ed81f701f1b25072bb3341 Mon Sep 17 00:00:00 2001 From: uvok Date: Fri, 16 Jan 2026 18:22:10 +0100 Subject: (System)Verilog: Be explicit about wire/logic --- nandgame/instruction_decode.sv | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'nandgame/instruction_decode.sv') diff --git a/nandgame/instruction_decode.sv b/nandgame/instruction_decode.sv index b78bee8..4cd7e97 100644 --- a/nandgame/instruction_decode.sv +++ b/nandgame/instruction_decode.sv @@ -15,28 +15,28 @@ module instruction_decode #( parameter DATA_WIDTH = 16 ) ( // instruction to decode - input [15:0] instruction_in, + input wire [15:0] instruction_in, // value of A register - input [(DATA_WIDTH-1):0] A_in, + input wire [(DATA_WIDTH-1):0] A_in, // value of D register - input [(DATA_WIDTH-1):0] D_in, + input wire [(DATA_WIDTH-1):0] D_in, // content of memory at address in A register - input [(DATA_WIDTH-1):0] pA_in, + input wire [(DATA_WIDTH-1):0] pA_in, // result of operation - output [(DATA_WIDTH-1):0] result_out, + output wire [(DATA_WIDTH-1):0] result_out, // whether a jump should occur - output do_jump_out, + output wire do_jump_out, // whether result should be stored to A - output dst_A_out, + output wire dst_A_out, // whether result should be stored to D - output dst_D_out, + output wire dst_D_out, // whether result should be stored in memory at address in A register - output dst_pA_out, + output wire dst_pA_out, // Invalid instruction - output invalid_ins + output wire invalid_ins ); wire is_immediate_int; -- cgit v1.2.3