Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abc
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
abc
Commits
0aab9356
Commit
0aab9356
authored
Jul 16, 2015
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not add reset logic to un-initialized flops without fanout.
parent
3a321133
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
src/aig/gia/giaDup.c
+6
-1
No files found.
src/aig/gia/giaDup.c
View file @
0aab9356
...
@@ -2487,15 +2487,20 @@ Gia_Man_t * Gia_ManDupZeroUndc( Gia_Man_t * p, char * pInit, int fVerbose )
...
@@ -2487,15 +2487,20 @@ Gia_Man_t * Gia_ManDupZeroUndc( Gia_Man_t * p, char * pInit, int fVerbose )
if
(
CountPis
>
Gia_ManPiNum
(
p
)
)
if
(
CountPis
>
Gia_ManPiNum
(
p
)
)
iResetFlop
=
Gia_ManAppendCi
(
pNew
);
iResetFlop
=
Gia_ManAppendCi
(
pNew
);
// update flop outputs
// update flop outputs
Gia_ManMarkFanoutDrivers
(
p
);
Gia_ManForEachRo
(
p
,
pObj
,
i
)
Gia_ManForEachRo
(
p
,
pObj
,
i
)
{
{
if
(
pInit
[
i
]
==
'1'
)
if
(
pInit
[
i
]
==
'1'
)
pObj
->
Value
=
Abc_LitNot
(
pObj
->
Value
),
Count1
++
;
pObj
->
Value
=
Abc_LitNot
(
pObj
->
Value
),
Count1
++
;
else
if
(
pInit
[
i
]
==
'x'
||
pInit
[
i
]
==
'X'
)
else
if
(
pInit
[
i
]
==
'x'
||
pInit
[
i
]
==
'X'
)
pObj
->
Value
=
Gia_ManAppendMux
(
pNew
,
iResetFlop
,
pObj
->
Value
,
Gia_Obj2Lit
(
pNew
,
Gia_ManPi
(
pNew
,
pPiLits
[
i
]))
);
{
if
(
pObj
->
fMark0
)
// only add MUX if the flop has fanout
pObj
->
Value
=
Gia_ManAppendMux
(
pNew
,
iResetFlop
,
pObj
->
Value
,
Gia_Obj2Lit
(
pNew
,
Gia_ManPi
(
pNew
,
pPiLits
[
i
]))
);
}
else
if
(
pInit
[
i
]
!=
'0'
)
else
if
(
pInit
[
i
]
!=
'0'
)
assert
(
0
);
assert
(
0
);
}
}
Gia_ManCleanMark0
(
p
);
ABC_FREE
(
pPiLits
);
ABC_FREE
(
pPiLits
);
// build internal nodes
// build internal nodes
Gia_ManForEachAnd
(
p
,
pObj
,
i
)
Gia_ManForEachAnd
(
p
,
pObj
,
i
)
...
...
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