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
a17a4e5c
Commit
a17a4e5c
authored
Nov 28, 2010
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NPN class computation.
parent
98257daa
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
8 deletions
+14
-8
src/base/abci/abcCut.c
+12
-8
src/base/abci/abcNpnSave.c
+0
-0
src/base/abci/module.make
+1
-0
src/opt/cut/cut.h
+1
-0
No files found.
src/base/abci/abcCut.c
View file @
a17a4e5c
...
...
@@ -122,7 +122,8 @@ void Abc_NtkCutsAddFanunt( Abc_Ntk_t * pNtk )
Cut_Man_t
*
Abc_NtkCuts
(
Abc_Ntk_t
*
pNtk
,
Cut_Params_t
*
pParams
)
{
ProgressBar
*
pProgress
;
Cut_Man_t
*
p
;
Cut_Man_t
*
p
;
Cut_Cut_t
*
pList
;
Abc_Obj_t
*
pObj
,
*
pNode
;
Vec_Ptr_t
*
vNodes
;
Vec_Int_t
*
vChoices
;
...
...
@@ -172,7 +173,15 @@ Cut_Man_t * Abc_NtkCuts( Abc_Ntk_t * pNtk, Cut_Params_t * pParams )
// continue;
Extra_ProgressBarUpdate
(
pProgress
,
i
,
NULL
);
// compute the cuts to the internal node
Abc_NodeGetCuts
(
p
,
pObj
,
pParams
->
fDag
,
pParams
->
fTree
);
pList
=
Abc_NodeGetCuts
(
p
,
pObj
,
pParams
->
fDag
,
pParams
->
fTree
);
if
(
pParams
->
fNpnSave
&&
pList
)
{
extern
void
Npn_ManSaveOne
(
unsigned
*
puTruth
,
int
nVars
);
Cut_Cut_t
*
pCut
;
for
(
pCut
=
pList
;
pCut
;
pCut
=
pCut
->
pNext
)
if
(
pCut
->
nLeaves
>=
4
)
Npn_ManSaveOne
(
Cut_CutReadTruth
(
pCut
),
pCut
->
nLeaves
);
}
// consider dropping the fanins cuts
if
(
pParams
->
fDrop
)
{
...
...
@@ -193,7 +202,7 @@ Cut_Man_t * Abc_NtkCuts( Abc_Ntk_t * pNtk, Cut_Params_t * pParams )
Vec_IntFree
(
vChoices
);
Cut_ManPrintStats
(
p
);
ABC_PRT
(
"TOTAL"
,
clock
()
-
clk
);
printf
(
"Area = %d.
\n
"
,
Abc_NtkComputeArea
(
pNtk
,
p
)
);
//
printf( "Area = %d.\n", Abc_NtkComputeArea( pNtk, p ) );
//Abc_NtkPrintCuts( p, pNtk, 0 );
// Cut_ManPrintStatsToFile( p, pNtk->pSpec, clock() - clk );
...
...
@@ -428,7 +437,6 @@ void * Abc_NodeGetCuts( void * p, Abc_Obj_t * pObj, int fDag, int fTree )
// assert( Abc_NtkIsStrash(pObj->pNtk) );
assert
(
Abc_ObjFaninNum
(
pObj
)
==
2
);
// check if the node is a DAG node
fDagNode
=
(
Abc_ObjFanoutNum
(
pObj
)
>
1
&&
!
Abc_NodeIsMuxControlType
(
pObj
));
// increment the counter of DAG nodes
...
...
@@ -444,7 +452,6 @@ void * Abc_NodeGetCuts( void * p, Abc_Obj_t * pObj, int fDag, int fTree )
TreeCode
|=
((
Abc_ObjFanoutNum
(
pFanin
)
>
1
&&
!
Abc_NodeIsMuxControlType
(
pFanin
))
<<
1
);
}
// changes due to the global/local cut computation
{
Cut_Params_t
*
pParams
=
Cut_ManReadParams
((
Cut_Man_t
*
)
p
);
...
...
@@ -568,9 +575,6 @@ void Abc_NtkPrintCuts_( void * p, Abc_Ntk_t * pNtk, int fSeq )
Cut_CutPrintList
(
pList
,
fSeq
);
}
/**Function*************************************************************
Synopsis [Assigns global attributes randomly.]
...
...
src/base/abci/abcNpnSave.c
0 → 100644
View file @
a17a4e5c
This diff is collapsed.
Click to expand it.
src/base/abci/module.make
View file @
a17a4e5c
...
...
@@ -34,6 +34,7 @@ SRC += src/base/abci/abc.c \
src/base/abci/abcMiter.c
\
src/base/abci/abcMulti.c
\
src/base/abci/abcNtbdd.c
\
src/base/abci/abcNpnSave.c
\
src/base/abci/abcOdc.c
\
src/base/abci/abcOrder.c
\
src/base/abci/abcPart.c
\
...
...
src/opt/cut/cut.h
View file @
a17a4e5c
...
...
@@ -70,6 +70,7 @@ struct Cut_ParamsStruct_t_
int
fFancy
;
// perform fancy computations
int
fMap
;
// computes delay of FPGA mapping with cuts
int
fAdjust
;
// removed useless fanouts of XORs/MUXes
int
fNpnSave
;
// enables dumping 6-input truth tables
int
fVerbose
;
// the verbosiness flag
};
...
...
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