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

Can anyone give an example containning related files to use this ? #75

Open
monk907 opened this issue Sep 8, 2023 · 2 comments
Open

Comments

@monk907
Copy link

monk907 commented Sep 8, 2023

Hello,
I am trying to use this software to extract coverage. But failed. Does anybody can upload an example to try.

@allenjbaum
Copy link
Collaborator

allenjbaum commented Sep 10, 2023 via email

@monk907
Copy link
Author

monk907 commented Sep 13, 2023

IT would be more than a little helpful if you listed the steps you took so someone can figure out what went wrong. That will also help us improve our docs if is a documentation failure.

On Thu, Sep 7, 2023 at 11:12 PM monk907 @.> wrote: Hello, I am trying to use this software to extract coverage. But failed. Does anybody can upload an example to try. — Reply to this email directly, view it on GitHub <#75>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHPXVJX3BCTNBKNOXVIEGPTXZKZNRANCNFSM6AAAAAA4P4LKKY . You are receiving this because you are subscribed to this thread.Message ID: @.>

Hi Allen,
Thanks for your reply. I followed steps from Quickstart. And I use below command:
riscv_isac coverage -t test.log --parser-name spike -o coverage.rpt -c rv32i.cgf
I don't add elf file here because the usage descriptions don't say it is required. The outputs of this command are as below:

INFO | ****** RISC-V ISA Coverage 0.18.0 *******
INFO | Copyright (c) 2020, InCore Semiconductors Pvt. Ltd.
INFO | All Rights Reserved.
Traceback (most recent call last):
File "/home/zenos/.local/bin/riscv_isac", line 8, in
sys.exit(cli())
File "/usr/lib/python3/dist-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/zenos/.local/lib/python3.8/site-packages/riscv_isac/main.py", line 136, in coverage
isac(output_file,elf,trace_file, window_size, expand_cgf(cgf_file,int(xlen),int(flen),log_redundant), parser_name, decoder_name, parser_path, decoder_path, detailed, test_label,
File "/home/zenos/.local/lib/python3.8/site-packages/riscv_isac/cgf_normalize.py", line 565, in expand_cgf
cgf = utils.load_cgf(cgf_files)
File "/home/zenos/.local/lib/python3.8/site-packages/riscv_isac/utils.py", line 163, in load_cgf
safe_yaml.dump(dict(safe_yaml.load(fp)),string_stream)
File "/home/zenos/.local/lib/python3.8/site-packages/ruamel/yaml/main.py", line 426, in load
return constructor.get_single_data()
File "/home/zenos/.local/lib/python3.8/site-packages/ruamel/yaml/constructor.py", line 111, in get_single_data
node = self.composer.get_single_node()
File "_ruamel_yaml.pyx", line 706, in _ruamel_yaml.CParser.get_single_node
File "_ruamel_yaml.pyx", line 724, in _ruamel_yaml.CParser._compose_document
File "_ruamel_yaml.pyx", line 775, in _ruamel_yaml.CParser._compose_node
File "_ruamel_yaml.pyx", line 889, in _ruamel_yaml.CParser._compose_mapping_node
File "_ruamel_yaml.pyx", line 775, in _ruamel_yaml.CParser._compose_node
File "_ruamel_yaml.pyx", line 889, in _ruamel_yaml.CParser._compose_mapping_node
File "_ruamel_yaml.pyx", line 775, in _ruamel_yaml.CParser._compose_node
File "_ruamel_yaml.pyx", line 889, in _ruamel_yaml.CParser._compose_mapping_node
File "_ruamel_yaml.pyx", line 743, in _ruamel_yaml.CParser._compose_node
ruamel.yaml.composer.ComposerError: found undefined alias
in "", line 15, column 11

I am not sure which step goes wrong. The sample cgf file comes from this website: https://github.com/riscv-software-src/riscv-ctg/blob/master/sample_cgfs/rv32i.cgf

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

No branches or pull requests

2 participants