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

Debugging with Bluetcl - displaying values #727

Open
threonorm opened this issue Aug 7, 2024 · 0 comments
Open

Debugging with Bluetcl - displaying values #727

threonorm opened this issue Aug 7, 2024 · 0 comments

Comments

@threonorm
Copy link

threonorm commented Aug 7, 2024

Trying to experiment with the REPL provided by bluetcl, I wrote a small testbench module to experiment, and noticed that by default struct values are flattened to bitvectors in bluesim. My main question is: is it possible to print the structured value in the repl. Like ideally when one would do % eval sim get [sim lookup FOO] one would see the values not flattened as a bitvector but structured.

I tried using the package Types (after sourcing util/bluetcl-scripts/types.tcl, and then using Types::import_package) that looked potentially promising, but it does not seem to be intended to do that.

Side-note: I noticed that the pkgIndex.tcl seemed missing for types.tcl (I wanted to use auto-source), but when I try to build it I get another error:

% pkg_mkIndex -verbose [pwd] types.tcl
warning: error while sourcing types.tcl: unknown namespace in import pattern "::utils::*"
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