Tests: Remove unneeded AUTOARGS. No test change.

This commit is contained in:
Wilson Snyder 2025-09-13 09:28:43 -04:00
parent 62d403c060
commit 907047d823
549 changed files with 567 additions and 568 deletions

View File

@ -4,7 +4,7 @@
// any use, without warranty, 2017 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
module t (/*AUTOARG*/);
module t;
logic [31:0] array_assign [3:0];

View File

@ -6,7 +6,7 @@
// bug1071
module t (/*AUTOARG*/);
module t;
reg [3:0] array_1 [2:0];
reg [3:0] array_2 [2:0];

View File

@ -5,7 +5,7 @@
// SPDX-License-Identifier: CC0-1.0
//bug991
module t (/*AUTOARG*/);
module t;
typedef struct {
logic [31:0] arr [3:0];

View File

@ -4,7 +4,7 @@
// any use, without warranty, 2020 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
module t (/*AUTOARG*/);
module t;
string test_string = "abcd";

View File

@ -22,7 +22,7 @@ class Cls;
endfunction
endclass
module t (/*AUTOARG*/);
module t;
Cls cls;
int array[10];

View File

@ -7,7 +7,7 @@
`define stop $stop
`define checkh(gotv,expv) do if ((gotv) !== (expv)) begin $write("%%Error: %s:%0d: got='h%x exp='h%x\n", `__FILE__,`__LINE__, (gotv), (expv)); $stop; end while(0);
module t (/*AUTOARG*/);
module t;
initial begin
int res[];

View File

@ -5,7 +5,7 @@
// SPDX-License-Identifier: CC0-1.0
//bug991
module t (/*AUTOARG*/);
module t;
logic [31:0] array_assign [3:0];
logic [31:0] array_other [3:0];

View File

@ -4,7 +4,7 @@
// without warranty, 2009 by Iztok Jeras.
// SPDX-License-Identifier: CC0-1.0
module t (/*AUTOARG*/);
module t;
logic [3:0] array_simp [1:0] [3:0]; // descending range array
wire [2:0] array_wire [1:0] = '{3'd1, 3'd2};

View File

@ -8,7 +8,7 @@
`define checkh(gotv,expv) do if ((gotv) !== (expv)) begin $write("%%Error: %s:%0d: got='h%x exp='h%x\n", `__FILE__,`__LINE__, (gotv), (expv)); `stop; end while(0);
`define checks(gotv,expv) do if ((gotv) != (expv)) begin $write("%%Error: %s:%0d: got='%s' exp='%s'\n", `__FILE__,`__LINE__, (gotv), (expv)); `stop; end while(0);
module t (/*AUTOARG*/);
module t;
logic [3:0] foo [1:0];
logic [3:0] fooe [1:0];

View File

@ -4,7 +4,7 @@
// any use, without warranty, 2007 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
module t (/*AUTOARG*/);
module t;
localparam TEN = 10;
localparam string PCTPCT = "%%";

View File

@ -7,7 +7,7 @@
`define stop $stop
`define checkd(gotv,expv) do if ((gotv) !== (expv)) begin $write("%%Error: %s:%0d: got=%0d exp=%0d\n", `__FILE__,`__LINE__, (gotv), (expv)); `stop; end while(0);
module t(/*AUTOARG*/);
module t;
int a;
int b;

View File

@ -9,7 +9,7 @@
`define checkp(gotv,expv_s) do begin string gotv_s; gotv_s = $sformatf("%p", gotv); if ((gotv_s) != (expv_s)) begin $write("%%Error: %s:%0d: got='%s' exp='%s'\n", `__FILE__,`__LINE__, (gotv_s), (expv_s)); `stop; end end while(0);
module t (/*AUTOARG*/);
module t;
typedef struct { int x, y; } point;
function automatic int vec_len_squared(point p);

View File

@ -4,7 +4,7 @@
// any use, without warranty, 2019 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
module t (/*AUTOARG*/);
module t;
initial begin
string a [string];

View File

@ -7,7 +7,7 @@
`define stop $stop
`define checkh(gotv,expv) do if ((gotv) !== (expv)) begin $write("%%Error: %s:%0d: got='h%x exp='h%x\n", `__FILE__,`__LINE__, (gotv), (expv)); $stop; end while(0);
module t (/*AUTOARG*/);
module t;
initial begin
int res[];

View File

@ -6,7 +6,7 @@
// any use, without warranty, 2024 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
module t (/*AUTOARG*/);
module t;
initial begin
int dict[string] = '{1, 2};

View File

@ -50,7 +50,7 @@ class Wrapper#(type VAL_T=int);
VAL_T value;
endclass
module t (/*AUTOARG*/);
module t;
typedef WBase wrap_map_t[string];
typedef WBase wrap_queue_t[$];

View File

@ -11,7 +11,7 @@ class Cls;
integer imemberb;
endclass : Cls
module t (/*AUTOARG*/);
module t;
initial begin
string a [*];

View File

@ -7,7 +7,7 @@
`define stop $stop
`define checkh(gotv,expv) do if ((gotv) !== (expv)) begin $write("%%Error: %s:%0d: got='h%x exp='h%x\n", `__FILE__,`__LINE__, (gotv), (expv)); $stop; end while(0);
module t (/*AUTOARG*/);
module t;
initial begin
int res[];

View File

@ -8,7 +8,7 @@
`define checkh(gotv,expv) do if ((gotv) !== (expv)) begin $write("%%Error: %s:%0d: got='h%x exp='h%x\n", `__FILE__,`__LINE__, (gotv), (expv)); `stop; end while(0);
`define checkp(gotv,expv_s) do begin string gotv_s; gotv_s = $sformatf("%p", gotv); if ((gotv_s) != (expv_s)) begin $write("%%Error: %s:%0d: got='%s' exp='%s'\n", `__FILE__,`__LINE__, (gotv_s), (expv_s)); `stop; end end while(0);
module t (/*AUTOARG*/);
module t;
typedef struct { int x, y; } point;
function automatic int vec_len_squared(point p);

View File

@ -19,7 +19,7 @@ class Cls;
endfunction
endclass
module t(/*AUTOARG*/);
module t;
Cls c;

View File

@ -6,7 +6,7 @@
// without warranty, 2012 by Jeremy Bennett.
// SPDX-License-Identifier: CC0-1.0
module t (/*AUTOARG*/);
module t;
// Note that if we declare "wire [0:0] b", this works just fine.
wire a;

View File

@ -9,7 +9,7 @@
// without warranty, 2012 by Jie Xu.
// SPDX-License-Identifier: CC0-1.0
module t(/*AUTOARG*/);
module t;
typedef struct packed {
logic [1:0][15:0] channel;

View File

@ -8,7 +8,7 @@
`define checkb(gotv,expv) do if ((gotv) !== (expv)) begin $write("%%Error: %s:%0d: got='b%x exp='b%x\n", `__FILE__,`__LINE__, (gotv), (expv)); `stop; end while(0);
`define checkh(gotv,expv) do if ((gotv) !== (expv)) begin $write("%%Error: %s:%0d: got='h%x exp='h%x\n", `__FILE__,`__LINE__, (gotv), (expv)); `stop; end while(0);
module t (/*AUTOARG*/);
module t;
typedef struct packed {
logic [3:2] a;

View File

@ -12,7 +12,7 @@
`define stop $stop
`define checkh(gotv,expv) do if ((gotv) !== (expv)) begin $write("%%Error: %s:%0d: got='h%x exp='h%x\n", `__FILE__,`__LINE__, (gotv), (expv)); `stop; end while(0);
module t(/*AUTOARG*/);
module t;
typedef struct packed {
logic [15:0] channel;

View File

@ -6,7 +6,7 @@
// without warranty, 2012 by Jeremy Bennett.
// SPDX-License-Identifier: CC0-1.0
module t (/*AUTOARG*/);
module t;
// a and b are arrays of length 1.
wire a[0:0]; // Array of nets

View File

@ -4,7 +4,7 @@
// without warranty, 2025 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
module t (/*AUTOARG*/);
module t;
bit [99:0] wide = $c100("0");

View File

@ -4,7 +4,7 @@
// any use, without warranty, 2023 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
module t (/*AUTOARG*/);
module t;
enum logic [2:0] {
e0,

View File

@ -4,7 +4,7 @@
// any use, without warranty, 2005-2007 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
module t (/*AUTOARG*/);
module t;
parameter P = 32'b1000;

View File

@ -4,7 +4,7 @@
// any use, without warranty, 2005-2007 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
module t (/*AUTOARG*/);
module t;
reg [3:0] value;
reg [3:0] valuex;

View File

@ -13,7 +13,7 @@ typedef enum {
UVM_TLM_IGNORE_COMMAND
} uvm_tlm_command_e;
module t(/*AUTOARG*/);
module t;
initial begin
bit array[] = new [8];

View File

@ -41,7 +41,7 @@ typedef struct packed { int a; int b; } stpack_t;
typedef bit signed [7:0] simple_a_t;
typedef bit signed [7:0] simple_a1_t;
module t (/*AUTOARG*/);
module t;
real v_real; // IEEE 6.12.2 - by rounding
string v_string;

View File

@ -15,7 +15,7 @@ class BasedB extends Base;
endfunction
endclass
module t (/*AUTOARG*/);
module t;
int i;
int a;
int ao;

View File

@ -10,7 +10,7 @@ class Other;
endclass
enum { ZERO } e;
module t (/*AUTOARG*/);
module t;
int i;
int v;

View File

@ -11,7 +11,7 @@ endclass
class ExbaseB extends Base;
endclass
module t (/*AUTOARG*/);
module t;
int i;
Base b;

View File

@ -4,7 +4,7 @@
// any use, without warranty, 2020 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
module t (/*AUTOARG*/);
module t;
string q[$];
int aarray[string];

View File

@ -11,7 +11,7 @@ class Cls;
int imemberb;
endclass : Cls
module t (/*AUTOARG*/);
module t;
typedef Cls Cls2;
initial begin

View File

@ -8,7 +8,7 @@ package Pkg;
typedef enum { ENUMP_VAL = 33 } enump_t;
endpackage
module t (/*AUTOARG*/);
module t;
class Cls;
int imembera;
int imemberb;

View File

@ -15,7 +15,7 @@ endclass
typedef Cls2 cls2_t;
module t (/*AUTOARG*/);
module t;
Cls c;
Cls2 c2;
cls2_t ct2;

View File

@ -29,7 +29,7 @@ class ExtendExtendCls extends ExtendCls;
endfunction
endclass
module t (/*AUTOARG*/);
module t;
typedef ExtendCls ExtendCls_t;
initial begin

View File

@ -13,7 +13,7 @@ endclass
class ExtCls1;
endclass
module t (/*AUTOARG*/);
module t;
Cls1 c1;
Cls2 c2;
ExtCls1 ext_c1;

View File

@ -13,7 +13,7 @@ class Cls;
endfunction
endclass
module t (/*AUTOARG*/);
module t;
initial begin
Cls c;
end

View File

@ -27,7 +27,7 @@ module Modmixed;
int M;
endmodule
module t(/*AUTOARG*/);
module t;
// verilator no_inline_module
ModMixed modMixed();

View File

@ -18,7 +18,7 @@ class Cls #(type STORE_T=string);
endclass : Cls
endpackage : P
module t (/*AUTOARG*/);
module t;
P::Cls#(int) c;
initial begin
c = new;

View File

@ -9,7 +9,7 @@ class Cls;
function int inc_methoda; imembera += 1; return imembera; endfunction
endclass
module t (/*AUTOARG*/);
module t;
initial begin
Cls c1;
Cls c2;

View File

@ -11,7 +11,7 @@ class Cls;
bit x = 1;
endclass
module t (/*AUTOARG*/);
module t;
Cls obj1;
Cls obj2;

View File

@ -12,7 +12,7 @@ class Cls;
function int inc_methoda; imembera += 1; return imembera; endfunction
endclass
module t (/*AUTOARG*/);
module t;
initial begin
Cls c1;
Other co;

View File

@ -14,7 +14,7 @@ class Cls;
endfunction
endclass
module t (/*AUTOARG*/);
module t;
initial begin
int dict[Cls];
Cls c1 = new(1);

View File

@ -4,7 +4,7 @@
// any use, without warranty, 2020 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
module t (/*AUTOARG*/);
module t;
class Cls;
typedef enum {A = 10, B = 20, C = 30} en_t;

View File

@ -38,7 +38,7 @@ class uvm__registry #(type T=int) extends uvm_object_wrapper;
endfunction
endclass
module t (/*AUTOARG*/);
module t;
initial begin
Cls c;
c = new;

View File

@ -56,7 +56,7 @@ class Ext extends Base0;
function int get_io(); return innerover.innerover; endfunction
endclass
module t (/*AUTOARG*/);
module t;
initial begin
Ext c;
c = new;

View File

@ -61,7 +61,7 @@ class Ext extends Pkg::Base0;
function int get_io(); return innerover.innerover; endfunction
endclass
module t (/*AUTOARG*/);
module t;
initial begin
Ext c;
c = new;

View File

@ -4,7 +4,7 @@
// any use, without warranty, 2023 by Antmicro Ltd.
// SPDX-License-Identifier: CC0-1.0
module t (/*AUTOARG*/);
module t;
class bar #(type T) extends T;
endclass

View File

@ -13,5 +13,5 @@ endclass
class Cls extends Base1, Base2;
endclass
module t (/*AUTOARG*/);
module t;
endmodule

View File

@ -20,7 +20,7 @@ endpackage
class Cls12 extends Pkg::Icls1;
endclass
module t(/*AUTOARG*/);
module t;
Cls12 cp12;

View File

@ -15,7 +15,7 @@ class Cls1 extends Base1(default);
// Gets new(int def)
endclass
module t (/*AUTOARG*/);
module t;
initial begin
Cls1 c1;
Cls1 c5;

View File

@ -4,7 +4,7 @@
// any use, without warranty, 2023 by Antmicro Ltd.
// SPDX-License-Identifier: CC0-1.0
module t (/*AUTOARG*/);
module t;
class Bar #(type T=int) extends T;
endclass

View File

@ -18,5 +18,5 @@ endclass
class Cls2 extends Pkg::NotFound2; // BAD: not found
endclass
module t (/*AUTOARG*/);
module t;
endmodule

View File

@ -7,7 +7,7 @@
class Foo#(type T = logic) extends T;
endclass
module t (/*AUTOARG*/);
module t;
initial begin
$write("*-* All Finished *-*\n");
$finish;

View File

@ -8,6 +8,6 @@ class RecursiveExtCls extends RecursiveExtCls;
int i;
endclass
module t (/*AUTOARG*/);
module t;
RecursiveExtCls cls = new;
endmodule

View File

@ -68,7 +68,7 @@ class Cls extends Base;
endfunction
endclass
module t (/*AUTOARG*/);
module t;
initial begin
Cls c;
c = new;

View File

@ -28,7 +28,7 @@ class Cls extends Base;
endfunction
endclass
module t (/*AUTOARG*/);
module t;
initial begin
Cls c;
c = new;

View File

@ -80,7 +80,7 @@ task Cls::SubCls::ext_t_i(int in);
endtask
module t (/*AUTOARG*/);
module t;
initial begin
Cls c = new;
Cls::SubCls subc = new;

View File

@ -8,7 +8,7 @@ class Cls;
int queue;
endclass
module t (/*AUTOARG*/);
module t;
initial begin
Cls cls = new;

View File

@ -23,7 +23,7 @@ class Cls;
endtask
endclass
module t (/*AUTOARG*/);
module t;
initial begin
Cls c;
c = new;

View File

@ -16,7 +16,7 @@ class ClsB;
endclass
endpackage
module t (/*AUTOARG*/);
module t;
P::ClsA ca;
P::ClsB cb;
initial begin

View File

@ -16,7 +16,7 @@ endclass
endpackage
module t(/*AUTOARG*/);
module t;
initial begin
uvm_pkg::uvm_reg_field c = new;

View File

@ -18,7 +18,7 @@ function Cls_report_object get_report_object;
return c;
endfunction
module t (/*AUTOARG*/);
module t;
string s;

View File

@ -22,7 +22,7 @@ class Cls;
endtask
endclass
module t (/*AUTOARG*/);
module t;
function int mod_fi();
return 10;

View File

@ -23,7 +23,7 @@ class AnotherExtendCls extends Cls;
endfunction
endclass
module t (/*AUTOARG*/);
module t;
initial begin
Cls cls = new;
ExtendCls ext_cls = new;

View File

@ -4,7 +4,7 @@
// any use, without warranty, 2024 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
module t(/*AUTOARG*/);
module t;
interface class Courier;
pure virtual function void deliver();

View File

@ -86,7 +86,7 @@ class Ext extends Cls;
endclass
endclass
module t (/*AUTOARG*/);
module t;
const Cls mod_c = new;
const Cls::InnerCls imod_c = new;

View File

@ -61,7 +61,7 @@ class Ext extends Cls;
endtask
endclass
module t (/*AUTOARG*/);
module t;
initial begin
Cls c;
Ext e;

View File

@ -15,7 +15,7 @@ class NodeList;
endfunction
endclass
module t(/*AUTOARG*/);
module t;
initial begin
NodeList n = new;

View File

@ -12,7 +12,7 @@ class Cls2 extends Base1;
int memb2;
endclass
module t (/*AUTOARG*/);
module t;
initial begin
Cls2 c;
c.memb3 = 3; // Not found

View File

@ -19,5 +19,5 @@ class ClsDup;
endclass
module t (/*AUTOARG*/);
module t;
endmodule

View File

@ -13,7 +13,7 @@ class Cls;
function void setv_methoda(input int val); imembera = val; endfunction
endclass : Cls
module t (/*AUTOARG*/);
module t;
initial begin
int tmp_i;
Cls c;

View File

@ -12,7 +12,7 @@ class Cls2 extends Base1;
task meth2; endtask
endclass
module t (/*AUTOARG*/);
module t;
initial begin
Cls2 c;
c.meth3(); // Not found

View File

@ -20,7 +20,7 @@ class Cls;
endfunction
endclass : Cls
module t (/*AUTOARG*/);
module t;
initial begin
Cls c = new;
my_struct s = c.get_struct;

View File

@ -14,7 +14,7 @@ class Cls;
endclass
endmodule
module t (/*AUTOARG*/);
module t;
string s;
initial begin

View File

@ -4,7 +4,7 @@
// any use, without warranty, 2020 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
module t (/*AUTOARG*/);
module t;
class Cls;
class Inner;

View File

@ -76,7 +76,7 @@ endclass
endfunction
endmodule
module t (/*AUTOARG*/);
module t;
string s;
M m();

View File

@ -44,7 +44,7 @@ class Outer;
endclass
module t(/*AUTOARG*/);
module t;
initial begin
NodeList n = new;
NodeList::Node n1 = new;

View File

@ -57,7 +57,7 @@ class Cls2Arg;
endfunction
endclass
module t (/*AUTOARG*/);
module t;
initial begin
ClsNoArg c1;
ClsArg c2;

View File

@ -23,7 +23,7 @@ class ClsArg;
endfunction
endclass
module t (/*AUTOARG*/);
module t;
initial begin
ClsNoArg c1;
ClsNoNew c2;

View File

@ -20,7 +20,7 @@ endclass
function ClsDefFwd::new(default);
endfunction
module t (/*AUTOARG*/);
module t;
initial begin
// TODO real test
$stop;

View File

@ -24,7 +24,7 @@ function u_cache::new(string name="u_cache", u_cache::size_t max_size = 256);
this.m_max_size = max_size;
endfunction
module t(/*AUTOARG*/);
module t;
u_cache #(real, real) obj;

View File

@ -20,7 +20,7 @@ class Cls extends Base;
endclass
module t(/*AUTOARG*/);
module t;
initial begin
Base b = Cls::generate_txn();

View File

@ -32,7 +32,7 @@ class ClsParam #(int ADD = 100) extends Base;
endfunction
endclass
module t (/*AUTOARG*/);
module t;
initial begin
Base b;
ClsNoArg c1;

View File

@ -27,7 +27,7 @@ class Testcase implements ICls;
endfunction
endclass
module t(/*AUTOARG*/);
module t;
initial begin
Testcase test;

View File

@ -8,7 +8,7 @@ class Cls;
int imembera;
endclass : Cls
module t (/*AUTOARG*/);
module t;
Cls c;
initial begin
c = null; // Not really required as null is default

View File

@ -12,7 +12,7 @@ typedef struct {
int number;
} str_t;
module t (/*AUTOARG*/);
module t;
function automatic str_t func_null();
return '{null, 42};
endfunction

View File

@ -98,7 +98,7 @@ endclass
class :final CClsF extends CBase;
endclass
module t (/*AUTOARG*/);
module t;
initial begin
Cls c;
CClsF cc;

View File

@ -101,7 +101,7 @@ endclass
class :final CClsBadExtendsFinal extends CClsF;
endclass
module t (/*AUTOARG*/);
module t;
initial begin
Cls c;
CClsF cc;

View File

@ -21,7 +21,7 @@ package pkgb;
endclass
endpackage
module t (/*AUTOARG*/);
module t;
initial begin
pkga::MyClass a;
pkgb::MyClass b;

View File

@ -134,7 +134,7 @@ endclass
typedef ClsParamString#("abcde") cls_param_string_def_t;
typedef ClsParamString#("xyz") cls_param_string_not_def_t;
module t (/*AUTOARG*/);
module t;
Cls c12;
Cls #(.PBASE(4)) c4;

View File

@ -7,7 +7,7 @@
class Cls #(parameter PARAMB = 12);
endclass
module t (/*AUTOARG*/);
module t;
Cls #(.PARAMBAD(1)) c; // Bad param name
Cls #(13, 1) cd; // Bad param number

View File

@ -7,7 +7,7 @@
class Cls #(type PARAMB);
endclass
module t (/*AUTOARG*/);
module t;
Cls c; // Missing type param

View File

@ -14,7 +14,7 @@ endclass
class OtherMaybe extends Cls; // Questionable but others do not warn
endclass
module t (/*AUTOARG*/);
module t;
typedef Cls#(2) Cls2_t; // Ok
typedef Cls ClsNone_t; // Ok

View File

@ -14,7 +14,7 @@ class ClsB #(parameter PARAM = 12);
ClsA #(PARAM+1) a;
endclass
module t (/*AUTOARG*/);
module t;
ClsA #(.PARAM(15)) c; // Bad param name

View File

@ -9,7 +9,7 @@ endclass
class Cls2 #(parameter PARAMB = 13, parameter PARAMC = 14);
endclass
module t (/*AUTOARG*/);
module t;
Cls #(.PARAMBAD(1)) c; // Bad param name
Cls #(13, 1) cd; // Bad param number

Some files were not shown because too many files have changed in this diff Show More