yosys4gal/compiler
2024-05-06 02:19:05 -05:00
..
src fix 16v8 regression with tristate/registered 2024-05-05 17:30:11 -05:00
testcases partially working 2024-05-04 15:06:28 -05:00
tests added rust tool 2024-04-28 22:44:18 -05:00
.gitignore added rust tool 2024-04-28 22:44:18 -05:00
Cargo.lock use patched galette, make comb olmc case work 2024-05-04 17:45:38 -05:00
Cargo.toml use patched galette, make comb olmc case work 2024-05-04 17:45:38 -05:00
README.md Create compiler README.md 2024-05-06 02:19:05 -05:00

ver2gal: Yosys Netlist-to-JEDEC compiler

This program converts a Yosys JSON netlist that has been techmapped with the GAL techlib to a JEDEC fuse file to be flashed to hardware.

Build and Install

You'll need a relatively recent version of Rust and cargo, the package manager. If the version included in your distribution is too old, install rustup to install a recent stable release.

Build with cargo build. This will produce a ver2gal binary in target/debug. The program can be installed globally with cargo install --path ..

Usage

The primary mode is the synth subcommand:

Usage: ver2gal synth [OPTIONS] <NETLIST> <CONSTRAINTS>

Arguments:
  <NETLIST>
  <CONSTRAINTS>

Options:
      --chip <CHIP>  [default: gal16v8] [possible values: gal16v8, gal22v10]
  -h, --help         Print help

When provided a netlist JSON file and a PCF constraints file it will produce a .jed fuse file called output.jed.

Important Note: This program should be run in the same directory as the shrink_sop.tcl script, as it will automatically call the script if a SOP needs to be split. This should only be necessary in the gal22v10 mode.