localparam after wire declaration
问题 For a very strange reason (scripts we use) I need to be able to declare a localparam AFTER I declare wires and regs in a module: module blah (clk, rst, in, out); input clk; input rst; input [2:0] in; output [3:0] out; wire res; localparam NUMBER=5; ... is this legal verilog code? I would also appreciate a link to the relevant seciton in the documentation. Thanks! 回答1: This is valid Verilog (2001). Verilog 2001 saw the introduction of localparam , for all versions it is still syntactically