mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-06 19:21:23 +00:00
Merge 4276756f32
into 262b00d5e5
This commit is contained in:
commit
cd496db937
7 changed files with 81 additions and 36 deletions
7
tests/verilog/constparser_f.ys
Normal file
7
tests/verilog/constparser_f.ys
Normal file
|
@ -0,0 +1,7 @@
|
|||
logger -expect prefix-error "<<EOT:2: ERROR: Digit larger than 1 used in in base-2 constant." 1
|
||||
read_verilog <<EOT
|
||||
module test (y);
|
||||
output signed [2:0] y = 1'bf;
|
||||
endmodule
|
||||
EOT
|
||||
dump
|
3
tests/verilog/constparser_f_file.sv
Normal file
3
tests/verilog/constparser_f_file.sv
Normal file
|
@ -0,0 +1,3 @@
|
|||
module test (y);
|
||||
output signed [2:0] y = 1'bf;
|
||||
endmodule
|
2
tests/verilog/constparser_f_file.ys
Normal file
2
tests/verilog/constparser_f_file.ys
Normal file
|
@ -0,0 +1,2 @@
|
|||
logger -expect prefix-error "./constparser_f_file.sv:2: ERROR: Digit larger than 1 used in in base-2 constant." 1
|
||||
read_verilog -sv ./constparser_f_file.sv
|
6
tests/verilog/constparser_g.ys
Normal file
6
tests/verilog/constparser_g.ys
Normal file
|
@ -0,0 +1,6 @@
|
|||
logger -expect prefix-error "<<EOT:2: ERROR: syntax error, unexpected invalid token, expecting TOK_BASED_CONSTVAL" 1
|
||||
read_verilog <<EOT
|
||||
module test (y);
|
||||
output signed [2:0] y = 1'bg;
|
||||
endmodule
|
||||
EOT
|
Loading…
Add table
Add a link
Reference in a new issue