Skip to content
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

concat filename and line number with colon for better redirection #27

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

leibnewton
Copy link
Contributor

Thanks for adopting previous pull request.

I noticed that the filename is also added to the message. And I come up with this further improvement. So that we can make redirection to source code line by "Cmd+Click" on editors such as VSCode.

The following is the sample output:

INFO: Start testsuite << FFD Testsuite >> (@ 0) (ffd_testbench.sv:53)

INFO: Starting << Test 0: Check reset is applied >> (@ 0) (ffd_testbench.sv:74)
I will test if Q output is 0 after reset (@ 100000) (ffd_testbench.sv:76)
SUCCESS: Test 0 pass (@ 110000) (ffd_testbench.sv:81)

INFO: Starting << Test 1: Drive the FFD >> (@ 110000) (ffd_testbench.sv:83)
I will test if Q output is 1 after D assertion (@ 210000) (ffd_testbench.sv:85)
SUCCESS: Test 1 pass (@ 236000) (ffd_testbench.sv:94)

INFO: Stop testsuite 'FFD Testsuite' (@ 236000) (ffd_testbench.sv:96)
  - Warning number:  0
  - Critical number: 0
  - Error number:    0
  - STATUS: 2/2 test(s) passed

ffd_testbench.sv:118: $finish called at 236000 (1ps)
SVUT (@ 22:47:49) Stop ffd_testbench.sv

SVUT (@ 22:47:49) Elapsed time: 0:00:00.087769

@dpretet dpretet merged commit 0496633 into dpretet:master Jun 27, 2024
4 checks passed
@dpretet
Copy link
Owner

dpretet commented Jun 27, 2024

Good to me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants