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

Update Wiki on Usage #1

Open
sirinath opened this issue Jun 1, 2014 · 2 comments
Open

Update Wiki on Usage #1

sirinath opened this issue Jun 1, 2014 · 2 comments

Comments

@sirinath
Copy link

sirinath commented Jun 1, 2014

Hi,

Is it possible to update the Wiki on Usage?

Suminda

@ducky64
Copy link
Owner

ducky64 commented Jun 1, 2014

So this project is still very much a work-in-progress, which is why there isn't documentation yet. There will when there is a more official release, but the usage may change significantly by then. The user interface and experience is also quite rough around the edges.

That being said, if you're still interested in trying this out (and keep in mind that this project is still in alpha), the steps roughly are:

  • install dependencies: Python (2.7), PyCairo and wxPython.
  • compile the Chisel RTL to the software emulator with the debug API enabled (essentially, what Chisel's Tester does).
  • write a XML visualizer descriptor for the RTL (see the example XML files under chisualizer/tests).
  • run the visualizer (python main.py in chisualizer/src) passing in these arguments:
    • --emulator
    • --emulator_args
    • --emulator_reset <true | false - whether to assert a reset on the emulator during startup>
    • --visualizer_desc
    • --log_level <error | warning | info | debug>
    • --help should give a listing and description of arguments
  • once the program starts, it should be self-documenting (key commands are rendered on screen). Right-clicking elements should bring up a context menu with additional commands.

Some examples are in chisualizer/tests:

  • 'gcd' is for a Chisel implementation of GCD. This one probably can build on its own - go into tests/gcd and do 'make csrc' then 'make emulator'. Run chisualizer with the arguments: python main.py --emulator "../tests/gcd/emulator/emulator" --visualizer_desc "../tests/gcd/gcd.xml"

The next three projects require compiling the emulator binaries in their own repositories - you can try if you really know what you are doing. However, the XML files can still serve as examples of visualization descriptors:

If you do decide to try it out, feedback is definitely welcome! However, do note that I probably won't be able to work on this project until September.

@ducky64
Copy link
Owner

ducky64 commented Jun 1, 2014

I've uploaded two recent posters related to this project and the Chisel Debug API here:
https://github.com/ducky64/chisualizer/tree/__tmp_docs/temp_docs
Those should provide more information about both at a higher level.

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