Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vecs
FIJI Public
Commits
39d3e11e
Commit
39d3e11e
authored
Jun 21, 2017
by
Christian Fibich
Committed by
Stefan Tauner
May 04, 2018
Browse files
Added no-opt constraints for Xilix Vivado
Addresses issue vecs/fiji#39
parent
f00fddc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/FIJI/Constraints.pm
View file @
39d3e11e
...
...
@@ -142,17 +142,36 @@ sub _vivado_pblocks {
# ------------------------------------------------------------------------------
END_HDR
my
$fin
=
"
# EOF
";
my
$no_opt
=
<<"END_NO_OPT";
# Turn off cross-boundary optimizations
# do not even look at the original netlist
set_property dont_touch TRUE [get_cells -quiet [list $DUT_NAME]]
# do not optimize accross FIJI boundaries
set_property keep_hierarchy TRUE [get_cells -quiet [list $FIJI_NAME]]
END_NO_OPT
my
$area
=
<<"END_AREA";
# Create physical constraints for FIJI and DUI
create_pblock pblock_$DUT_NAME
create_pblock pblock_$FIJI_PBLOCK
add_cells_to_pblock [get_pblocks pblock_$DUT_NAME] [get_cells -quiet [list $DUT_NAME]]
add_cells_to_pblock [get_pblocks pblock_$FIJI_PBLOCK] [get_cells -quiet [list $FIJI_NAME]]
# resize_pblock [get_pblocks pblock_$DUT_NAME] -add {<LO>:<HI>}
# resize_pblock [get_pblocks pblock_$FIJI_PBLOCK] -add {<LO>:<HI>}
END_AREA
# Set size and location of the PBlocks. This default size will likely fail.
# You will likely need to resize them in the GUI.
resize_pblock [get_pblocks pblock_$DUT_NAME] -add {SLICE_X1Y1:SLICE_X10Y10}
resize_pblock [get_pblocks pblock_$FIJI_PBLOCK] -add {SLICE_X11Y1:SLICE_X15Y3}
END_AREA
if
(
$cfg
->
{'
mode
'}
eq
"
FIX_PLACEMENT
")
{
$txt
.=
$no_opt
;
$txt
.=
$area
;
}
elsif
(
$cfg
->
{'
mode
'}
eq
"
OPT_OFF
")
{
$txt
.=
$no_opt
;
}
elsif
(
$cfg
->
{'
mode
'}
ne
"
ALLOW
"
&&
$cfg
->
{'
mode
'}
ne
"
OPT_OFF
")
{
$logger
->
error
("
Unknown SYNTHESIS_MODE
"
.
$cfg
->
{'
mode
'});
return
undef
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment