3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-20 04:43:40 +00:00

Merge pull request #1754 from boqwxp/precise_locations

Set AST node source location in more parser rules.
This commit is contained in:
Miodrag Milanović 2020-03-14 11:18:39 +02:00 committed by GitHub
commit faf4ee69de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 61 additions and 2 deletions

8
tests/various/src.ys Normal file
View file

@ -0,0 +1,8 @@
logger -expect warning "wire '\\o' is assigned in a block at <<EOT:2.11-2.17" 1
logger -expect warning "wire '\\p' is assigned in a block at <<EOT:3.11-3.16" 1
read_verilog <<EOT
module top(input i, output o, p);
always @* o <= i;
always @* p = i;
endmodule
EOT