-
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
55 changed files
with
1,474 additions
and
638 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
:maxdepth: 2 | ||
|
||
install | ||
tutorial | ||
overview/index | ||
reference/index | ||
auto_examples/index | ||
developer/index | ||
|
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,10 @@ | ||
.. _overview: | ||
|
||
Tutorial | ||
******** | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
tutorial | ||
start |
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,88 @@ | ||
Getting Started with SpyDrNet | ||
============================= | ||
|
||
SpyDrNet was originally built for EDF netlist, but has since been expanded to Verilog and EBLIF netlists. | ||
|
||
* Note | ||
This guide makes references to SpyDrNet TMR | ||
|
||
Parsing | ||
------- | ||
|
||
**Default parsing arguments** | ||
|
||
``parse(filename, architecture=None):`` | ||
|
||
filename | ||
|
||
- Name of the file that is being parsed | ||
|
||
architecture | ||
|
||
- Desired board architecture | ||
|
||
|
||
**General structure** | ||
|
||
``netlist = sdn.parse(filename, ...)`` | ||
|
||
**Basic structure for Verilog netlist** | ||
|
||
``netlist = sdn.parse("filename.v", architecture=XILINX_7SERIES)`` | ||
|
||
**Basic structure for EDF netlists** | ||
|
||
``netlist = sdn.parse("filename.edf")`` | ||
|
||
*edf usually only needs the filename and not the other arguments* | ||
|
||
Composing | ||
---------- | ||
|
||
**Default composing arguments** | ||
|
||
``compose(netlist, filename, voters=[], definition_list=[], write_blackbox=True, write_eblif_cname=True, defparam=False):`` | ||
|
||
netlist | ||
|
||
- Netlist that was parsed in / replicated / changed | ||
|
||
filename | ||
|
||
- Desired output name of netlist | ||
|
||
voters | ||
|
||
- List of voters that was created in script *this is only needed for verilog netlists* | ||
|
||
definition_list | ||
|
||
- List of definitions to write | ||
|
||
write_blackbox | ||
|
||
- Flag that skips writing black boxes/verilog primitives | ||
|
||
write_eblif_cname | ||
|
||
- Flag | ||
|
||
defparam | ||
|
||
- Flag that composes parameters in *defparam* statements instead of using #() | ||
|
||
|
||
**General structure** | ||
|
||
``netlist.compose(filename, ...)`` | ||
|
||
**Basic structure for Verilog netlist** | ||
|
||
``netlist.compose("filename_tmr.v", voters, reinsert_space=True)`` | ||
|
||
**Basic structure for EDF netlists** | ||
|
||
``netlist.compose("filename_tmr.edf")`` | ||
|
||
*edf usually only needs the filename and not the other arguments* | ||
|
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,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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
.. _sec:examples: | ||
|
||
.. _sphx_glr_auto_examples: | ||
|
||
Examples | ||
======== | ||
|
||
|
Oops, something went wrong.