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

Add reset concepts #92

Open
snowleopard opened this issue Sep 13, 2017 · 0 comments
Open

Add reset concepts #92

snowleopard opened this issue Sep 13, 2017 · 0 comments

Comments

@snowleopard
Copy link
Member

There is a subtle difference between initialise and reset concepts:

  • initialise indicates the initial state of the circuit.
  • reset is used to specify which gates should be equipped with the reset pin that forces gates to the appropriate initial state during the circuit start-up (usually, by connecting them to the rst and nrst wires). This is particularly important for gates with internal memory (e.g. C-elements).

@danilovesky knows much more than I about this, as he implemented a special Reset plugin in Workcraft.

An example:

circuit a b c = cElement a b c <> inputs [a, b] <> outputs [c]
    <> initialise0 [a, c] <> initialise1 [b] -- note that a = 0 and b = 1 do not force c = 0!
    <> reset [c] -- therefore we must reset the C-element at start-up to the desired output value
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