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
69827a5a
Commit
69827a5a
authored
Sep 17, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improvements to word-level Verilog parser.
parent
ffd77ffe
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
src/base/wlc/wlcReadVer.c
+3
-2
src/base/wlc/wlcWriteVer.c
+1
-1
No files found.
src/base/wlc/wlcReadVer.c
View file @
69827a5a
...
...
@@ -705,8 +705,9 @@ int Wlc_PrsDerive( Wlc_Prs_t * p )
if
(
Wlc_PrsStrCmp
(
pName
,
"table"
)
)
{
// THIS IS A HACK TO DETECT tables
int
Width1
,
Width2
;
int
v
,
b
,
Value
,
nBits
,
nInts
,
*
pTable
;
int
Width1
=
-
1
,
Width2
=
-
1
;
int
v
,
b
,
Value
,
nBits
,
nInts
;
unsigned
*
pTable
;
Vec_Int_t
*
vValues
=
Vec_IntAlloc
(
256
);
Wlc_PrsForEachLineStart
(
p
,
pStart
,
i
,
i
+
1
)
{
...
...
src/base/wlc/wlcWriteVer.c
View file @
69827a5a
...
...
@@ -55,7 +55,7 @@ void Wlc_WriteTableOne( FILE * pFile, int nFans, int nOuts, word * pTable, int I
fprintf
(
pFile
,
" begin
\n
"
);
fprintf
(
pFile
,
" case (ind)
\n
"
);
for
(
m
=
0
;
m
<
nMints
;
m
++
)
fprintf
(
pFile
,
" %d
\'
h%x: val = %d
\'
h%x;
\n
"
,
nFans
,
m
,
nOuts
,
(
pTable
[(
nOuts
*
m
)
>>
6
]
>>
((
nOuts
*
m
)
&
63
))
&
Abc_Tt6Mask
(
nOuts
)
);
fprintf
(
pFile
,
" %d
\'
h%x: val = %d
\'
h%x;
\n
"
,
nFans
,
m
,
nOuts
,
(
unsigned
)((
pTable
[(
nOuts
*
m
)
>>
6
]
>>
((
nOuts
*
m
)
&
63
))
&
Abc_Tt6Mask
(
nOuts
)
)
);
fprintf
(
pFile
,
" endcase
\n
"
);
fprintf
(
pFile
,
" end
\n
"
);
fprintf
(
pFile
,
"endmodule
\n
"
);
...
...
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