• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nickg / nvc / 24179884388
92%

Build:
DEFAULT BRANCH: master
Ran 09 Apr 2026 08:29AM UTC
Jobs 1
Files 101
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Apr 2026 08:14AM UTC coverage: 92.338% (+0.002%) from 92.336%
24179884388

push

github

web-flow
 Verilog: support constant user functions and if-generate elaboration (#1483)

Verilog: support constant user functions and if-generate elaboration

Three related fixes for Verilog generate block elaboration:

1. vlog-sem.c: Mark user function calls as constant expressions
   (TM_CONST) when all arguments are constant, per IEEE 1800-2023
   section 11.2.1.  This allows constant functions to be used in
   contexts that require constant expressions such as localparam
   initializers and part-select bounds.

2. elab.c: Add JIT-based evaluation of Verilog if-generate conditions
   at elaboration time, mirroring the existing for-generate mechanism.
   Previously if-generate blocks that survived simplification (e.g.
   conditions depending on constant function results) would error with
   "if-generate construct could not be evaluated at elaboration time".

3. vlog-lower.c: Lower local variable declarations in named begin/end
   blocks inside functions and tasks.  Variables declared inside a
   named block (e.g. "begin : name integer i; ...") were not being
   created as MIR variables, causing a fatal "missing variable" error
   when the function was called.

Co-authored-by: Rafał Hibner <rafal.hibner@secom.com.pl>

23 of 24 new or added lines in 3 files covered. (95.83%)

2 existing lines in 1 file now uncovered.

76335 of 82669 relevant lines covered (92.34%)

602039.58 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
91.25
0.19% src/elab.c

Coverage Regressions

Lines Coverage ∆ File
2
88.71
-0.41% src/hash.c
Jobs
ID Job ID Ran Files Coverage
1 24179884388.1 09 Apr 2026 08:29AM UTC 101
92.34
GitHub Action Run
Source Files on build 24179884388
  • Tree
  • List 101
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e00449bb on github
  • Prev Build on master (#24179507313)
  • Next Build on master (#24257540734)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc