mirror of
https://github.com/annoyatron255/yosys4gal.git
synced 2024-12-22 10:42:24 +00:00
Add model README and fix typo
This commit is contained in:
parent
8c1fd24ad6
commit
a9ee01b54e
|
@ -22,7 +22,7 @@ first build the Rust compiler `ver2gal` (see the `compiler/` directory) and run:
|
|||
```
|
||||
Where `<CHIP>` is either `gal16v8` or `gal22v10`. The generate JEDEC file will
|
||||
be generated in the current directory as `output.jed`. Note this program _must_
|
||||
be run in the same directory as the `shrink_sop.tcl` script
|
||||
be run in the same directory as the `shrink_sop.tcl` script.
|
||||
|
||||
This JEDEC file can be optionally be verified programmatically using the
|
||||
scripts and Verilog models found the `models/` directory.
|
||||
|
|
25
models/README.md
Normal file
25
models/README.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
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 higher
|
||||
- `jedutil` from MAME utilities
|
||||
- `xxd` from Vim
|
Loading…
Reference in a new issue