Skip to content

v1.88

Latest

Choose a tag to compare

@alaindargelas alaindargelas released this 16 Nov 19:47
· 8 commits to master since this release
51a0770

What's Changed

  • Bump version to 1.87 by @alain-rs in #4150
  • clang-format CompileHelper.cpp by @alain-rs in #4151
  • Bump UHDM: element select on packed-array-typed constants by @alain-rs in #4152
  • Elab: resolve >64-bit struct/array parameter values end to end by @alain-rs in #4153
  • $bits of a struct with type-parameter members must use the instance's types by @alain-rs in #4154
  • NumUtils: clamp field size to avoid size_t underflow / length_error in toBinary by @EylonKrause in #4155
  • Keep the packed dimension on a type-parameter-typed member by @alain-rs in #4156
  • Cache: catch kj::Exception on read so a corrupt cache recompiles instead of aborting by @EylonKrause in #4157
  • Do not fold $bits() of a variable typed by an unbound type parameter by @alain-rs in #4158
  • Bump UHDM: element-select on multi-range packed arrays by @alain-rs in #4159
  • Keep module-scope typedef packed dims symbolic at definition by @alain-rs in #4160
  • Bump UHDM: ExprEval struct-local member writes reach the whole value by @alain-rs in #4161
  • Resolve unqualified same-package function calls in compile-time eval (fpnew UH0724) by @alain-rs in #4162
  • getValue: re-attach the declared typespec to ascending-range constants (fpnew CPK mirror) by @alain-rs in #4163
  • bindTypedefs_: bind same-scope typedef chains base-first by @alaindargelas in #4164
  • Bump UHDM: enum-const typing in ExprEval concat folds by @alaindargelas in #4165
  • Bump UHDM: fold packed-2D localparam element-selects and typed concats by @alaindargelas in #4166
  • A local typedef shadows a wildcard-imported package type by @alaindargelas in #4167
  • Size cast PARAM'(expr) must use the parameter VALUE as width, not its type by @alaindargelas in #4168
  • Expand ranged enum members name[hi:lo] = base into indexed constants by @alaindargelas in #4169
  • Parse inside {..} at relational precedence; size $bits of a selected member correctly by @alaindargelas in #4170
  • Bump UHDM to #1153 (64-bit size cast folded to zero) + tests/CastSize64 by @alaindargelas in #4171
  • Bump UHDM to #1154+#1155 (nested function calls with same-named formals recursed until SIGSEGV) + tests/NestedFuncSameFormal + clang-format by @alaindargelas in #4172
  • Streaming operator: a parameter-named slice size {<<W{x}} is a constant expression, not a type + tests/StreamSliceParam by @alaindargelas in #4173
  • compileTypespec: keep the outer packed dimension of a package-qualified logic/bit typedef element by @alaindargelas in #4174
  • Enum members wider than 64 bits get their value; an attribute instance no longer drops an always block by @alaindargelas in #4175
  • Bump UHDM: fold casts of struct assignment patterns and parameter-width size casts by @alaindargelas in #4176
  • $bits(arr[k].member): no spurious unresolved-hierarchical-reference error by @alaindargelas in #4177
  • Bump UHDM: keep a func_call whose result still names the function's formals by @alaindargelas in #4178
  • Preprocessor: three fixes found on chipsalliance/caliptra-rtl by @alaindargelas in #4179
  • Elaboration: a parameter default that references a complex-valued override by @alaindargelas in #4180
  • Compile: a size cast whose casting type is a struct-parameter member (pt.BB'(x)) by @alaindargelas in #4181
  • Bump UHDM: wide-constant bitwise ops, bitwise XOR, wide $clog2 by @alaindargelas in #4182
  • Give sibling unnamed generate blocks distinct names by @alaindargelas in #4183
  • Keep an assignment pattern under a cast an assignment pattern by @alaindargelas in #4184
  • A packed assignment pattern wider than its element width folded to garbage by @alaindargelas in #4185
  • An assignment pattern field folded against the parameter DEFAULT by @alaindargelas in #4186
  • A concatenation as a positional port actual absorbed the next ports by @alaindargelas in #4187
  • A 2-D unpacked parameter default expanded over the outer dimension only by @alaindargelas in #4188
  • A var port with an unpacked dimension lost the dimension by @alaindargelas in #4191
  • $bits of a type parameter as a child's override actual never folded by @alaindargelas in #4192
  • A packed array of enums initialised by an assignment pattern read all-zero, one element per bit by @alaindargelas in #4193
  • Identifiers longer than 1024 characters were rejected; the cap is now 8192 by @alaindargelas in #4194
  • A size cast whose size is a member of a struct-valued parameter was compiled as a cast to the member's type inside generate blocks and on elaborated instances by @alaindargelas in #4195
  • An else block wrapping a nested if-generate elaborated the nested if's first arm without evaluating its condition, and lost the wrapping block's own level by @alaindargelas in #4196
  • A struct assignment pattern passed as a child parameter override was folded into the child's type-parameter default logic (1 bit) once every member became foldable by @alaindargelas in #4197
  • $bits of an anonymous packed vector type ($bits(logic [31:0])) folded to 1 by @alaindargelas in #4198
  • Test: part-select of a struct-parameter field in a generate condition (UHDM#1160) by @alaindargelas in #4200
  • bindTypespec: the innermost type-parameter binding wins, not the outermost by @alaindargelas in #4201
  • compileParameterDeclaration: fold a concatenation assigned to a PACKED package parameter by @alaindargelas in #4202
  • CompileModule: a bare type item in a parameter port list is a type parameter by @alaindargelas in #4203
  • CompileStmt: a non-ANSI function's local arrays keep their unpacked dimension by @alaindargelas in #4204
  • NetlistElaboration: an untyped parameter's sized override keeps the literal's size by @alaindargelas in #4205
  • UHDM: a function-local UNPACKED array keeps one value per element -- st[0] ^ st[1] folded to 1 by @alaindargelas in #4206
  • DesignComponent: a parameter the scope declares itself wins over a same-named wildcard import (LRM 26.3) by @alaindargelas in #4207
  • CompileHelper/CompileType: an enum member whose value is a SIZE CAST evaluated to 0 by @alaindargelas in #4208
  • CompileHelper: a port of a GROUPED ANSI list (direction written once for several typed declarations) lost its packed dimension by @alaindargelas in #4209
  • CompileExpression: [ name ] is an associative dimension only when the name is a type -- a $unit localparam from another file made logic x [W] an associative array by @alaindargelas in #4210
  • CompileHelper: a TYPEDEF-typed port of a GROUPED ANSI list (direction written once) elaborated as one element -- RISCV_ISF_Common [DECODE_WIDTH-1:0] isf was 32 bits instead of 64 by @alaindargelas in #4211
  • CompileStmt: a non-ANSI function's local INITIALIZERS were dropped (RSD FP32DivSqrter's SRT table), and erasing them crashed the writer by @alaindargelas in #4212
  • CompileExpression: a generate-for bounded by a $unit localparam from ANOTHER file elaborated to ZERO scopes -- the loop silently vanished (RSD) by @alaindargelas in #4213
  • tests: CompoundAssignRhsAlias + UHDM bump -- a constant function's compound assignment changed its RHS local (#4214) by @alaindargelas in #4215
  • Multidimensional parameter with a constant-function-call RHS stayed unreduced (stored UINT:1) -- retry reduced like the hier_path case by @alaindargelas in #4216
  • A port or variable declared var [W-1:0] x was rejected as an unsupported data type (UH0705) and left without a typespec by @alaindargelas in #4217
  • An instance array whose SIZE form [N] is an EXPRESSION was sized by the expression's FIRST OPERAND -- I m[2*2]() elaborated two elements by @alaindargelas in #4219
  • Bump UHDM (constant-fold fixes: wildcard digits in casts/concats, base-type-less enum width, element selection of an as-written concatenation) with tests by @alaindargelas in #4220
  • A port actual that selects an interface member (.i_push(receiver_if.valid[i])) lost the interface and the index: the elaborated high_conn was the member variable itself by @alaindargelas in #4218
  • Bump UHDM: a constant function's if / return over a struct FORMAL now folds, via a BOUNDED retry (tnoc's packet serializer took the wrong generate arm) by @alaindargelas in #4221
  • A cast to a TYPE PARAMETER took the parameter's DEFAULT type instead of the type bound on the instance -- sid_t'(NumPorts - 1) under parameter type sid_t = logic bound to 3 bits elaborated to a 1-bit constant (CVA6 HPDcache request ids) by @alaindargelas in #4222
  • $bits() of a struct handed down as a TYPE PARAMETER measured a member typed by an ANCESTOR's type parameter at its default -- HPDcache's directory entries became 5-bit slices and the cache never hit by @alaindargelas in #4223
  • Every instance of a comma-separated instance list was bound to the FIRST instance's port actuals by @alaindargelas in #4224
  • UHDM bump: a size cast whose width is a bare PARAMETER name (dev_addr_width_gp'('h0_b00?)) folded a wildcard literal to an integer (chipsalliance/UHDM#1168) -- black-parrot's clint decoded every PLIC address as a miss by @alaindargelas in #4225
  • UHDM bump: a reduction, logical or inside operator folds to ONE bit (chipsalliance/UHDM#1169) -- {{XLEN-2{1'b1}}, |EXTENSION_C, 1'b0} no longer folds to a 95-bit constant by @alaindargelas in #4226
  • UHDM bump: a conditional operator whose selected arm is a SIZED constant keeps that width (chipsalliance/UHDM#1170) -- {1'b1, (OPT_MPY > 0) ? 1'b1 : 1'b0, ...} no longer folds each ternary to 64 bits by @alaindargelas in #4227
  • A bare generate ... endgenerate region compiled only its FIRST item, so every item after it was dropped from the model -- ZipCPU's zipmmu lost the always block driving its TLB priority encoder, with no error reported by @alaindargelas in #4228
  • An unpacked-array parameter whose element is a packed struct, defaulted with '{default: }, segfaulted the elaborator by @alaindargelas in #4229
  • A sized literal's signedness is its OWN, not the parameter type's: parameter int P = 2'b11 folded to -1 by @alaindargelas in #4230
  • A PACKAGE-qualified parameter's element select folded to a BIT: getParamTypespec never looked in the package, so pkg::TABLE[k] on a logic [15:0][3:0] table had no typespec to size the element by by @alaindargelas in #4231
  • UHDM bump: dimension-indexed $left/$right/$high/$low, and element selects of HEX:/UINT:-valued packed tables (chipsalliance/UHDM #1172, #1173, #1174) by @alaindargelas in #4232
  • $bits of an element select on a bare unpacked array sized the WHOLE declared array: $bits(arr[1]) on bit [3:0][7:0] arr [1:10] folded to 320 by @alaindargelas in #4233
  • A compound assignment used as an EXPRESSION lost its operator: b = (a -= 1) compiled as b = (a = 1) by @alaindargelas in #4234
  • A time literal was never scaled to the module's time unit, and its ns/us factors were swapped: under timescale 100ps/10ps, 1ns read 1000000 and 1us 1000 by @alaindargelas in #4236
  • A let call was inlined with its FORMALS UNBOUND: let op(x, y, z) = |((x | y) & z) reached the design as references to x, y and z by @alaindargelas in #4237
  • A real literal with digit separators lost its exponent: 236.123_763_e-12 was stored as 236.123 by @alaindargelas in #4235
  • An ANONYMOUS enum's ranged member was read as a value: enum {start=10, step[10]} e made one constant step = 10 instead of step0..step9, and an implicit member after an explicit one restarted at 1 by @alaindargelas in #4238
  • An INDEX key of an array assignment pattern was compiled as a TYPE: '{1: v, default: 0} lost the 1 by @alaindargelas in #4241
  • struct packed signed lost its signing: record it as vpiSigned on the struct_typespec (UHDM bump to #1175) by @alaindargelas in #4240
  • A struct member with a rand / randc qualifier was DROPPED: struct { rand bit i; randc integer b[9:0]; } had no members and measured 1 bit by @alaindargelas in #4242
  • A select applied to a concatenation was DROPPED: {b, c}[9:6] compiled as the bare {b, c} by @alaindargelas in #4239
  • UHDM bump: a multi-index select on a packed parameter TABLE held as one flat concatenation folded to nothing (chipsalliance/UHDM #1176), with a test by @alaindargelas in #4243
  • UHDM bump: the flat-table select fold leaves a select path with a RANGE tail alone (chipsalliance/UHDM #1177), and a replication count above 1000 is no longer clamped (#1171), with a test by @alaindargelas in #4244
  • UHDM bump: a constant function returning a STRUCT built with an assignment pattern over its formals now folds to the constant it denotes (chipsalliance/UHDM #1178), with a test by @alaindargelas in #4246
  • '{default: v} over a MULTI-RANGE packed logic parameter (logic [NumDim-1:0][31:0] RepWidths = '{default: RepWidth}) was filled PER BIT, so any nonzero default folded to ALL ONES -- iDMA's nd midend read every repetition width as 2^32-1 by @alaindargelas in #4245
  • A POSITIONAL type-parameter override (cdc_2phase #(logic [31:0]) i_cdc (.*)) was never bound: the ordered-override path evaluated the data type as a VALUE, which fails silently, so the instance kept the parameter's DEFAULT type and every port declared over it was elaborated at the default width by @alaindargelas in #4247
  • $bits of a signal declared over a TYPE PARAMETER was sized in the DEFINITION (default logic), so a module-level localparam cfg_t Cfg = f($bits(port.member), ...) never folded and every width written over Cfg.* collapsed to one bit (cheshire apb_uart, reg_uart_wrap) by @alaindargelas in #4248
  • Fold constant part-selects of parameters through the declared range by @alaindargelas in #4249
  • Nested generate-for bounded by $bits(type parameter) ran zero iterations by @alaindargelas in #4250
  • Preprocessor: a reconvergent macro expansion is not a recursive macro (PP0115) by @alaindargelas in #4251
  • Preprocessor: a line comment that runs to EOF is still a comment by @alaindargelas in #4252
  • Fold a part-select of a function local through its declared range by @alaindargelas in #4254
  • Bit-select of a struct-pattern parameter selects a bit, not a member by @alaindargelas in #4253
  • Size a C-style unpacked dimension from its folded constant by @alaindargelas in #4255
  • Keep an instance-array member's port actual whole by @alaindargelas in #4256
  • Bind a call to a static method of a class by @alaindargelas in #4257
  • Compile tagged unions and pattern matching by @alaindargelas in #4258
  • Keep port actuals of an instance with a #N parameter override by @alaindargelas in #4259
  • Give a function local the lifetime of its subroutine by @alaindargelas in #4260
  • Keep range and sign of a signed implicit-type subroutine port by @alaindargelas in #4261
  • Emit vpiIffOp for logical equivalence <-> by @alaindargelas in #4262
  • Compile every declarator of a for-loop variable declaration by @alaindargelas in #4263
  • Bump version to 1.88 by @alaindargelas in #4264

Full Changelog: v1.87...v1.88