mirror of
https://github.com/annoyatron255/yosys4gal.git
synced 2024-12-22 02:32:25 +00:00
.. | ||
.gitignore | ||
GAL16V8_reg.v | ||
GAL16V8_reg_tb.v | ||
GAL16V8_wrapper.v | ||
GAL22V10_reg.v | ||
GAL22V10_reg_tb.v | ||
GAL22V10_wrapper.v | ||
prove_equiv.tcl | ||
README.md |
Model-Based Verification Checking
To assist with verification checking, yosys4gal includes Verilog models of the supported GAL16V8 and GAL22V10 chips. These Verilog read in the tool-generated fuse map and the behavior should match that of the original Verilog. The provided script performs this check using yosys' SAT solver:
./prove_equiv.tcl -- <JEDEC FILE> <PCF CONSTRAINTS> <VERILOG FILES...>
Limitations
The models only support the functionality of the GAL chips which is supported in yosys4gal. I.e. the GAL16V8 model only supports registered mode and the GAL22V10 model doesn't support asynchronous set/reset. Also note that a failure to prove equivalence does not imply inequivalence. In particular, yosys can struggle to synthesize the GAL22V10 model correctly. The false positive rate, however, should be zero.
Dependencies
yosys
0.38 or higherjedutil
from MAME utilitiesxxd
from Vim