Skip to content

Commit

Permalink
Units,SystemVerilog: update expected.tags for the fix 560735fa.
Browse files Browse the repository at this point in the history
Two 'FIXME' errors are fixed.
Add continuous assignments tests.
add test for identifiers '$' included
  • Loading branch information
hirooih committed Oct 27, 2020
1 parent 9a8c90a commit a275ebd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
7 changes: 5 additions & 2 deletions Units/parser-verilog.r/systemverilog-net-var.d/expected.tags
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,8 @@ e input.sv /^module delay_control #(d, e);$/;" c module:delay_control
rega input.sv /^ int rega, regb, regr;$/;" r module:delay_control
regb input.sv /^ int rega, regb, regr;$/;" r module:delay_control
regr input.sv /^ int rega, regb, regr;$/;" r module:delay_control
rega input.sv /^ #d rega = regb; \/\/ d is defined as a parameter FIXME$/;" r module:delay_control
regr input.sv /^ #regr regr = regr + 1; \/\/ delay is the value in regr FIXME$/;" r module:delay_control
delay_control_wire input.sv /^module delay_control_wire #(d, e);$/;" m
d input.sv /^module delay_control_wire #(d, e);$/;" c module:delay_control_wire
e input.sv /^module delay_control_wire #(d, e);$/;" c module:delay_control_wire
w$ire input.sv /^ wire w$ire, wire$; \/\/ '$' included$/;" n module:delay_control_wire
wire$ input.sv /^ wire w$ire, wire$; \/\/ '$' included$/;" n module:delay_control_wire
13 changes: 11 additions & 2 deletions Units/parser-verilog.r/systemverilog-net-var.d/input.sv
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,17 @@ module delay_control #(d, e);
int rega, regb, regr;
initial begin
#10 rega = regb;
#d rega = regb; // d is defined as a parameter FIXME
#d rega = regb; // d is defined as a parameter
#((d+e)/2) rega = regb; // delay is average of d and e
#regr regr = regr + 1; // delay is the value in regr FIXME
#regr regr = regr + 1; // delay is the value in regr
end
endmodule

// 10.3 Continuous assignments
module delay_control_wire #(d, e);
wire wirea #10 = wireb;
wire wireb #d = wireb;
wire wirec #((d+e)/2) = wireb;
wire wired #wirer = wirer + 1;
wire w$ire, wire$; // '$' included
endmodule

0 comments on commit a275ebd

Please sign in to comment.