-
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.
Merge pull request #193 from byuccl/next_release_v2
SpyDrNet 1.12.0
- Loading branch information
Showing
31 changed files
with
1,143 additions
and
512 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.. _archive: | ||
|
||
=========== | ||
Archive | ||
=========== | ||
|
||
The following is from older versions of the SpyDrNet documentation | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
introduction |
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,19 @@ | ||
.. _built_in_architecture: | ||
|
||
Built In FPGA Architectures | ||
---------------------------- | ||
|
||
SpyDrNet has built in libraries for the following primitive libraries: | ||
|
||
* Xilinx 7-Series | ||
* F4PGA Xilinx 7-Series | ||
* Lattice LIFCL | ||
|
||
An optional parameter can be parsed to parse() which will tell the parser to load in the specified primitive library during parsing. This allows primitive information to be known (particularly port directions) even if though it may not be defined in the netlist (as a cell define module or a blackbox). | ||
|
||
The supported types are found under **spydrnet.util.architecture** | ||
|
||
When a built in architecture parameter is passed, the parser uses the PrimitiveLibraryReader class to load in the primitive library and populate the netlist definitions with information. See below. | ||
|
||
.. currentmodule:: spydrnet.parsers.primitive_library_reader | ||
.. autoclass:: PrimitiveLibraryReader |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.. _functions: | ||
|
||
Functions (Additional Information) | ||
---------------------------------- | ||
|
||
Included are some SpyDrNet functions that are worth highlighting: | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
uniquify | ||
clone |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
""" | ||
===================================== | ||
Using Built-In Primitive Libraries | ||
===================================== | ||
A simple example to demonstrate using SpyDrNet's built in primitive libraries. | ||
The b13 example netlist is targeted towards the Xilinx 7 Series family. However, because the primitives are defined in the netlist, we must first compose it out to a new netlist that does not define the primitives. | ||
netlist_1 is parsed in without using the built in primitive library. The output shows that the port directions are undefined. | ||
netlist_2 is parsed in using the XILINX_7SERIES primitive library. The output shows that the port directions are defined. | ||
""" | ||
|
||
import spydrnet as sdn | ||
from spydrnet.util.netlist_type import VERILOG | ||
from spydrnet.util.architecture import XILINX_7SERIES | ||
|
||
|
||
netlist = sdn.load_example_netlist_by_name("b13", VERILOG) | ||
netlist.compose("b13.v", write_blackbox = False) | ||
|
||
print("Without using the primitive library:") | ||
netlist_1 = sdn.parse("b13.v") | ||
for definition in netlist_1.get_definitions(): | ||
if definition is not netlist_1.top_instance.reference: | ||
for port in definition.get_ports(): | ||
print(port.name + " " + str(port.direction)) | ||
|
||
print("\nUsing the primitive library:") | ||
netlist_2 = sdn.parse("b13.v", XILINX_7SERIES) | ||
for definition in netlist_2.get_definitions(): | ||
if definition is not netlist_2.top_instance.reference: | ||
for port in definition.get_ports(): | ||
print(port.name + " " + str(port.direction)) |
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
Oops, something went wrong.