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
9bfe2ad7
Commit
9bfe2ad7
authored
Jul 25, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing option 'if -G <num>' after changes.
parent
e6db0f11
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
src/map/if/ifDelay.c
+7
-7
src/map/if/ifMan.c
+2
-2
src/map/if/ifTime.c
+0
-0
No files found.
src/map/if/ifDelay.c
View file @
9bfe2ad7
...
@@ -78,16 +78,16 @@ int If_CutDelaySop( If_Man_t * p, If_Cut_t * pCut )
...
@@ -78,16 +78,16 @@ int If_CutDelaySop( If_Man_t * p, If_Cut_t * pCut )
if
(
Vec_IntSize
(
vCover
)
==
0
)
if
(
Vec_IntSize
(
vCover
)
==
0
)
return
-
1
;
return
-
1
;
// mark the output as complemented
// mark the output as complemented
// vAnds = If_CutDelaySopAnds( p, pCut,
p->
vCover, RetValue ^ pCut->fCompl );
// vAnds = If_CutDelaySopAnds( p, pCut, vCover, RetValue ^ pCut->fCompl );
if
(
Vec_IntSize
(
p
->
vCover
)
>
p
->
pPars
->
nGateSize
)
if
(
Vec_IntSize
(
vCover
)
>
p
->
pPars
->
nGateSize
)
return
ABC_INFINITY
;
return
-
1
;
// set the area cost
// set the area cost
assert
(
If_CutLeaveNum
(
pCut
)
>=
0
&&
If_CutLeaveNum
(
pCut
)
<=
16
);
assert
(
If_CutLeaveNum
(
pCut
)
>=
0
&&
If_CutLeaveNum
(
pCut
)
<=
16
);
// compute the gate delay
// compute the gate delay
nLitMax
=
If_CutMaxCubeSize
(
p
->
vCover
,
If_CutLeaveNum
(
pCut
)
);
nLitMax
=
If_CutMaxCubeSize
(
vCover
,
If_CutLeaveNum
(
pCut
)
);
if
(
Vec_IntSize
(
p
->
vCover
)
<
2
)
if
(
Vec_IntSize
(
vCover
)
<
2
)
{
{
pCut
->
Cost
=
Vec_IntSize
(
p
->
vCover
);
pCut
->
Cost
=
Vec_IntSize
(
vCover
);
Delay
=
(
int
)(
GateDelays
[
If_CutLeaveNum
(
pCut
)]
+
0
.
5
);
Delay
=
(
int
)(
GateDelays
[
If_CutLeaveNum
(
pCut
)]
+
0
.
5
);
DelayMax
=
0
;
DelayMax
=
0
;
If_CutForEachLeaf
(
p
,
pCut
,
pLeaf
,
i
)
If_CutForEachLeaf
(
p
,
pCut
,
pLeaf
,
i
)
...
@@ -95,7 +95,7 @@ int If_CutDelaySop( If_Man_t * p, If_Cut_t * pCut )
...
@@ -95,7 +95,7 @@ int If_CutDelaySop( If_Man_t * p, If_Cut_t * pCut )
}
}
else
else
{
{
pCut
->
Cost
=
Vec_IntSize
(
p
->
vCover
)
+
1
;
pCut
->
Cost
=
Vec_IntSize
(
vCover
)
+
1
;
Delay
=
(
int
)(
GateDelays
[
If_CutLeaveNum
(
pCut
)]
+
GateDelays
[
nLitMax
]
+
0
.
5
);
Delay
=
(
int
)(
GateDelays
[
If_CutLeaveNum
(
pCut
)]
+
GateDelays
[
nLitMax
]
+
0
.
5
);
DelayMax
=
0
;
DelayMax
=
0
;
If_CutForEachLeaf
(
p
,
pCut
,
pLeaf
,
i
)
If_CutForEachLeaf
(
p
,
pCut
,
pLeaf
,
i
)
...
...
src/map/if/ifMan.c
View file @
9bfe2ad7
...
@@ -70,7 +70,7 @@ If_Man_t * If_ManStart( If_Par_t * pPars )
...
@@ -70,7 +70,7 @@ If_Man_t * If_ManStart( If_Par_t * pPars )
p
->
vTtMem
[
v
]
=
Vec_MemAllocForTT
(
v
,
pPars
->
fUseTtPerm
);
p
->
vTtMem
[
v
]
=
Vec_MemAllocForTT
(
v
,
pPars
->
fUseTtPerm
);
for
(
v
=
0
;
v
<
6
;
v
++
)
for
(
v
=
0
;
v
<
6
;
v
++
)
p
->
vTtMem
[
v
]
=
p
->
vTtMem
[
6
];
p
->
vTtMem
[
v
]
=
p
->
vTtMem
[
6
];
if
(
p
->
pPars
->
fDelayOpt
)
if
(
p
->
pPars
->
fDelayOpt
||
pPars
->
nGateSize
>
0
)
{
{
for
(
v
=
6
;
v
<=
Abc_MaxInt
(
6
,
p
->
pPars
->
nLutSize
);
v
++
)
for
(
v
=
6
;
v
<=
Abc_MaxInt
(
6
,
p
->
pPars
->
nLutSize
);
v
++
)
p
->
vTtIsops
[
v
]
=
Vec_WecAlloc
(
1000
);
p
->
vTtIsops
[
v
]
=
Vec_WecAlloc
(
1000
);
...
@@ -79,7 +79,7 @@ If_Man_t * If_ManStart( If_Par_t * pPars )
...
@@ -79,7 +79,7 @@ If_Man_t * If_ManStart( If_Par_t * pPars )
for
(
v
=
0
;
v
<
6
;
v
++
)
for
(
v
=
0
;
v
<
6
;
v
++
)
p
->
vTtIsops
[
v
]
=
p
->
vTtIsops
[
6
];
p
->
vTtIsops
[
v
]
=
p
->
vTtIsops
[
6
];
}
}
if
(
p
->
pPars
->
fDelayOpt
||
p
->
pPars
->
fDsdBalance
);
if
(
p
->
pPars
->
fDelayOpt
||
p
Pars
->
nGateSize
>
0
||
p
->
pPars
->
fDsdBalance
);
{
{
p
->
vCover
=
Vec_IntAlloc
(
0
);
p
->
vCover
=
Vec_IntAlloc
(
0
);
p
->
vArray
=
Vec_IntAlloc
(
1000
);
p
->
vArray
=
Vec_IntAlloc
(
1000
);
...
...
src/map/if/ifTime.c
View file @
9bfe2ad7
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