Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sv2v
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
sv2v
Commits
5105ccbb
Commit
5105ccbb
authored
Oct 17, 2021
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use scoped errors in struct conversion
parent
c843efd5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
11 additions
and
0 deletions
+11
-0
src/Convert/Struct.hs
+0
-0
test/error/struct_extra_named_field.sv
+1
-0
test/error/struct_extra_unnamed_field.sv
+1
-0
test/error/struct_invalid_key.sv
+1
-0
test/error/struct_logic_bit.sv
+1
-0
test/error/struct_logic_part_range.sv
+1
-0
test/error/struct_logic_part_select.sv
+1
-0
test/error/struct_missing_field.sv
+1
-0
test/error/struct_non_integer.sv
+1
-0
test/error/struct_out_of_bounds.sv
+1
-0
test/error/struct_out_of_bounds_neg.sv
+1
-0
test/error/struct_unknown_field.sv
+1
-0
No files found.
src/Convert/Struct.hs
View file @
5105ccbb
This diff is collapsed.
Click to expand it.
test/error/struct_extra_named_field.sv
View file @
5105ccbb
// pattern: pattern '\{..x: 1,..y: 2.\} has extra named fields \["y"\] that are not in struct packed \{..logic x;.\}
// pattern: pattern '\{..x: 1,..y: 2.\} has extra named fields \["y"\] that are not in struct packed \{..logic x;.\}
// location: struct_extra_named_field.sv:4:5
module
top
;
module
top
;
struct
packed
{
struct
packed
{
logic
x
;
logic
x
;
...
...
test/error/struct_extra_unnamed_field.sv
View file @
5105ccbb
// pattern: pattern '\{..1,..2.\} doesn't have the same number of items as struct packed \{..logic x;.\}
// pattern: pattern '\{..1,..2.\} doesn't have the same number of items as struct packed \{..logic x;.\}
// location: struct_extra_unnamed_field.sv:4:5
module
top
;
module
top
;
struct
packed
{
struct
packed
{
logic
x
;
logic
x
;
...
...
test/error/struct_invalid_key.sv
View file @
5105ccbb
// pattern: invalid pattern key -1 is not a type, field name, or index
// pattern: invalid pattern key -1 is not a type, field name, or index
// location: struct_invalid_key.sv:4:5
module
top
;
module
top
;
struct
packed
{
struct
packed
{
logic
x
;
logic
x
;
...
...
test/error/struct_logic_bit.sv
View file @
5105ccbb
// pattern: illegal access to bit 0 of s\.x, which has type logic
// pattern: illegal access to bit 0 of s\.x, which has type logic
// location: struct_logic_bit.sv:7:13
module
top
;
module
top
;
struct
packed
{
struct
packed
{
logic
x
;
logic
x
;
...
...
test/error/struct_logic_part_range.sv
View file @
5105ccbb
// pattern: illegal access to range \[0:0\] of s\.x, which has type logic
// pattern: illegal access to range \[0:0\] of s\.x, which has type logic
// location: struct_logic_part_range.sv:7:13
module
top
;
module
top
;
struct
packed
{
struct
packed
{
logic
x
;
logic
x
;
...
...
test/error/struct_logic_part_select.sv
View file @
5105ccbb
// pattern: illegal access to range \[0\+:1\] of s\.x, which has type logic
// pattern: illegal access to range \[0\+:1\] of s\.x, which has type logic
// location: struct_logic_part_select.sv:7:13
module
top
;
module
top
;
struct
packed
{
struct
packed
{
logic
x
;
logic
x
;
...
...
test/error/struct_missing_field.sv
View file @
5105ccbb
// pattern: couldn't find field 'y' from struct definition struct packed \{..logic x;..logic y;.\} in struct pattern '\{..x: 1.\}
// pattern: couldn't find field 'y' from struct definition struct packed \{..logic x;..logic y;.\} in struct pattern '\{..x: 1.\}
// location: struct_missing_field.sv:4:5
module
top
;
module
top
;
struct
packed
{
struct
packed
{
logic
x
,
y
;
logic
x
,
y
;
...
...
test/error/struct_non_integer.sv
View file @
5105ccbb
// pattern: pattern index 1'bx is not an integer
// pattern: pattern index 1'bx is not an integer
// location: struct_non_integer.sv:4:5
module
top
;
module
top
;
struct
packed
{
struct
packed
{
logic
x
;
logic
x
;
...
...
test/error/struct_out_of_bounds.sv
View file @
5105ccbb
// pattern: pattern index 1 is out of bounds for struct packed \{..logic x;.\}
// pattern: pattern index 1 is out of bounds for struct packed \{..logic x;.\}
// location: struct_out_of_bounds.sv:4:5
module
top
;
module
top
;
struct
packed
{
struct
packed
{
logic
x
;
logic
x
;
...
...
test/error/struct_out_of_bounds_neg.sv
View file @
5105ccbb
// pattern: pattern index -1 is out of bounds for struct packed \{..logic x;.\}
// pattern: pattern index -1 is out of bounds for struct packed \{..logic x;.\}
// location: struct_out_of_bounds_neg.sv:4:5
module
top
;
module
top
;
struct
packed
{
struct
packed
{
logic
x
;
logic
x
;
...
...
test/error/struct_unknown_field.sv
View file @
5105ccbb
// pattern: field 'y' not found in struct packed \{..logic x;.\}
// pattern: field 'y' not found in struct packed \{..logic x;.\}
// location: struct_unknown_field.sv:8:5
module
top
;
module
top
;
struct
packed
{
struct
packed
{
logic
x
;
logic
x
;
...
...
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