-
Notifications
You must be signed in to change notification settings - Fork 415
Support "include" feature for the Yosys frontend in run vtr flow scripts #2081
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
vaughnbetz
merged 6 commits into
verilog-to-routing:master
from
sdamghan:include_dir_scripts
Jul 14, 2022
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
450d441
[Infra]: change Yosys standalone synthesis script format to tcl
sdamghan dee3877
[Infra]: - handle "include" feature for Yosys in running VTR scripts
sdamghan aed1e6f
[Infra]: install Yosys in VTR_ROOT/Yosys, in addition to the
sdamghan 78bbbc0
[Doc]: fix a syntax bug in "include_dir" docs
sdamghan 147c474
[Infra]: copying the non-synthesizable include files to the temp dire…
sdamghan f7065ee
[Docs]: update the tasks/include_files documentation
sdamghan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
---|---|---|
|
@@ -100,6 +100,11 @@ ODIN_II/usefull_tools/**/track_completed | |
*.o | ||
*.a | ||
|
||
# | ||
#Yosys exec dir | ||
# | ||
Yosys | ||
|
||
# | ||
#Python | ||
# | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,18 +1,19 @@ | ||
################################################################# | ||
# Yosys synthesis script, including generic 'synth' commands, # | ||
# in addition to techmap asynchronous FFs and VTR hard blocks. # | ||
# Yosys synthesis script, including generic 'synth' commands, # | ||
# in addition to techmap asynchronous FFs and VTR hard blocks. # | ||
# Once the VTR flow runs with the Yosys front-end, Yosys # | ||
# synthesizes the input design using the following commands. # | ||
# # | ||
# NOTE: the script is adapted from the one Eddie Hung proposed # | ||
# for VTR-to-Bitstream[1]. However, a few minor changes to make # | ||
# it adaptable with the current VTR flow have been made. # | ||
# # | ||
# [1] http://eddiehung.github.io/vtb.html # | ||
# # | ||
# Author: Eddie Hung # | ||
# Co-author: Seyed Alireza Damghani ([email protected]) # | ||
# synthesizes the input design using the following commands. # | ||
# # | ||
# NOTE: the script is adapted from the one Eddie Hung proposed # | ||
# for VTR-to-Bitstream[1]. However, a few minor changes to make # | ||
# it adaptable with the current VTR flow have been made. # | ||
# # | ||
# [1] http://eddiehung.github.io/vtb.html # | ||
# # | ||
# Author: Eddie Hung # | ||
# Co-author: Seyed Alireza Damghani ([email protected]) # | ||
################################################################# | ||
yosys -import | ||
|
||
# XXX (input circuit) is replaced with filename by the run_vtr_flow script | ||
read_verilog -sv -nolatches XXX | ||
|
@@ -23,7 +24,7 @@ read_verilog -sv -nolatches XXX | |
# directory for any definitions to modules it doesn't know | ||
# about, such as hand-instantiated (not inferred) memories | ||
hierarchy -check -auto-top -libdir . | ||
proc | ||
procs | ||
|
||
# Check that there are no combinational loops | ||
scc -select | ||
|
@@ -50,7 +51,7 @@ techmap -map +/adff2dff.v | |
techmap -map TTT/../../../ODIN_II/techlib/adffe2dff.v | ||
|
||
# Map multipliers, DSPs, and add/subtracts according to yosys_models.v | ||
techmap -map YYY */t:$mul */t:$mem */t:$sub */t:$add | ||
techmap -map YYY */t:\$mul */t:\$mem */t:\$sub */t:\$add | ||
opt -fast -full | ||
|
||
memory_map | ||
|
@@ -67,15 +68,19 @@ opt -fast | |
# as blackboxes | ||
read_verilog -lib TTT/adder.v | ||
read_verilog -lib TTT/multiply.v | ||
read_verilog -lib SSS #(SSS) will be replaced by single_port_ram.v by python script | ||
read_verilog -lib DDD #(DDD) will be replaced by dual_port_ram.v by python script | ||
#(SSS) will be replaced by single_port_ram.v by python script | ||
read_verilog -lib SSS | ||
#(DDD) will be replaced by dual_port_ram.v by python script | ||
read_verilog -lib DDD | ||
|
||
# Rename singlePortRam to single_port_ram | ||
# Rename dualPortRam to dualZ_port_ram | ||
# Rename dualPortRam to dual_port_ram | ||
# rename function of Yosys not work here | ||
# since it may outcome hierarchy error | ||
read_verilog SSR #(SSR) will be replaced by spram_rename.v by python script | ||
read_verilog DDR #(DDR) will be replaced by dpram_rename.v by python script | ||
#(SSR) will be replaced by spram_rename.v by python script | ||
read_verilog SSR | ||
#(DDR) will be replaced by dpram_rename.v by python script | ||
read_verilog DDR | ||
|
||
# Flatten the netlist | ||
flatten | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
40 changes: 0 additions & 40 deletions
40
vtr_flow/tasks/regression_tests/vtr_reg_basic/hdl_include/config/config.txt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.