Add Callback to Restore Terminal in bdpi/uart_sim_device.c When Interrupted by $finish #12

Open
opened 2025-04-12 02:38:36 +00:00 by Yehowshua · 0 comments
Owner

When bluespec sim simulation starts, the terminal is configured to have like a TTY device by disabling terminal attributes such as echo. Calling $finish in Bluespec prematurely(sometimes useful when debugging) results in the terminal being left in a difficult to use state. To correct this, I need to investigate if I can register a callback that runs before bluespec sim process gets reaped.

When bluespec sim simulation starts, the terminal is configured to have like a TTY device by disabling terminal attributes such as echo. Calling `$finish` in Bluespec prematurely(sometimes useful when debugging) results in the terminal being left in a difficult to use state. To correct this, I need to investigate if I can register a callback that runs before bluespec sim process gets reaped.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: ReferenceProjects/riscv-bluespec-classic#12
No description provided.