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

tt.shuttle.enabled shows incorrect project #19

Open
mattvenn opened this issue Nov 26, 2024 · 4 comments
Open

tt.shuttle.enabled shows incorrect project #19

mattvenn opened this issue Nov 26, 2024 · 4 comments

Comments

@mattvenn
Copy link
Contributor

after selecting a design (7 segment seconds verilog), the design starts working, but tt.shuttle.enable shows the factory test

image

image

@psychogenic
Copy link
Collaborator

psychogenic commented Nov 26, 2024

This issue needs to go in tt-commander-app. It is rebooting or otherwise getting a fresh and independent DemoBoard. In (a single) REPL:

>>> tt.shuttle.wokwi_2bit_alu_dice.enable()
ttboard.project_mux: Enable design wokwi_2bit_alu_dice
ttboard.demoboard: Resetting system clock to default 1.25e+08Hz
ttboard.demoboard: First time loading: Toggling project reset
ttboard.demoboard: Changing reset to output mode
>>> tt.shuttle.enabled
<Design 298: wokwi_2bit_alu_dice>
>>> 

@psychogenic
Copy link
Collaborator

@urish how and when is this REPL activated? It should happen in a way that doesn't reset, and expose the DemoBoard singleton object it gets from DemoBoard.get() to sync up with stuff that happens in the GUI.

@urish
Copy link
Member

urish commented Nov 27, 2024

It doesn't reset - all it does is sending Ctrl+B to exit the raw REPL mode:

https://github.com/TinyTapeout/tt-commander-app/blob/0a3cdd63bfacb2c8e961ed0f5097c34060c74c16/src/ttcontrol/TTBoardDevice.ts#L102

@psychogenic
Copy link
Collaborator

Hi,

It doesn't reset - all it does is sending Ctrl+B to exit the raw REPL mode:

Hm... ok. I used the REPL, this one time, and there was no tt object present, so I added a

tt = DemoBoard.get()

to ttcontrol.py. Maybe that was hasty and the source of the issue. Will play around with a local copy.

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

3 participants