TODO §45 (docs/features/small-items-4). Closes topo §2.9-17, 29, 30 and
adds the delay-list bar to §2.9-22.
45.1 `settings::rules` records every dropped `lucisv.lint.select`/`ignore`
name as `lucisv.lint.<setting>: unknown rule: <name>`; `apply_settings`
logs what the previous settings value did not already say — once per
(setting, name), re-armed by a changed list.
45.2 `walk::collect_files` takes a `&mut dyn FnMut(Warning)` sink: an
unreadable directory, an unreadable `.gitignore` and a dangling source
link are warned about and the walk continues; the CLI prints
`warning: <path>: <message>` on stderr before the report with the exit
code unchanged, the server logs once per scan through `report_scope`.
45.3 `parse_expr_or_type` accepts a `struct`/`union`/`enum` head as a
type argument, so `m #(.T(struct packed { logic a; })) u ();` parses and
`instantiation_plan` emits a one-line `parameter type` aggregate default.
45.4 Comment slots for `#(1:2:3)` and gate delay lists
(`MinTypMaxComments`, `DelayValue`, `ContAssign`/`GateInstantiation`/
`GateInstance` slots); `EXPECTED_RTL_GAPS` 374 → 419 at zero failures.
Review rework (QA's MEDIUM): a line comment after a gate instance's `,`
now ends the line, the next instance one level in.
Byte-identity vs 0.43.0: 0 of 820 corpus files and 0 opentitan outcomes
differ.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
122 lines
3.2 KiB
Plaintext
122 lines
3.2 KiB
Plaintext
# TODO §38.2 — a net delay is printed on the side of the data type it was
|
|
# written on. IEEE 1800 §6.7 puts `delay3` after the type; the rest of the
|
|
# corpus puts it before. Neither spelling is normalised into the other.
|
|
# docs/features/parser-skips/README.md
|
|
module m;
|
|
wire #5 before_the_type;
|
|
wire [31:0] #0.1 after_the_type = y;
|
|
endmodule
|
|
----
|
|
module m;
|
|
wire #5 before_the_type;
|
|
wire [31:0] #0.1 after_the_type = y;
|
|
endmodule
|
|
====
|
|
# after a packed dimension, after a plain `logic`-typed net, and after a
|
|
# signing keyword — with the min:typ:max spelling of the delay itself
|
|
module m;
|
|
wire [7:0] #1 a;
|
|
wire logic #2 b;
|
|
wire signed [7:0] #(1:2:3) c;
|
|
wire #(1:2:3) signed [7:0] d;
|
|
endmodule
|
|
----
|
|
module m;
|
|
wire [7:0] #1 a;
|
|
wire logic #2 b;
|
|
wire signed [7:0] #(1:2:3) c;
|
|
wire #(1:2:3) signed [7:0] d;
|
|
endmodule
|
|
====
|
|
# the real lines: hw/vendor/pulp_riscv_dbg/tb/unused/SimDTM.sv:38-41
|
|
# (opentitan, read-only there), the §11 skip this item closes
|
|
module SimDTM (
|
|
input clk,
|
|
output [31:0] exit
|
|
);
|
|
|
|
bit r_reset;
|
|
|
|
wire #0.1 __debug_req_ready = debug_req_ready;
|
|
wire #0.1 __debug_resp_valid = debug_resp_valid;
|
|
wire [31:0] #0.1 __debug_resp_bits_resp = {30'b0, debug_resp_bits_resp};
|
|
wire [31:0] #0.1 __debug_resp_bits_data = debug_resp_bits_data;
|
|
|
|
endmodule
|
|
----
|
|
module SimDTM (input clk, output [31:0] exit);
|
|
bit r_reset;
|
|
|
|
wire #0.1 __debug_req_ready = debug_req_ready;
|
|
wire #0.1 __debug_resp_valid = debug_resp_valid;
|
|
wire [31:0] #0.1 __debug_resp_bits_resp = {30'b0, debug_resp_bits_resp};
|
|
wire [31:0] #0.1 __debug_resp_bits_data = debug_resp_bits_data;
|
|
endmodule
|
|
====
|
|
# a comment written directly in front of the `#` is the delay's own —
|
|
# `NetDelay::before_hash`, TODO §43.2. It was the `#SKIP` §38 recorded and
|
|
# `verify.rs` refused the file for; the slot prints it back where it was
|
|
# written, on either side of the data type.
|
|
module m;
|
|
wire /* c */ #5 x;
|
|
wire [7:0] /* d */ #1 z;
|
|
wire [3:0] /* one */ /* two */ #3 w;
|
|
endmodule
|
|
----
|
|
module m;
|
|
wire /* c */ #5 x;
|
|
wire [7:0] /* d */ #1 z;
|
|
wire [3:0] /* one */ /* two */ #3 w;
|
|
endmodule
|
|
====
|
|
# the delay's other gap, between the `#` and the value: `after_hash`. Both
|
|
# slots at once on one declaration, since the fuzzer asks for both
|
|
module m;
|
|
wire # /* why */ 5 x;
|
|
wire [7:0] /* a */ # /* b */ 1 z = q;
|
|
endmodule
|
|
----
|
|
module m;
|
|
wire # /* why */ 5 x;
|
|
wire [7:0] /* a */ # /* b */ 1 z = q;
|
|
endmodule
|
|
====
|
|
# a line comment in the same slot runs to end of line, so the `#` cannot
|
|
# follow it: it starts the next one, the way the `wire #5 /* after */` case
|
|
# below breaks before its declarator
|
|
module m;
|
|
wire // why the delay
|
|
#2 y;
|
|
endmodule
|
|
----
|
|
module m;
|
|
wire // why the delay
|
|
#2 y;
|
|
endmodule
|
|
====
|
|
# the other three gaps around a delay do have slots and round-trip
|
|
module m;
|
|
(* keep *) wire [3:0] #2 k = j;
|
|
wire #5 /* after */ x;
|
|
endmodule
|
|
----
|
|
module m;
|
|
(* keep *)
|
|
wire [3:0] #2 k = j;
|
|
wire #5 /* after */
|
|
x;
|
|
endmodule
|
|
====
|
|
# a line comment after a gate instance's comma ends the line: the next
|
|
# instance continues one level in (§45's QA; the module-instantiation
|
|
# printer already did this)
|
|
module m;
|
|
and #(2, 3) g0 (y, a), // p
|
|
g1 (z, b);
|
|
endmodule
|
|
----
|
|
module m;
|
|
and #(2, 3) g0 (y, a), // p
|
|
g1 (z, b);
|
|
endmodule
|