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
038f2964
Commit
038f2964
authored
Jul 22, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix and warning print.
parent
054caacb
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
4 deletions
+47
-4
src/base/abci/abcMap.c
+42
-2
src/map/scl/scl.c
+0
-1
src/map/scl/sclUtil.c
+5
-1
No files found.
src/base/abci/abcMap.c
View file @
038f2964
...
@@ -167,6 +167,46 @@ ABC_PRT( "Total runtime", Abc_Clock() - clkTotal );
...
@@ -167,6 +167,46 @@ ABC_PRT( "Total runtime", Abc_Clock() - clkTotal );
SeeAlso []
SeeAlso []
***********************************************************************/
***********************************************************************/
Map_Time_t
*
Abc_NtkMapCopyCiArrival
(
Abc_Ntk_t
*
pNtk
,
Abc_Time_t
*
ppTimes
)
{
Map_Time_t
*
p
;
int
i
;
p
=
ABC_CALLOC
(
Map_Time_t
,
Abc_NtkCiNum
(
pNtk
)
);
for
(
i
=
0
;
i
<
Abc_NtkCiNum
(
pNtk
);
i
++
)
{
p
->
Fall
=
ppTimes
[
i
].
Fall
;
p
->
Rise
=
ppTimes
[
i
].
Rise
;
p
->
Worst
=
Abc_MaxFloat
(
p
->
Fall
,
p
->
Rise
);
}
ABC_FREE
(
ppTimes
);
return
p
;
}
Map_Time_t
*
Abc_NtkMapCopyCoRequired
(
Abc_Ntk_t
*
pNtk
,
Abc_Time_t
*
ppTimes
)
{
Map_Time_t
*
p
;
int
i
;
p
=
ABC_CALLOC
(
Map_Time_t
,
Abc_NtkCoNum
(
pNtk
)
);
for
(
i
=
0
;
i
<
Abc_NtkCoNum
(
pNtk
);
i
++
)
{
p
->
Fall
=
ppTimes
[
i
].
Fall
;
p
->
Rise
=
ppTimes
[
i
].
Rise
;
p
->
Worst
=
Abc_MaxFloat
(
p
->
Fall
,
p
->
Rise
);
}
ABC_FREE
(
ppTimes
);
return
p
;
}
/**Function*************************************************************
Synopsis [Load the network into manager.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
Map_Man_t
*
Abc_NtkToMap
(
Abc_Ntk_t
*
pNtk
,
double
DelayTarget
,
int
fRecovery
,
float
*
pSwitching
,
int
fVerbose
)
Map_Man_t
*
Abc_NtkToMap
(
Abc_Ntk_t
*
pNtk
,
double
DelayTarget
,
int
fRecovery
,
float
*
pSwitching
,
int
fVerbose
)
{
{
Map_Man_t
*
pMan
;
Map_Man_t
*
pMan
;
...
@@ -185,8 +225,8 @@ Map_Man_t * Abc_NtkToMap( Abc_Ntk_t * pNtk, double DelayTarget, int fRecovery, f
...
@@ -185,8 +225,8 @@ Map_Man_t * Abc_NtkToMap( Abc_Ntk_t * pNtk, double DelayTarget, int fRecovery, f
Map_ManSetAreaRecovery
(
pMan
,
fRecovery
);
Map_ManSetAreaRecovery
(
pMan
,
fRecovery
);
Map_ManSetOutputNames
(
pMan
,
Abc_NtkCollectCioNames
(
pNtk
,
1
)
);
Map_ManSetOutputNames
(
pMan
,
Abc_NtkCollectCioNames
(
pNtk
,
1
)
);
Map_ManSetDelayTarget
(
pMan
,
(
float
)
DelayTarget
);
Map_ManSetDelayTarget
(
pMan
,
(
float
)
DelayTarget
);
Map_ManSetInputArrivals
(
pMan
,
(
Map_Time_t
*
)
Abc_NtkGetCiArrivalTimes
(
pNtk
)
);
Map_ManSetInputArrivals
(
pMan
,
Abc_NtkMapCopyCiArrival
(
pNtk
,
Abc_NtkGetCiArrivalTimes
(
pNtk
)
)
);
Map_ManSetOutputRequireds
(
pMan
,
(
Map_Time_t
*
)
Abc_NtkGetCoRequiredTimes
(
pNtk
)
);
Map_ManSetOutputRequireds
(
pMan
,
Abc_NtkMapCopyCoRequired
(
pNtk
,
Abc_NtkGetCoRequiredTimes
(
pNtk
)
)
);
// create PIs and remember them in the old nodes
// create PIs and remember them in the old nodes
Abc_NtkCleanCopy
(
pNtk
);
Abc_NtkCleanCopy
(
pNtk
);
...
...
src/map/scl/scl.c
View file @
038f2964
...
@@ -992,7 +992,6 @@ usage:
...
@@ -992,7 +992,6 @@ usage:
***********************************************************************/
***********************************************************************/
int
Scl_CommandDumpGen
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
int
Scl_CommandDumpGen
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
{
Abc_Ntk_t
*
pNtk
=
Abc_FrameReadNtk
(
pAbc
);
char
*
pFileName
;
char
*
pFileName
;
float
Slew
=
100
;
float
Slew
=
100
;
float
Gain
=
2
;
float
Gain
=
2
;
...
...
src/map/scl/sclUtil.c
View file @
038f2964
...
@@ -63,15 +63,19 @@ Vec_Int_t * Abc_SclManFindGates( SC_Lib * pLib, Abc_Ntk_t * p )
...
@@ -63,15 +63,19 @@ Vec_Int_t * Abc_SclManFindGates( SC_Lib * pLib, Abc_Ntk_t * p )
void
Abc_SclManSetGates
(
SC_Lib
*
pLib
,
Abc_Ntk_t
*
p
,
Vec_Int_t
*
vGates
)
void
Abc_SclManSetGates
(
SC_Lib
*
pLib
,
Abc_Ntk_t
*
p
,
Vec_Int_t
*
vGates
)
{
{
Abc_Obj_t
*
pObj
;
Abc_Obj_t
*
pObj
;
int
i
;
int
i
,
Counter
=
0
,
CounterAll
=
0
;
Abc_NtkForEachNode1
(
p
,
pObj
,
i
)
Abc_NtkForEachNode1
(
p
,
pObj
,
i
)
{
{
SC_Cell
*
pCell
=
SC_LibCell
(
pLib
,
Vec_IntEntry
(
vGates
,
Abc_ObjId
(
pObj
))
);
SC_Cell
*
pCell
=
SC_LibCell
(
pLib
,
Vec_IntEntry
(
vGates
,
Abc_ObjId
(
pObj
))
);
assert
(
pCell
->
n_inputs
==
Abc_ObjFaninNum
(
pObj
)
);
assert
(
pCell
->
n_inputs
==
Abc_ObjFaninNum
(
pObj
)
);
pObj
->
pData
=
Mio_LibraryReadGateByName
(
(
Mio_Library_t
*
)
p
->
pManFunc
,
pCell
->
pName
,
NULL
);
pObj
->
pData
=
Mio_LibraryReadGateByName
(
(
Mio_Library_t
*
)
p
->
pManFunc
,
pCell
->
pName
,
NULL
);
Counter
+=
(
pObj
->
pData
==
NULL
);
assert
(
pObj
->
fMarkA
==
0
&&
pObj
->
fMarkB
==
0
);
assert
(
pObj
->
fMarkA
==
0
&&
pObj
->
fMarkB
==
0
);
CounterAll
++
;
//printf( "Found gate %s\n", pCell->name );
//printf( "Found gate %s\n", pCell->name );
}
}
if
(
Counter
)
printf
(
"Could not find %d (out of %d) gates in the current library.
\n
"
,
Counter
,
CounterAll
);
}
}
/**Function*************************************************************
/**Function*************************************************************
...
...
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