mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-06 17:44:09 +00:00
Add logic param and integer bad syntax tests
Signed-off-by: Kamil Rakoczy <krakoczy@antmicro.com>
This commit is contained in:
parent
7e83a51fc9
commit
b422f2e4d0
6
tests/various/integer_range_bad_syntax.ys
Normal file
6
tests/various/integer_range_bad_syntax.ys
Normal file
|
@ -0,0 +1,6 @@
|
|||
logger -expect error "syntax error, unexpected" 1
|
||||
read_verilog -sv <<EOT
|
||||
module test_integer_range();
|
||||
parameter integer [31:0] a = 0;
|
||||
endmodule
|
||||
EOT
|
6
tests/various/integer_real_bad_syntax.ys
Normal file
6
tests/various/integer_real_bad_syntax.ys
Normal file
|
@ -0,0 +1,6 @@
|
|||
logger -expect error "syntax error, unexpected TOK_REAL" 1
|
||||
read_verilog -sv <<EOT
|
||||
module test_integer_real();
|
||||
parameter integer real a = 0;
|
||||
endmodule
|
||||
EOT
|
9
tests/various/logic_param_simple.ys
Normal file
9
tests/various/logic_param_simple.ys
Normal file
|
@ -0,0 +1,9 @@
|
|||
read_verilog -sv <<EOT
|
||||
module test_logic_param();
|
||||
parameter logic a = 0;
|
||||
parameter logic [31:0] e = 0;
|
||||
parameter logic signed b = 0;
|
||||
parameter logic unsigned c = 0;
|
||||
parameter logic unsigned [31:0] d = 0;
|
||||
endmodule
|
||||
EOT
|
Loading…
Reference in a new issue