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

Get an AttributeError when try to compute coverage from ACT #87

Open
Pagerd opened this issue Apr 19, 2024 · 0 comments
Open

Get an AttributeError when try to compute coverage from ACT #87

Pagerd opened this issue Apr 19, 2024 · 0 comments

Comments

@Pagerd
Copy link

Pagerd commented Apr 19, 2024

I followed steps from Quickstart. And I get a error when try to compute coverage from Architecture Test Suite

$ riscv_isac --verbose info coverage -d -t add-01.log --parser-name c_sail --decoder-name internaldecoder -o coverage.rpt --sig-label begin_signature end_signature --test-label rvtest_code_begin rvtest_code_end -e ref.elf -c dataset.cgf -c rvi.cgf -x 32 -l add
    INFO | ****** RISC-V ISA Coverage 0.18.1 *******
    INFO | Copyright (c) 2020, InCore Semiconductors Pvt. Ltd.
    INFO | All Rights Reserved.
    INFO | Start Test Label: rvtest_code_begin @ 0x800000f8
    INFO | End Test Label  : rvtest_code_end @ 0x8000329c
    INFO | Start Signature Label: begin_signature @ 0x80006110
    INFO | End Signature Label  : end_signature @ 0x80006a50
 WARNING | FLEN is set to 32. Commit values in the log will be terminated to 32 bits irrespective of their original size.
    INFO | Writing out updated cgf : /home/pager/Desktop/32work/riscof_work/rv32i_m/I/src/add-01.S/ref/ref.cgf
Traceback (most recent call last):
  File "/home/pager/.local/bin/riscv_isac", line 33, in <module>
    sys.exit(load_entry_point('riscv-isac', 'console_scripts', 'riscv_isac')())
  File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/home/pager/Desktop/riscv-isac/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/pager/Desktop/riscv-isac/riscv_isac/isac.py", line 40, in isac
    rpt = cov.compute(trace_file, test_name, cgf, parser_name, decoder_name, detailed, xlen, flen, test_addr, dump, cov_labels, sig_addr, window_size, no_count, procs)
  File "/home/pager/Desktop/riscv-isac/riscv_isac/coverage.py", line 1468, in compute
    dump_file.write(ruamel.yaml.round_trip_dump(rcgf, indent=5, block_seq_indent=3))
  File "/home/pager/.local/lib/python3.10/site-packages/ruamel/yaml/main.py", line 1284, in round_trip_dump
    error_deprecation('round_trip_dump', 'dump')
  File "/home/pager/.local/lib/python3.10/site-packages/ruamel/yaml/main.py", line 1039, in error_deprecation
    raise AttributeError(s, name=None)
AttributeError: 
"round_trip_dump()" has been removed, use

  yaml = YAML()
  yaml.dump(...)

instead of file "/home/pager/Desktop/riscv-isac/riscv_isac/coverage.py", line 1468

    dump_file.write(ruamel.yaml.round_trip_dump(rcgf, indent=5, block_seq_indent=3))

Im not sure which step goes wrong. ths samples cgfs from riscv-ctg

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

1 participant