From c22647714023daa340e4407fca36689db6e737ea Mon Sep 17 00:00:00 2001 From: tignear Date: Sat, 17 Oct 2026 09:23:18 +0900 Subject: [PATCH] feat(sv): know every system task and function IEEE 1800-2023 names Add $stacktrace (20.17.2), $global_clock (14.14), $inferred_clock and $inferred_disable (16.14.7), $sdf_annotate (32.9) and the optional names of Annex D to the catalog as unsupported, so a call of one is reported as unsupported by name instead of as an unknown name. Correct the catalog's clause numbers from 20.11 on to the 2023 numbering. --- .../celox-sv-analyzer/src/system_functions.rs | 62 ++++++++++++++----- .../systemverilog/system_functions.rs | 8 +++ docs/guide/systemverilog.md | 4 +- docs/ja/guide/systemverilog.md | 4 +- 4 files changed, 60 insertions(+), 18 deletions(-) diff --git a/crates/celox-sv-analyzer/src/system_functions.rs b/crates/celox-sv-analyzer/src/system_functions.rs index 4f675690537..11bdd0b0a9e 100644 --- a/crates/celox-sv-analyzer/src/system_functions.rs +++ b/crates/celox-sv-analyzer/src/system_functions.rs @@ -1,5 +1,6 @@ -//! The system tasks and functions Celox knows (IEEE 1800-2023 clauses 20 and -//! 21), and where the SystemVerilog frontend supports each one. +//! The system tasks and functions Celox knows (those IEEE 1800-2023 defines, +//! mostly in clauses 20 and 21, and the optional ones of its Annex D), and +//! where the SystemVerilog frontend supports each one. //! //! The analyzer checks each call against this catalog where it converts the //! call, with the context it converts it in ([`CallSite`]), so a name the @@ -49,7 +50,7 @@ pub enum SystemFunction { Onehot0, /// `$isunknown` (20.9). Isunknown, - /// `$urandom` (18.13.1, 20.15.2). + /// `$urandom` (18.13.1). Urandom, } @@ -416,7 +417,8 @@ const fn function(function: SystemFunction, min_args: usize, max_args: Option