-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
216 changed files
with
250 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,7 +65,7 @@ write_blackbox | |
|
||
write_eblif_cname | ||
|
||
- Flag | ||
- Flag used for eblif (Yosys to F4PGA) | ||
|
||
defparam | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
.. _using_example_netlists: | ||
|
||
Using SpyDrNet Example Netlists | ||
---------------------------------- | ||
|
||
Many EDIF, Verilog, and EBLIF example netlists are found in the SpyDrNet repo under *example_netlists*. In versions of SpyDrNet previous to 1.13, the example netlists were included in the python package. From version 1.13 on, perform the steps below to access the example netlists using *sdn.load_example_netlist_by_name(<name>)*. | ||
|
||
Option 1 | ||
^^^^^^^^^ | ||
|
||
1. Download the `example netlists directory <https://github.com/byuccl/spydrnet/tree/move_tests_and_files/example_netlists>`_ from the `SpyDrNet repo <https://github.com/byuccl/spydrnet>`_, or just clone the repo. | ||
|
||
2. In the Linux terminal, run | ||
|
||
.. code-block:: | ||
export EXAMPLE_NETLISTS_PATH=<path to example netlists> | ||
where the <path to example netlists> is the path to the top level example netlists directory in the spydrnet repo. | ||
|
||
3. Use the *sdn.load_example_netlist_by_name(<name>)* to access the example netlist. For example: | ||
|
||
.. code-block:: | ||
import spydrnet as sdn | ||
netlist = sdn.load_example_netlist_by_name("b13") | ||
Option 2 | ||
^^^^^^^^^ | ||
|
||
Run the following code and type 'y' and then hit enter when asked whether or not to download the example netlists. | ||
|
||
.. code-block:: | ||
import spydrnet as sdn | ||
netlist = sdn.load_example_netlist_by_name(<name>) | ||
Additional Information | ||
^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
It is possible to see the names of the example netlists for each netlist format | ||
|
||
.. code-block:: | ||
print(sdn.example_netlist_names) # lists the names of the EDIF example netlists | ||
print(sdn.verilog_example_netlist_names) # lists the names of the Verilog example netlists | ||
print(sdn.eblif_example_netlist_names) # lists the names of the EBLIF example netlists | ||
By default, sdn.load_example_netlist_by_name() assumes the netlists is EDIF format. To load a Verilog or EBLIF example netlist, do the following: | ||
|
||
.. code-block:: | ||
import spydrnet as sdn | ||
from spydrnet.util.netlist_type import VERILOG, EBLIF | ||
verilog_example_netlist = sdn.load_example_netlist_by_name(name, VERILOG) | ||
eblif_example_netlist = sdn.load_example_netlist_by_name(name, EBLIF) | ||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import os | ||
from pathlib import Path | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
import os | ||
import spydrnet as sdn | ||
from pathlib import Path | ||
|
||
base_dir = os.path.dirname(os.path.abspath(sdn.__file__)) | ||
base_file_path = os.path.join(base_dir, 'support_files', 'architecture_libraries') | ||
base_file_path = Path(sdn.base_dir, 'support_files', 'architecture_libraries') | ||
|
||
XILINX_7SERIES = os.path.join(base_file_path, "xilinx_7series.v.zip") | ||
F4PGA_XILINX_7SERIES = os.path.join(base_file_path, "f4pga_xilinx_7series.v.zip") | ||
LATTICE_LIFCL = os.path.join(base_file_path, "lifcl.v.zip") | ||
YOSYS_CELLS = os.path.join(base_file_path, "yosys_internal_cells.v.zip") | ||
XILINX_7SERIES = Path(base_file_path).joinpath("xilinx_7series.v.zip") | ||
F4PGA_XILINX_7SERIES = Path(base_file_path).joinpath("f4pga_xilinx_7series.v.zip") | ||
LATTICE_LIFCL = Path(base_file_path).joinpath("lifcl.v.zip") | ||
YOSYS_CELLS = Path(base_file_path).joinpath("yosys_internal_cells.v.zip") |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.