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
c6bce9c2
Commit
c6bce9c2
authored
Feb 07, 2018
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing input swapping issue in MUXes derived from NDR.
parent
e839091b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
src/base/wlc/wlc.h
+2
-0
src/base/wlc/wlcNdr.c
+2
-0
No files found.
src/base/wlc/wlc.h
View file @
c6bce9c2
...
...
@@ -331,6 +331,8 @@ extern void Wlc_SetNtk( Abc_Frame_t * pAbc, Wlc_Ntk_t * pNtk );
/*=== wlcNdr.c ========================================================*/
extern
Wlc_Ntk_t
*
Wlc_ReadNdr
(
char
*
pFileName
);
extern
void
Wlc_WriteNdr
(
Wlc_Ntk_t
*
pNtk
,
char
*
pFileName
);
extern
Wlc_Ntk_t
*
Wlc_NtkFromNdr
(
void
*
pData
);
extern
void
*
Wlc_NtkToNdr
(
Wlc_Ntk_t
*
pNtk
);
/*=== wlcNtk.c ========================================================*/
extern
void
Wlc_ManSetDefaultParams
(
Wlc_Par_t
*
pPars
);
extern
char
*
Wlc_ObjTypeName
(
Wlc_Obj_t
*
p
);
...
...
src/base/wlc/wlcNdr.c
View file @
c6bce9c2
...
...
@@ -332,6 +332,8 @@ Wlc_Ntk_t * Wlc_NtkFromNdr( void * pData )
Vec_IntPushTwo
(
vFanins
,
End
,
Beg
);
else
if
(
Type
==
ABC_OPER_CONST
)
Ndr_ObjReadConstant
(
vFanins
,
(
char
*
)
Ndr_ObjReadBodyP
(
p
,
Obj
,
NDR_FUNCTION
)
);
else
if
(
Type
==
ABC_OPER_BIT_MUX
&&
Vec_IntSize
(
vFanins
)
==
3
)
ABC_SWAP
(
int
,
Vec_IntEntryP
(
vFanins
,
1
)[
0
],
Vec_IntEntryP
(
vFanins
,
2
)[
0
]
);
Wlc_ObjAddFanins
(
pNtk
,
Wlc_NtkObj
(
pNtk
,
iObj
),
vFanins
);
Wlc_ObjSetNameId
(
pNtk
,
iObj
,
NameId
);
}
...
...
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