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
184d0604
Commit
184d0604
authored
Oct 24, 2022
by
TAKE72K
Committed by
take72
Oct 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change macro pin naming to avoid ambiguous
Signed-off-by: take72 <hyes941073@gmail.com>
parent
65728928
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
CodeElements/FormatTranslators/src/FormatTranslators.py
+2
-2
No files found.
CodeElements/FormatTranslators/src/FormatTranslators.py
View file @
184d0604
...
@@ -530,7 +530,7 @@ class BookShelf2ProBufFormat:
...
@@ -530,7 +530,7 @@ class BookShelf2ProBufFormat:
for
sink
in
sink_list
:
for
sink
in
sink_list
:
inst_name
=
sink
[
0
]
inst_name
=
sink
[
0
]
if
(
self
.
insts
[
inst_name
]
.
GetType
()
==
"MACRO"
):
if
(
self
.
insts
[
inst_name
]
.
GetType
()
==
"MACRO"
):
pin_name
=
"
Pinput_"
+
str
(
len
(
self
.
insts
[
inst_name
]
.
GetInputPins
()))
pin_name
=
inst_name
+
"/
Pinput_"
+
str
(
len
(
self
.
insts
[
inst_name
]
.
GetInputPins
()))
self
.
insts
[
inst_name
]
.
AddInputPin
(
MacroPin
(
pin_name
,
inst_name
,
sink
[
1
],
sink
[
2
],
"MACRO"
))
self
.
insts
[
inst_name
]
.
AddInputPin
(
MacroPin
(
pin_name
,
inst_name
,
sink
[
1
],
sink
[
2
],
"MACRO"
))
sink_name_list
.
append
(
pin_name
)
sink_name_list
.
append
(
pin_name
)
else
:
else
:
...
@@ -539,7 +539,7 @@ class BookShelf2ProBufFormat:
...
@@ -539,7 +539,7 @@ class BookShelf2ProBufFormat:
driver_name
=
driver
[
0
]
driver_name
=
driver
[
0
]
if
(
self
.
insts
[
driver_name
]
.
GetType
()
==
"MACRO"
):
if
(
self
.
insts
[
driver_name
]
.
GetType
()
==
"MACRO"
):
pin_id
=
len
(
self
.
insts
[
driver_name
]
.
GetOutputPins
())
pin_id
=
len
(
self
.
insts
[
driver_name
]
.
GetOutputPins
())
pin_name
=
"
Poutput_"
+
str
(
pin_id
)
pin_name
=
inst_name
+
"/
Poutput_"
+
str
(
pin_id
)
macro_pin
=
MacroPin
(
pin_name
,
driver_name
,
driver
[
1
],
driver
[
2
],
"MACRO"
)
macro_pin
=
MacroPin
(
pin_name
,
driver_name
,
driver
[
1
],
driver
[
2
],
"MACRO"
)
macro_pin
.
AddSinks
(
sink_name_list
)
macro_pin
.
AddSinks
(
sink_name_list
)
self
.
insts
[
driver_name
]
.
AddOutputPin
(
macro_pin
)
self
.
insts
[
driver_name
]
.
AddOutputPin
(
macro_pin
)
...
...
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