3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-22 21:05:30 +00:00
Commit graph

6 commits

Author SHA1 Message Date
Krystine Sherwin
c081a8a754
btor2aiger: Use asserts and assumes from .ywb file 2024-04-06 13:40:01 +13:00
Krystine Sherwin
b68f68d26b
btor2aiger: Install btor2aig_yw
Install alongside SBY.
Add env helper to python source.
Fix hardcoded path in `sby_core.py`.
2024-04-06 13:40:01 +13:00
Krystine Sherwin
143d03a66e
btor2aiger: Use ywa inits list
`btor2aiger` tool restarts latch indexing at 0 but aiw2yw expects index to be unique.  Offset latch input number by the total input count to fix this.
2024-04-06 13:40:01 +13:00
Krystine Sherwin
99e704e6cb
btor2aiger: Get assertions from .btor file
Assertions show up in the .btor file as 'bad' statements, assuming btor2aiger maintains the same order this should get us the list of assertions in the order they appear in the .aig file.
2024-04-06 13:40:01 +13:00
Krystine Sherwin
10332e8e74
btor2aiger: It kinda works?
- Add `btor2aig_yw.py` to wrap btor2aiger calls, splitting the symbol map into a
  `.aim` file and building (and approximation of) the `.ywa` file.
- Currently not tracking asserts/assumes in the `.ywa`, and yosys-witness isn't
  the biggest fan of the btor2aiger style of unitialised latches.  As such, the
  latches are declared but the `.yw` output doesn't do anything with them so
  it's incomplete.  But the vcd output seems fine (for `vcd_sim=on|off`).
- Add a try/except to catch property matching with an incomplete property list.
- Add `-x` flag to `write_btor` call since aiw2yw gets confused without them.
- Includes some TODO reminders for me to fix things, but as far as I can tell it
  is working.
2024-04-06 13:40:00 +13:00
Jannis Harder
040b8deef2 Add aigcxemin and cexenum.py tools 2023-11-16 13:46:25 +01:00