Skip to content

Use dicts for clearer truth tables and test vectors#87

Draft
infinitymdm wants to merge 3 commits intostineje:mainfrom
infinitymdm:fix_statefunction_truthtables
Draft

Use dicts for clearer truth tables and test vectors#87
infinitymdm wants to merge 3 commits intostineje:mainfrom
infinitymdm:fix_statefunction_truthtables

Conversation

@infinitymdm
Copy link
Collaborator

The major change in this PR is to test vector & truth table generation. Previously these were given as lists of lists in the form

# OR Example
# A  B   Y
[[0, 0], 0]
[[0, 1], 1] 
...
[[1, 1], 1]

With this PR truth tables and test vectors are both given as dictionary objects instead, so that pin labels are explicit instead of implied by operand order.

The second change implemented here is related to sequential cell test vector generation. The previous test vector generation code would create "nonsense" states (discovery by @AndersonHsieh0330) where the internal state did not match the initial output state. This PR improves on that by filtering out those nonsense states. (Though I'm not 100% confident that this is correct yet, which is why this is currently a draft.)

Finally, This PR removes some long-unused code from Parser.py and makes minor fixes to debug SPICE output.

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

Successfully merging this pull request may close these issues.

1 participant