Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
libverilog-perl
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debian Perl Group
modules
packages
libverilog-perl
Commits
ee4e38c4
Commit
ee4e38c4
authored
13 years ago
by
Wilson Snyder
Browse files
Options
Downloads
Patches
Plain Diff
Fix c style var array declarations.
parent
760dafe8
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
Changes
+2
-0
2 additions, 0 deletions
Changes
Parser/VParseBison.y
+1
-1
1 addition, 1 deletion
Parser/VParseBison.y
t/35_sigparser.out
+2
-1
2 additions, 1 deletion
t/35_sigparser.out
verilog/parser_sv.v
+2
-2
2 additions, 2 deletions
verilog/parser_sv.v
with
7 additions
and
4 deletions
Changes
+
2
−
0
View file @
ee4e38c4
...
...
@@ -7,6 +7,8 @@ indicates the contributor was also the author of the fix; Thanks!
*** Add vhier --forest and --instance. [by John Busco]
**** Fix c style var array declarations. [by Jack Cummings]
* Verilog::Language 3.313 2012/12/14
...
...
This diff is collapsed.
Click to expand it.
Parser/VParseBison.y
+
1
−
1
View file @
ee4e38c4
...
...
@@ -1804,7 +1804,7 @@ netSigList: // IEEE: list_of_port_identifiers
netSig: // IEEE: net_decl_assignment - one element from list_of_port_identifiers
netId sigAttrListE { VARDONE($<fl>1, $1, "", ""); }
| netId sigAttrListE '=' expr { VARDONE($<fl>1, $1, "", $4); }
| netId
rangeList
sigAttrListE { VARDONE($<fl>1, $1, $2, ""); }
| netId
variable_dimension
sigAttrListE { VARDONE($<fl>1, $1, $2, ""); }
;
netId<str>:
...
...
This diff is collapsed.
Click to expand it.
t/35_sigparser.out
+
2
−
1
View file @
ee4e38c4
...
...
@@ -503,7 +503,7 @@ verilog/parser_sv.v:011: INTERFACE 'interface' 'itf'
verilog/parser_sv.v:011: VAR 'parameter' 'num_of_cli' 'interface' '' '' '' '0'
verilog/parser_sv.v:012: VAR 'var' 'blabla' 'interface' '' 'logic' '' ''
verilog/parser_sv.v:013: VAR 'var' 'addr' 'interface' '' 'logic [7:0]' '' ''
verilog/parser_sv.v:013: VAR 'var' 'data' 'interface' '' 'logic [7:0]' '' ''
verilog/parser_sv.v:013: VAR 'var' 'data' 'interface' '' 'logic [7:0]' '
[9]
' ''
verilog/parser_sv.v:014: MODPORT 'modport' 'Master'
verilog/parser_sv.v:014: VAR 'port' 'data' 'modport' '' '' '' 'data'
verilog/parser_sv.v:014: PORT 'data' 'modport' 'input' '' '' '1'
...
...
@@ -533,6 +533,7 @@ verilog/parser_sv.v:022: PORT 'd_out' 'module' 'output' 'logic' '' '6'
verilog/parser_sv.v:025: IMPORT 'mypackage' '*'
verilog/parser_sv.v:027: VAR 'var' 'd_int' 'module' '' 'logic' '' ''
verilog/parser_sv.v:028: VAR 'var' 'data_' 'module' '' 'logic [7:0]' '' ''
verilog/parser_sv.v:028: VAR 'var' 'bork' 'module' '' 'logic [7:0]' '[2]' ''
verilog/parser_sv.v:029: CONTASSIGN 'assign' 'd_int' 'd_in+pkg_data'
verilog/parser_sv.v:031: CONTASSIGN 'assign' 'modported_int.data' 'data_'
verilog/parser_sv.v:046: ENDMODULE 'endmodule'
...
...
This diff is collapsed.
Click to expand it.
verilog/parser_sv.v
+
2
−
2
View file @
ee4e38c4
...
...
@@ -10,7 +10,7 @@ endmodule : times
interface
itf
#(
parameter
num_of_cli
=
0
);
logic
blabla
;
logic
[
7
:
0
]
addr
,
data
;
logic
[
7
:
0
]
addr
,
data
[
9
]
;
modport
Master
(
input
data
,
date_delayed
,
output
addr
);
endinterface
:
itf
...
...
@@ -25,7 +25,7 @@ module test (
import
mypackage
::*
;
logic
d_int
;
logic
[
7
:
0
]
data_
;
logic
[
7
:
0
]
data_
,
bork
[
2
]
;
assign
d_int
=
d_in
+
pkg_data
;
assign
modported_int
.
data
=
data_
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment