forked from verilog-to-routing/vtr-verilog-to-routing
-
Notifications
You must be signed in to change notification settings - Fork 0
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
14 changed files
with
366 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,81 @@ | ||
yosys -import | ||
|
||
plugin -i parmys | ||
yosys -import | ||
|
||
read_verilog -nomem2reg +/parmys/vtr_primitives.v | ||
setattr -mod -set keep_hierarchy 1 single_port_ram | ||
setattr -mod -set keep_hierarchy 1 dual_port_ram | ||
|
||
puts "Using parmys as partial mapper" | ||
|
||
parmys_arch -a QQQ | ||
|
||
if {$env(PARSER) == "surelog" } { | ||
puts "Using Yosys read_uhdm command" | ||
plugin -i systemverilog | ||
yosys -import | ||
read_uhdm -debug XXX | ||
} elseif {$env(PARSER) == "yosys-plugin" } { | ||
puts "Using Yosys read_systemverilog command" | ||
plugin -i systemverilog | ||
yosys -import | ||
read_systemverilog -debug XXX | ||
} elseif {$env(PARSER) == "yosys" } { | ||
puts "Using Yosys read_verilog command" | ||
read_verilog -sv -nolatches XXX | ||
} else { | ||
error "Invalid PARSER" | ||
} | ||
|
||
# Check that there are no combinational loops | ||
scc -select | ||
select -assert-none % | ||
select -clear | ||
|
||
hierarchy -check -auto-top -purge_lib | ||
|
||
opt_expr | ||
opt_clean | ||
check | ||
opt -nodffe -nosdff | ||
procs -norom | ||
fsm | ||
opt | ||
wreduce | ||
peepopt | ||
opt_clean | ||
share | ||
|
||
opt -full | ||
memory -nomap | ||
flatten | ||
|
||
opt -full | ||
|
||
techmap -map +/parmys/adff2dff.v | ||
techmap -map +/parmys/adffe2dff.v | ||
techmap -map +/parmys/aldff2dff.v | ||
techmap -map +/parmys/aldffe2dff.v | ||
|
||
opt -full | ||
|
||
#stat | ||
|
||
parmys -a QQQ -nopass -c odin_config.xml | ||
|
||
opt -full | ||
|
||
techmap | ||
opt -fast | ||
|
||
dffunmap | ||
opt -fast -noff | ||
|
||
#autoname | ||
|
||
tee -o /dev/stdout stat | ||
|
||
hierarchy -check -auto-top -purge_lib | ||
|
||
write_blif -true + vcc -false + gnd -undef + unconn -blackbox ZZZ |
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.