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
a0badba0
Commit
a0badba0
authored
Sep 26, 2022
by
sakundu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated scripts and bp_quad inputs
Signed-off-by: sakundu <sakundu@ucsd.edu>
parent
5e4272d9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
88 additions
and
6 deletions
+88
-6
Flows/NanGate45/bp_quad/scripts/cadence/rtl/bsg_chip_block.sv2v.v
+0
-0
Flows/NanGate45/bp_quad/scripts/cadence/rtl/fakeram45_32x32_dp.v
+73
-0
Flows/NanGate45/bp_quad/scripts/cadence/rtl_list.tcl
+1
-0
Flows/NanGate45/bp_quad/scripts/cadence/run_genus_hybrid.tcl
+1
-0
Flows/util/extract_report.tcl
+1
-1
Flows/util/pdn_flow.tcl
+2
-2
Flows/util/plc_pb_to_placement_tcl.py
+10
-3
No files found.
Flows/NanGate45/bp_quad/scripts/cadence/rtl/bsg_chip_block.sv2v.v
View file @
a0badba0
This diff is collapsed.
Click to expand it.
Flows/NanGate45/bp_quad/scripts/cadence/rtl/fakeram45_32x32_dp.v
0 → 100644
View file @
a0badba0
module
fakeram_32x32_dp
(
QA
,
CLKA
,
CENA
,
AA
,
CLKB
,
CENB
,
AB
,
DB
,
STOV
,
EMAA
,
EMASA
,
EMAB
,
RET1N
)
;
input
CLKA
;
input
CLKB
;
input
CENA
;
input
[
4
:
0
]
AA
;
output
[
31
:
0
]
QA
;
input
CENB
;
input
[
4
:
0
]
AB
;
input
[
31
:
0
]
DB
;
input
STOV
;
input
[
2
:
0
]
EMAA
;
input
EMASA
;
input
[
2
:
0
]
EMAB
;
input
RET1N
;
assign
STOV
=
1'b0
;
assign
EMASA
=
1'b0
;
assign
EMAA
=
3'b010
;
// Extra margin adjustment A: Default for 0.8V
assign
EMAB
=
3'b010
;
// Extra margin adjustment B: Default for 0.8V
assign
RET1N
=
1'b1
;
wire
[
31
:
0
]
QB
;
wire
[
31
:
0
]
QA1
;
fakeram45_32x32
rmod_a
(
.
rd_out
(
QA1
)
,
.
addr_in
(
AA
)
,
.
we_in
(
~
CENA
)
,
.
wd_in
(
DB
)
,
//dummy
.
w_mask_in
(
DB
)
,
//dummy
.
clk
(
CLKA
)
,
.
ce_in
(
CENA
)
)
;
fakeram45_32x32
rmod_b
(
.
rd_out
(
QB
)
,
//dummy
.
addr_in
(
AB
)
,
.
we_in
(
CENB
)
,
.
wd_in
(
DB
)
,
.
w_mask_in
(
DB
)
,
.
clk
(
CLKB
)
,
.
ce_in
(
CENB
)
)
;
genvar
k
;
generate
for
(
k
=
0
;
k
<
32
;
k
=
k
+
1
)
begin
assign
QA
[
k
]
=
(
~
CENB
&
QB
[
k
])
|
(
CENB
&
QA1
[
k
])
;
end
endgenerate
endmodule
Flows/NanGate45/bp_quad/scripts/cadence/rtl_list.tcl
View file @
a0badba0
set
rtl_all
{
./rtl/bsg_chip_block.sv2v.v
./rtl/fakeram45_32x32_dp.v
}
Flows/NanGate45/bp_quad/scripts/cadence/run_genus_hybrid.tcl
View file @
a0badba0
...
...
@@ -44,6 +44,7 @@ set target_library $list_lib
set_db hdl_flatten_complex_port true
set_db hdl_record_naming_style %s_%s
set_db auto_ungroup none
set_db hdl_error_on_blackbox true
if
{
!
[
info
exist ::env
(
PHY_SYNTH
)]
||
$::env
(
PHY_SYNTH
)
== 0
}
{
...
...
Flows/util/extract_report.tcl
View file @
a0badba0
...
...
@@ -62,7 +62,7 @@ proc extract_report {stage} {
timeDesign -postCTS -prefix
${stage}
}
else
if
{
$stage
==
"postRoute"
}
{
timeDesign -postRoute -prefix
${stage}
}
else
if
{
$stage
==
"postRou
et
Opt"
}
{
}
else
if
{
$stage
==
"postRou
te
Opt"
}
{
timeDesign -postRoute -prefix
${stage}
}
else
if
{
$stage
==
"postSynth"
}
{
timeDesign -prePlace -prefix
${stage}
...
...
Flows/util/pdn_flow.tcl
View file @
a0badba0
...
...
@@ -113,11 +113,11 @@ while { $i < $lcount } {
}
else
if
{
$ism
== 1
}
{
setAddStripeMode -extend_to_closest_target none
setAddStripeMode -inside_cell_only true
foreach mcell
[
dbget
[
dbget top.insts.cell.subClass block -p2
]
.cell.name -u
]
{
foreach mcell
[
dbget
[
dbget top.insts.cell.subClass block -p2
]
.cell.name -u
-e
]
{
addStripe -layer
$lname
-direction
$dir
-nets
$nets
-width
$wdth
-spacing
$spc
\
-start_offset
$sofst
-set_to_set_distance
$ptch
-master
$mcell
}
foreach inst
[
dbget
[
dbget top.insts.cell.subClass block -p2
]
.name
]
{
foreach inst
[
dbget
[
dbget top.insts.cell.subClass block -p2
]
.name
-e
]
{
createRouteBlk -inst
$inst
-cover -layer
$prev
Layer -name mcro_blk
}
}
else
if
{
$isam
== 1
}
{
...
...
Flows/util/plc_pb_to_placement_tcl.py
View file @
a0badba0
...
...
@@ -9,7 +9,14 @@ plc_file = sys.argv[1]
pb_file
=
sys
.
argv
[
2
]
place_tcl
=
sys
.
argv
[
3
]
print
(
f
'PLC:
\t
{plc_file}
\n
PB:
\t
{pb_file}
\n
TCL:
\t
{place_tcl}'
)
origin_x
=
0
origin_y
=
0
print
(
f
"Length of Argument: {len(sys.argv)}"
)
if
len
(
sys
.
argv
)
==
6
:
origin_x
=
float
(
sys
.
argv
[
4
])
origin_y
=
float
(
sys
.
argv
[
5
])
print
(
f
'PLC:
\t
{plc_file}
\n
PB:
\t
{pb_file}
\n
TCL:
\t
{place_tcl}
\n
Origin X:{origin_x} Y:{origin_y}'
)
orientMap
=
{
"N"
:
"R0"
,
...
...
@@ -94,8 +101,8 @@ for line in lines:
if
id_pattern
.
match
(
words
[
0
])
and
(
len
(
words
)
==
5
):
idx
=
int
(
words
[
0
])
if
node_list
[
idx
]
.
pb_type
==
'"MACRO"'
:
x
=
float
(
words
[
1
])
-
float
(
node_list
[
idx
]
.
width
)
/
2.0
y
=
float
(
words
[
2
])
-
float
(
node_list
[
idx
]
.
height
)
/
2.0
x
=
float
(
words
[
1
])
-
float
(
node_list
[
idx
]
.
width
)
/
2.0
+
origin_x
y
=
float
(
words
[
2
])
-
float
(
node_list
[
idx
]
.
height
)
/
2.0
+
origin_y
orient
=
orientMap
[
words
[
3
]]
isFixed
=
words
[
4
]
macro_name
=
node_list
[
idx
]
.
name
.
replace
(
'_['
,
'
\
['
)
...
...
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