Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
macroplacement
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
macroplacement
Commits
9860d160
Commit
9860d160
authored
Sep 30, 2022
by
sakundu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated Place pin tcl file
parent
f77a5e1f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
12 deletions
+54
-12
Flows/util/place_pin.tcl
+54
-12
No files found.
Flows/util/place_pin.tcl
View file @
9860d160
set
y
[
dbget top.fplan.box_sizey
]
set
y1
[
expr
$y
*0.175
]
set
y2
[
expr
$y
-
$y1
]
set
layers
[
dbget
[
dbget head.layers.direction Horizontal -p
]
.name
]
set
layer1
[
lindex
$layers
1
]
set
layer2
[
lindex
$layers
2
]
set
pin_layer
[
list
$layer1
$layer2
]
set
pt1
[
list
0
$y1
]
set
pt2
[
list
0
$y2
]
set
pin_list
[
dbget top.terms.name
]
editPin -pin
$pin
_list -edge 0 -start
$pt1
-end
$pt2
-fixedPin -layer
$pin
_layer -spreadDirection clockwise -pattern fill_optimised
proc
place_pins
{
{
side 0
}
{
pin_list
""
}
{
perc 0.6
}}
{
if
{
$pin
_list ==
""
}
{
set pin_list
[
dbget top.terms.name
]
}
if
{
$perc
> 1 ||
$perc
< 0
}
{
set perc 0.6
}
set height
[
dbget top.fplan.box_sizey
]
set width
[
dbget top.fplan.box_sizex
]
set x1 0
set x2
$width
set y1 0
set y2
$height
if
{
$side
== 0
}
{
set x2
$x1
set y1
[
expr
$height
*
(
1-
$perc
)
/2
]
set y2
[
expr
$height
-
$y1
]
}
else
if
{
$side
== 1
}
{
set y1
$y2
set x1
[
expr
$width
*
(
1 -
$perc
)
/2
]
set x2
[
expr
$width
-
$x1
]
}
else
if
{
$side
== 2
}
{
set x1
$x2
set y2
[
expr
$height
*
(
1-
$perc
)
/2
]
set y1
[
expr
$height
-
$y2
]
}
else
if
{
$side
== 3
}
{
set y2
$y1
set x2
[
expr
$width
*
(
1 -
$perc
)
/2
]
set x1
[
expr
$width
-
$x2
]
}
else
{
puts
"Side is not correct"
return
}
if
{
$side
== 0 ||
$side
== 2
}
{
set layers
[
dbget
[
dbget head.layers.direction Horizontal -p
]
.name
]
}
else
{
set layers
[
dbget
[
dbget head.layers.direction Vertical -p
]
.name
]
}
set layer1
[
lindex
$layers
1
]
set layer2
[
lindex
$layers
2
]
set pin_layer
[
list
$layer1
$layer2
]
set pt1
[
list
$x1
$y1
]
set pt2
[
list
$x2
$y2
]
editPin -pin
$pin
_list -edge
$side
-start
$pt1
-end
$pt2
-fixedPin -layer
$pin
_layer -spreadDirection clockwise -pattern fill_optimised
}
\ No newline at end of file
Write
Preview
Markdown
is supported
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