-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Back annotations #438
Comments
I'm interesting in this feature. The consideration points of this feature:
The sourcemap of JavaScript seems to be useful as reference. https://sourcemaps.info/spec.html At the moment, I prefer "Single file" and "TOML format" with Base 64 VLQ encoded entries. |
I'm tring to add source map support at #741. For example, the following link is the result of |
This is fantastic |
I added a feature to remap
|
This is beautiful, and a fantastic example of why open source hardware
development tools have a place.
…On Fri, Jun 7, 2024, 5:25 AM Naoya Hatta ***@***.***> wrote:
I added a feature to remap path:line:col in verilator's log at veryl test.
Now we can see where is root cause in Veryl's code easily.
%Error: /home/hatta/work/repos/veryl/testcases/sv/48_test.sv:11: Verilog $stop
^ from: /home/hatta/work/repos/veryl/testcases/veryl/48_test.veryl:4:18
[ERROR] Failed test (test1)
[INFO ] Compiling test (test2)
%Error: /home/hatta/work/repos/veryl/testcases/sv/48_test.sv:23:1: syntax error, unexpected endmodule
^ from: /home/hatta/work/repos/veryl/testcases/veryl/48_test.veryl:18:18
23 | endmodule
| ^~~~~~~~~
%Error: Cannot continue
[ERROR] Failed compile (test2)
[INFO ] Compiling test (test3)
%Error-PROCASSWIRE: /home/hatta/work/repos/veryl/testcases/sv/48_test.sv:31:17: Procedural assignment to wire, perhaps intended var (IEEE 1800-2023 6.5): 'a'
^ from: /home/hatta/work/repos/veryl/testcases/veryl/48_test.veryl:26:18
: ... note: In instance 'test3'
31 | always_comb a = 1;
| ^
... For error description see https://verilator.org/warn/PROCASSWIRE?v=5.024 <https://urldefense.com/v3/__https://verilator.org/warn/PROCASSWIRE?v=5.024__;!!DZ3fjg!_5ngvDLI-2pfp31Rkd-RgbByQXrDmiOGFZoLI38IRB5L3JGt2zbt50EihRUg1lL2YzGap-Voqqtu1qthMbY3JaESjGpf$>
%Error: Exiting due to 1 error(s)
... See the manual at https://verilator.org/verilator_doc.html <https://urldefense.com/v3/__https://verilator.org/verilator_doc.html__;!!DZ3fjg!_5ngvDLI-2pfp31Rkd-RgbByQXrDmiOGFZoLI38IRB5L3JGt2zbt50EihRUg1lL2YzGap-Voqqtu1qthMbY3JfdBAk_Y$> for more assistance.
—
Reply to this email directly, view it on GitHub
<https://urldefense.com/v3/__https://github.com/veryl-lang/veryl/issues/438*issuecomment-2154550477__;Iw!!DZ3fjg!_5ngvDLI-2pfp31Rkd-RgbByQXrDmiOGFZoLI38IRB5L3JGt2zbt50EihRUg1lL2YzGap-Voqqtu1qthMbY3JZbFwYQe$>,
or unsubscribe
<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AFAMUBDFFHYO4GDI7PNKYTTZGGDC3AVCNFSM6AAAAABATMOSBKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJUGU2TANBXG4__;!!DZ3fjg!_5ngvDLI-2pfp31Rkd-RgbByQXrDmiOGFZoLI38IRB5L3JGt2zbt50EihRUg1lL2YzGap-Voqqtu1qthMbY3JeHR_VZa$>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Dalance,
Not sure if there's interest, but a nice feature may be emitting SystemVerilog with back annotations of some sort.
While this would help humans who are performing verification to identify links between emitted SV and Veryl, I think the bigger benefit here would be in enabling tools to automatically associate the emitted SV with the generating Veryl code. Consider, for example, a SV LSP which allows you to GOTO a veryl file, or a synthesis or APR script which can report timing/area/power/thermal violations at the Veryl level.
The text was updated successfully, but these errors were encountered: