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
50df0813
Commit
50df0813
authored
May 03, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allowing 'constr' to reset remove currently defined constraints.
parent
50095be5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
20 deletions
+18
-20
src/base/abci/abc.c
+18
-20
No files found.
src/base/abci/abc.c
View file @
50df0813
...
...
@@ -22061,7 +22061,7 @@ int Abc_CommandConstr( Abc_Frame_t * pAbc, int argc, char ** argv )
fInvert
=
0
;
fOldAlgo
=
0
;
fVerbose
=
0
;
nConstrs
=
0
;
nConstrs
=
-
1
;
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"FCPNrsiavh"
)
)
!=
EOF
)
{
...
...
@@ -22153,6 +22153,22 @@ int Abc_CommandConstr( Abc_Frame_t * pAbc, int argc, char ** argv )
pNtk
->
nConstrs
=
0
;
return
0
;
}
// consider the case of manual constraint definition
if
(
nConstrs
>=
0
)
{
if
(
Abc_NtkIsComb
(
pNtk
)
)
Abc_Print
(
0
,
"The network is combinational.
\n
"
);
if
(
Abc_NtkConstrNum
(
pNtk
)
>
0
)
Abc_Print
(
0
,
"The network currently has %d constraints.
\n
"
,
Abc_NtkConstrNum
(
pNtk
)
);
if
(
nConstrs
>=
Abc_NtkPoNum
(
pNtk
)
)
{
Abc_Print
(
-
1
,
"The number of constraints specified (%d) should be less than POs (%d).
\n
"
,
nConstrs
,
Abc_NtkPoNum
(
pNtk
)
);
return
0
;
}
Abc_Print
(
1
,
"Setting the last %d POs as constraint outputs.
\n
"
,
nConstrs
);
pNtk
->
nConstrs
=
nConstrs
;
return
0
;
}
// consider the case of already defined constraints
if
(
Abc_NtkConstrNum
(
pNtk
)
>
0
)
{
...
...
@@ -22169,25 +22185,6 @@ int Abc_CommandConstr( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_NtkDarConstrProfile
(
pNtk
,
fVerbose
);
return
0
;
}
// consider the case of manual constraint definition
if
(
nConstrs
>
0
)
{
if
(
Abc_NtkIsComb
(
pNtk
)
)
Abc_Print
(
0
,
"The network is combinational.
\n
"
);
if
(
Abc_NtkConstrNum
(
pNtk
)
>
0
)
{
Abc_Print
(
-
1
,
"The network already has constraints.
\n
"
);
return
0
;
}
if
(
nConstrs
>=
Abc_NtkPoNum
(
pNtk
)
)
{
Abc_Print
(
-
1
,
"The number of constraints specified (%d) should be less than POs (%d).
\n
"
,
nConstrs
,
Abc_NtkPoNum
(
pNtk
)
);
return
0
;
}
Abc_Print
(
1
,
"Setting the last %d POs as constraint outputs.
\n
"
,
nConstrs
);
pNtk
->
nConstrs
=
nConstrs
;
return
0
;
}
if
(
Abc_NtkIsComb
(
pNtk
)
)
{
Abc_Print
(
-
1
,
"The network is combinational.
\n
"
);
...
...
@@ -22781,6 +22778,7 @@ int Abc_CommandPdr( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_FrameReplaceCexVec
(
pAbc
,
&
pNtk
->
vSeqModelVec
);
pAbc
->
nFrames
=
-
1
;
}
ABC_FREE
(
pPars
->
pOutMap
);
// cleanup after PDR
return
0
;
usage:
...
...
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