additional default_nettype test coverage

This commit is contained in:
Zachary Snow 2020-12-04 11:38:17 -07:00
parent 3ac1b4ea3c
commit bf6ba338df
4 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,22 @@
`resetall
`define TEST(t) \
`default_nettype t \
module test_``t; \
assign foo = 0; \
endmodule
module top;
assign foo = 0;
endmodule
`TEST(tri)
`TEST(triand)
`TEST(trior)
// `TEST(trireg)
`TEST(tri0)
`TEST(tri1)
// `TEST(uwire)
`TEST(wire)
`TEST(wand)
`TEST(wor)

View File

@ -0,0 +1,24 @@
`resetall
`define TEST(t) \
`default_nettype t \
module test_``t; \
t foo; \
assign foo = 0; \
endmodule
module top;
wire foo;
assign foo = 0;
endmodule
`TEST(tri)
`TEST(triand)
`TEST(trior)
// `TEST(trireg)
`TEST(tri0)
`TEST(tri1)
// `TEST(uwire)
`TEST(wire)
`TEST(wand)
`TEST(wor)

View File

@ -0,0 +1,4 @@
`default_nettype invalid
module top;
assign foo = 0;
endmodule

View File

@ -0,0 +1,4 @@
`default_nettype none
module top;
assign foo = 0;
endmodule