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

🔁 Handle the program execution #46

Merged
merged 14 commits into from
Feb 26, 2024
Merged

Conversation

Thomaltarix
Copy link
Collaborator

@Thomaltarix Thomaltarix commented Feb 24, 2024

The simulator is not able to run with a circuit file as parameter
The simulator is also able to read the standard input commands.
It display > at the start of each new line.

The handled commands are:

  • exit (and CTRL+D) -> closes the program with the status 0.
  • display -> prints the current tick and the value of all inputs and outputs the standard output, each sorted by name in ASCII order.
  • input=value -> changes the value of input. The possible values are 0, 1 and Undefined. This also apply to clocks.
  • loop -> Continuously runs the simulation (simulate, display, simulate, . . . ) without displaying a prompt, until SIGINT (CTRL+C) is received.

When printing a value, if it's Undefined, the program displays U.

Since the Output component is not implemented yet, the simulate function only increments the tick

@Thomaltarix Thomaltarix added enhancement New feature or request execution Changes on the execution process labels Feb 24, 2024
@Thomaltarix Thomaltarix self-assigned this Feb 24, 2024
@Thomaltarix Thomaltarix linked an issue Feb 24, 2024 that may be closed by this pull request
5 tasks
Copy link
Member

@RenardFute RenardFute left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good just remove the -g3 before merging please

Makefile Outdated Show resolved Hide resolved
@Thomaltarix Thomaltarix merged commit 718c95e into main Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request execution Changes on the execution process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🔁 Handle the program execution
2 participants