From 883befed556beb5f4e042388950ceec6cb79756f Mon Sep 17 00:00:00 2001 From: tignear Date: Sat, 24 Oct 2026 19:41:37 +0900 Subject: [PATCH 1/9] feat(runtime)!: run program kernels in the reactive region set A kernel of a program instance names the status slot of the instance's first kernel (ProcessSlots::program). Such kernels start, wake and resume in the Reactive region, a #0 resumes them in the Re-Inactive region, and their nonblocking updates take effect in the Re-NBA region (IEEE 1800-2023 4.4.2.6-4.4.2.8, 24.3.1). The reactive region set runs once the active region set is empty and returns to the active region set for the design activity it creates (4.5). ProcessStatus::Exit ends every kernel of the calling program instance (24.7), and the implicit $finish fires once every program kernel has ended (24.3). Program kernels run on the reference scheduler. Designs without programs schedule as before. BREAKING CHANGE: ProcessSlots gains `program`, ProcessStatus gains `Exit`, ProcessState and ScheduleKey gain the reactive, re-inactive and Re-NBA queues, and the native image container format is now 35. Change-Id: I6c899de1f0d5e8ca722733a53655ee80e3c988b8 --- crates/celox-design/src/lib.rs | 13 ++ crates/celox-frontend-core/src/process.rs | 7 + crates/celox-frontend-core/src/sdk.rs | 1 + crates/celox-frontend-sv/src/lowering.rs | 1 + crates/celox-runtime/src/schedule.rs | 9 ++ crates/celox-runtime/src/simulation/mod.rs | 2 +- crates/celox-runtime/src/simulation/nba.rs | 144 +++++++++++++----- .../celox-runtime/src/simulation/persist.rs | 6 + .../celox-runtime/src/simulation/process.rs | 113 ++++++++++++-- crates/celox-runtime/src/simulation/round.rs | 13 +- crates/celox-runtime/src/simulation/time.rs | 42 ++++- crates/celox-runtime/src/simulation/wait.rs | 40 ++++- crates/celox-runtime/src/timing.rs | 14 ++ crates/celox/src/backend/native/image_file.rs | 2 +- crates/celox/src/scheduler.rs | 2 + crates/celox/src/simulator/state_file.rs | 1 + 16 files changed, 347 insertions(+), 63 deletions(-) diff --git a/crates/celox-design/src/lib.rs b/crates/celox-design/src/lib.rs index 5e45cf13916..bdedcd2e93b 100644 --- a/crates/celox-design/src/lib.rs +++ b/crates/celox-design/src/lib.rs @@ -291,6 +291,9 @@ pub enum ProcessStatus { /// A synchronous host operation. The delay slot holds its family and /// local site index; the same process resumes after the host responds. HostRequest, + /// A program kernel called `$exit` (IEEE 1800-2023 24.7): it and every + /// other kernel of its program instance ([`ProcessSlots::program`]) end. + Exit, } impl ProcessStatus { @@ -308,6 +311,7 @@ impl ProcessStatus { Self::Yield => 8, Self::Stop => 9, Self::HostRequest => 10, + Self::Exit => 11, } } @@ -323,6 +327,7 @@ impl ProcessStatus { 8 => Some(Self::Yield), 9 => Some(Self::Stop), 10 => Some(Self::HostRequest), + 11 => Some(Self::Exit), _ => None, } } @@ -465,6 +470,12 @@ pub struct ProcessSlots { /// Every delay the kernel suspends for is a constant of at least one /// time unit. pub const_delays: bool, + /// For an `initial` procedure of a program instance (IEEE 1800-2023 + /// 24.3), the status slot of that instance's first such kernel, which + /// every kernel of the instance names: the kernel runs in the reactive + /// region set (24.3.1), and `$exit` and the end of the instance's + /// kernels act on them together (24.7). `None` for design code. + pub program: Option, pub resume: A, pub status: A, pub delay: A, @@ -476,6 +487,7 @@ impl ProcessSlots { is_initializer: self.is_initializer, requires_timed_simulation: self.requires_timed_simulation, const_delays: self.const_delays, + program: self.program.map(&mut map), resume: map(self.resume), status: map(self.status), delay: map(self.delay), @@ -1791,6 +1803,7 @@ mod tests { ProcessStatus::from_code(10), Some(ProcessStatus::HostRequest) ); + assert_eq!(ProcessStatus::from_code(11), Some(ProcessStatus::Exit)); } #[test] diff --git a/crates/celox-frontend-core/src/process.rs b/crates/celox-frontend-core/src/process.rs index 1931a26203b..b141ad8d532 100644 --- a/crates/celox-frontend-core/src/process.rs +++ b/crates/celox-frontend-core/src/process.rs @@ -368,6 +368,13 @@ impl ProcessKernelBuilder { self.end(ProcessStatus::Finish); } + /// End the kernel and the other kernels of its program instance + /// (`$exit`, IEEE 1800-2023 24.7). No block is open afterwards. + pub fn exit(&mut self) { + self.wait_site = None; + self.end(ProcessStatus::Exit); + } + /// Complete the kernel. If a block is still open, the process ends there. pub fn build(mut self) -> ExecutionUnit { if self.builder.has_open_block() { diff --git a/crates/celox-frontend-core/src/sdk.rs b/crates/celox-frontend-core/src/sdk.rs index f74172ab2a4..18232d0b2a4 100644 --- a/crates/celox-frontend-core/src/sdk.rs +++ b/crates/celox-frontend-core/src/sdk.rs @@ -1732,6 +1732,7 @@ fn lower_processes( is_initializer: false, requires_timed_simulation: false, const_delays: false, + program: None, resume: lowering .hidden .declare(name("resume"), PROCESS_RESUME_WIDTH, false), diff --git a/crates/celox-frontend-sv/src/lowering.rs b/crates/celox-frontend-sv/src/lowering.rs index 4b662c6bf0d..1a9cccf8986 100644 --- a/crates/celox-frontend-sv/src/lowering.rs +++ b/crates/celox-frontend-sv/src/lowering.rs @@ -4451,6 +4451,7 @@ fn lower_initial_processes( is_initializer: process.is_initializer(), requires_timed_simulation: process.is_scheduled_edge(), const_delays: false, + program: None, resume: declare("resume", PROCESS_RESUME_WIDTH), status: declare("status", PROCESS_STATUS_WIDTH), delay: declare("delay", PROCESS_DELAY_WIDTH), diff --git a/crates/celox-runtime/src/schedule.rs b/crates/celox-runtime/src/schedule.rs index b9a0e39311b..7585cab6a7e 100644 --- a/crates/celox-runtime/src/schedule.rs +++ b/crates/celox-runtime/src/schedule.rs @@ -21,6 +21,8 @@ pub struct ResolvedSchedule { pub(crate) signal_to_id: FxHashMap, pub(crate) signal_index_by_id: Vec, pub(crate) processes: Vec, + /// The kernels of program instances, in declaration order. + pub(crate) program_processes: Vec, /// Counted signals and the domains their counters trigger. pub(crate) counted: Vec, pub(crate) counted_by_offset: FxHashMap, @@ -190,6 +192,7 @@ impl ResolvedSchedule { .iter() .map(|process| ProcessRefs { is_initializer: process.slots.is_initializer, + program: process.slots.program.as_ref().map(resolve), resume: resolve(&process.slots.resume), starts_with_event_wait: process.slots.requires_timed_simulation, status: resolve(&process.slots.status), @@ -299,6 +302,12 @@ impl ResolvedSchedule { event_info, signal_to_id, signal_index_by_id, + program_processes: processes + .iter() + .enumerate() + .filter(|(_, process)| process.program.is_some()) + .map(|(index, _)| index) + .collect(), processes, counted, counted_by_offset, diff --git a/crates/celox-runtime/src/simulation/mod.rs b/crates/celox-runtime/src/simulation/mod.rs index 7523e231da0..515b4cfb26e 100644 --- a/crates/celox-runtime/src/simulation/mod.rs +++ b/crates/celox-runtime/src/simulation/mod.rs @@ -454,7 +454,7 @@ impl SimulationState { E: SimulationExecutor, { self.slot_passes = 0; - match self.step_round(executor, time, Vec::new(), Vec::new(), true) { + match self.step_round(executor, time, Vec::new(), Vec::new(), true, false) { Ok(()) => { self.finish_timed_boundary(executor, time)?; Ok(Some(time)) diff --git a/crates/celox-runtime/src/simulation/nba.rs b/crates/celox-runtime/src/simulation/nba.rs index f2395e208c7..00b493f1180 100644 --- a/crates/celox-runtime/src/simulation/nba.rs +++ b/crates/celox-runtime/src/simulation/nba.rs @@ -32,7 +32,14 @@ impl SimulationState { let Some((lsb, width)) = refs.range(backend) else { return Ok(()); }; - self.process_state.nba_queue.push(NbaUpdate { + // A program process's update waits for the Re-NBA region (IEEE + // 1800-2023 24.3.1). + let queue = if self.model.processes[process].program.is_some() { + &mut self.process_state.re_nba_queue + } else { + &mut self.process_state.nba_queue + }; + queue.push(NbaUpdate { target: refs.target, lsb, width, @@ -57,6 +64,7 @@ impl SimulationState { self.model .processes .iter() + .filter(|process| process.program.is_none()) .flat_map(|process| &process.nba_sites) .filter_map(|site| site.pending) .filter(|&pending| backend.get_as::(pending) != 0) @@ -76,45 +84,12 @@ impl SimulationState { self.event_values(executor.backend(), &mut round.before); round.transitions.clear(); } - for update in &queued { - let new = NbaValue::Queued(&update.value); - self.publish_update(executor.backend_mut(), update, new); - if several { - self.record_transitions(executor.backend(), round); - } - } + self.publish_queued(executor, round, &queued, several); // Keep the queue's storage for the next time slot. queued.clear(); self.process_state.nba_queue = queued; if flagged > 0 { - for process in 0..self.model.processes.len() { - for site in 0..self.model.processes[process].nba_sites.len() { - let backend = executor.backend_mut(); - let Some(pending) = self.model.processes[process].nba_sites[site].pending - else { - continue; - }; - if backend.get_as::(pending) == 0 { - continue; - } - backend.set(pending, 0u8); - let site = &self.model.processes[process].nba_sites[site]; - let Some((lsb, width)) = site.range(backend) else { - continue; - }; - let (target, value) = (site.target, site.value); - let update = NbaUpdate { - target, - lsb, - width, - value: Value::default(), - }; - self.publish_update(backend, &update, NbaValue::Staged(value)); - if several { - self.record_transitions(executor.backend(), round); - } - } - } + self.publish_flagged(executor, round, false, several); } if several { let transitions = std::mem::take(&mut round.transitions); @@ -126,6 +101,103 @@ impl SimulationState { true } + /// Publish the nonblocking assignments of program processes (the Re-NBA + /// region, IEEE 1800-2023 4.4.2.8): the queued ones in issue order, then + /// the flagged ones. Like the writes of a process run, each is recorded + /// in `round.transitions` for the caller to settle. Returns whether any + /// was published. + pub(super) fn publish_re_nba(&mut self, executor: &mut E, round: &mut Round) -> bool + where + E: SimulationExecutor, + { + let any_flagged = self.model.has_pending_nba_sites && { + let backend = executor.backend(); + self.model + .program_processes + .iter() + .flat_map(|&process| &self.model.processes[process].nba_sites) + .filter_map(|site| site.pending) + .any(|pending| backend.get_as::(pending) != 0) + }; + if self.process_state.re_nba_queue.is_empty() && !any_flagged { + return false; + } + self.event_values(executor.backend(), &mut round.before); + let mut queued = std::mem::take(&mut self.process_state.re_nba_queue); + self.publish_queued(executor, round, &queued, true); + // Keep the queue's storage for the next time slot. + queued.clear(); + self.process_state.re_nba_queue = queued; + if any_flagged { + self.publish_flagged(executor, round, true, true); + } + true + } + + /// Publish `queued` in issue order, recording the transitions of each in + /// `round.transitions` if `record`. + fn publish_queued( + &mut self, + executor: &mut E, + round: &mut Round, + queued: &[NbaUpdate], + record: bool, + ) where + E: SimulationExecutor, + { + for update in queued { + let new = NbaValue::Queued(&update.value); + self.publish_update(executor.backend_mut(), update, new); + if record { + self.record_transitions(executor.backend(), round); + } + } + } + + /// Publish the flagged nonblocking sites of the program processes if + /// `program`, otherwise of the design's, in declaration order, recording + /// the transitions of each in `round.transitions` if `record`. + fn publish_flagged( + &mut self, + executor: &mut E, + round: &mut Round, + program: bool, + record: bool, + ) where + E: SimulationExecutor, + { + for process in 0..self.model.processes.len() { + if self.model.processes[process].program.is_some() != program { + continue; + } + for site in 0..self.model.processes[process].nba_sites.len() { + let backend = executor.backend_mut(); + let Some(pending) = self.model.processes[process].nba_sites[site].pending else { + continue; + }; + if backend.get_as::(pending) == 0 { + continue; + } + backend.set(pending, 0u8); + let site = &self.model.processes[process].nba_sites[site]; + let Some((lsb, width)) = site.range(backend) else { + continue; + }; + let (target, value) = (site.target, site.value); + let update = NbaUpdate { + target, + lsb, + width, + value: Value::default(), + }; + self.publish_update(backend, &update, NbaValue::Staged(value)); + if record { + self.record_transitions(executor.backend(), round); + } + } + } + } + /// Write `update`, whose value is `new`, into its target. An update /// inside a target of at most 64 bits with one state plane is merged as /// `u64`; any other as [`Value`]. diff --git a/crates/celox-runtime/src/simulation/persist.rs b/crates/celox-runtime/src/simulation/persist.rs index a5a5525fc53..aa0a94ff8e9 100644 --- a/crates/celox-runtime/src/simulation/persist.rs +++ b/crates/celox-runtime/src/simulation/persist.rs @@ -293,6 +293,9 @@ impl SimulationState { ready: state.ready.iter().copied().collect(), inactive: state.inactive.iter().copied().collect(), nba_queue: state.nba_queue.clone(), + reactive: state.reactive.iter().copied().collect(), + re_inactive: state.re_inactive.iter().copied().collect(), + re_nba_queue: state.re_nba_queue.clone(), domain_counters: state.domain_counters.clone(), declarations_pending: self.declarations_pending, host_pending: self.host_pending, @@ -319,6 +322,9 @@ pub struct ScheduleKey { pub ready: Vec, pub inactive: Vec, pub nba_queue: Vec, + pub reactive: Vec, + pub re_inactive: Vec, + pub re_nba_queue: Vec, pub domain_counters: Vec<[u32; 3]>, pub declarations_pending: bool, pub host_pending: bool, diff --git a/crates/celox-runtime/src/simulation/process.rs b/crates/celox-runtime/src/simulation/process.rs index 3faece18b35..bc74b2729d8 100644 --- a/crates/celox-runtime/src/simulation/process.rs +++ b/crates/celox-runtime/src/simulation/process.rs @@ -1,12 +1,19 @@ //! The process phase of a round: running ready kernels and filing them //! where they resume. +use std::collections::BTreeSet; + use celox_design::{HostRequestKind, ProcessStatus}; use super::SimulationState; use super::host::SimulationExecutor; use super::round::Round; -use crate::{SimulatorErrorCode, backend::SimBackend, timing::Halt}; +use super::wait::wake_in_region; +use crate::{ + SimulatorErrorCode, + backend::SimBackend, + timing::{Halt, ProcessState}, +}; impl SimulationState { /// Execute static declaration initializers before any ordinary process, @@ -132,13 +139,25 @@ impl SimulationState { } Some(ProcessStatus::InactiveDelay) => { let delay = delay(); - if delay == 0 { - self.process_state.inactive.insert(process); - } else { + if delay != 0 { self.wake_after(current_time, delay, process)?; + } else if self.model.processes[process].program.is_some() { + // A program process resumes in the Re-Inactive + // region (IEEE 1800-2023 4.4.2.7). + self.process_state.re_inactive.insert(process); + } else { + self.process_state.inactive.insert(process); + } + } + Some(ProcessStatus::Done) => { + if self.model.processes[process].program.is_some() { + self.program_kernel_ended(executor.backend())?; } } - Some(ProcessStatus::Done) => {} + Some(ProcessStatus::Exit) => { + self.exit_program(executor.backend_mut(), process)?; + self.program_kernel_ended(executor.backend())?; + } Some(ProcessStatus::Finish) => return Err(Halt::Finish), Some(ProcessStatus::Wait | ProcessStatus::Pending) => { let site = delay() as usize; @@ -169,7 +188,10 @@ impl SimulationState { // simulation does. Some(ProcessStatus::Stop) => { self.stopped = true; - self.process_state.ready.insert(process); + let ProcessState { + ready, reactive, .. + } = &mut self.process_state; + wake_in_region(&self.model.processes, ready, reactive, process); return Err(Halt::Stop); } Some(ProcessStatus::Yield) => { @@ -195,17 +217,18 @@ impl SimulationState { where E: SimulationExecutor, { - if self.process_state.ready.is_empty() { + let reactive = round.reactive; + if self.region_ready(reactive).is_empty() { return Ok(false); } self.event_values(executor.backend(), &mut round.before); let mut resume_process = round.resume_process.take(); if let Some(process) = resume_process { - self.process_state.ready.remove(&process); + self.region_ready(reactive).remove(&process); } while let Some(process) = resume_process .take() - .or_else(|| self.process_state.ready.pop_first()) + .or_else(|| self.region_ready(reactive).pop_first()) { loop { let again = self.run_process(executor, current_time, process, returns); @@ -222,7 +245,7 @@ impl SimulationState { // Before the next run, its edges must be seen. After the last // one, the check following the settle sees them: a settle // does not write what processes write. - if again || !self.process_state.ready.is_empty() { + if again || !self.region_ready(reactive).is_empty() { self.observe_driven(executor.backend()); } if !again { @@ -233,6 +256,55 @@ impl SimulationState { Ok(true) } + /// The processes ready in the Reactive region if `reactive`, otherwise in + /// the Active region. + #[inline] + fn region_ready(&mut self, reactive: bool) -> &mut BTreeSet { + if reactive { + &mut self.process_state.reactive + } else { + &mut self.process_state.ready + } + } + + /// `$exit` of program kernel `process` (IEEE 1800-2023 24.7): every + /// kernel of its program instance ends, as if it had run to its end. + fn exit_program(&mut self, backend: &mut B, process: usize) -> Result<(), Halt> { + let program = self.model.processes[process] + .program + .ok_or(SimulatorErrorCode::InternalError)?; + for &index in &self.model.program_processes { + let refs = &self.model.processes[index]; + if refs.program != Some(program) { + continue; + } + backend.set(refs.status, ProcessStatus::Done.code()); + let state = &mut self.process_state; + state.waiters.remove(index); + state.ready.remove(&index); + state.reactive.remove(&index); + state.re_inactive.remove(&index); + } + let model = &self.model; + self.process_wakeups + .retain(|std::cmp::Reverse((_, index))| { + model.processes[*index].program != Some(program) + }); + Ok(()) + } + + /// A program kernel ended. Once every program kernel has, the simulation + /// ends with an implicit `$finish` (IEEE 1800-2023 24.3). + fn program_kernel_ended(&self, backend: &B) -> Result<(), Halt> { + let done = ProcessStatus::Done.code(); + let all_done = self + .model + .program_processes + .iter() + .all(|&process| backend.get_as::(self.model.processes[process].status) == done); + if all_done { Err(Halt::Finish) } else { Ok(()) } + } + /// Mark the edges the processes of a pass caused and settle them. fn settle_pass(&mut self, executor: &mut E, round: &mut Round) -> Result<(), Halt> where @@ -290,6 +362,27 @@ impl SimulationState { } else { self.observe_driven(executor.backend()); } + if round.reactive { + // The Reactive region is empty: the Re-Inactive region's + // processes resume, and once both are empty the Re-NBA region + // publishes the program's nonblocking assignments. Design + // processes and domains wait for the active region set (IEEE + // 1800-2023 4.5, 24.3.1). + if !self.process_state.reactive.is_empty() { + continue; + } + if !self.process_state.re_inactive.is_empty() { + let inactive = std::mem::take(&mut self.process_state.re_inactive); + self.process_state.reactive.extend(inactive); + continue; + } + if self.publish_re_nba(executor, round) { + self.settle_pass(executor, round)?; + self.observe_driven(executor.backend()); + continue; + } + return Ok(()); + } if !self.process_state.ready.is_empty() { continue; } diff --git a/crates/celox-runtime/src/simulation/round.rs b/crates/celox-runtime/src/simulation/round.rs index 813b446c1a2..c1738942c0f 100644 --- a/crates/celox-runtime/src/simulation/round.rs +++ b/crates/celox-runtime/src/simulation/round.rs @@ -18,6 +18,10 @@ use crate::{ /// Bookkeeping of one round of a time slot. #[derive(Default)] pub(super) struct Round { + /// The round's process phase is the reactive region set's: it runs + /// program processes, and the design activity they create follows it + /// (IEEE 1800-2023 4.5). + pub(super) reactive: bool, /// The stopped process resumes before any newly woken ready processes. pub(super) resume_process: Option, /// Event ids whose trigger survives the settling filter. @@ -89,7 +93,8 @@ impl Round { impl Round { /// Start a round, keeping the buffers of earlier ones. - fn reset(&mut self, track_stable_edges: bool) { + fn reset(&mut self, track_stable_edges: bool, reactive: bool) { + self.reactive = reactive; self.resume_process = None; self.scheduled_trigger_ids.make_empty(); self.track_stable_edges = track_stable_edges; @@ -422,7 +427,8 @@ impl SimulationState { /// trigger evaluate, zero-delay processes run in the inactive region, /// and only then are nonblocking assignments published. A round /// without ready processes and counted signals does exactly the batch - /// step. + /// step. In a `reactive` round the process phase is that of the reactive + /// region set, and the domains its processes trigger evaluate after it. pub(super) fn step_round( &mut self, executor: &mut E, @@ -430,6 +436,7 @@ impl SimulationState { events_to_process: Vec>, ready_processes: Vec, entry: bool, + reactive: bool, ) -> Result<(), Halt> where E: SimulationExecutor, @@ -474,7 +481,7 @@ impl SimulationState { } let mut round = self.scratch.take().unwrap_or_default(); - round.reset(events_to_process.is_empty()); + round.reset(events_to_process.is_empty(), reactive); round.begin_scan(self.model.domain_kinds.len()); self.process_state.ready.extend(ready_processes); executor.backend_mut().clear_triggered_bits(); diff --git a/crates/celox-runtime/src/simulation/time.rs b/crates/celox-runtime/src/simulation/time.rs index f5e2bde7145..d516834414e 100644 --- a/crates/celox-runtime/src/simulation/time.rs +++ b/crates/celox-runtime/src/simulation/time.rs @@ -170,7 +170,14 @@ impl SimulationState { } ready.retain(|&process| !self.model.processes[process].starts_with_event_wait); } - self.step_round(executor, current_time, events_to_process, ready, true)?; + self.step_round( + executor, + current_time, + events_to_process, + ready, + true, + false, + )?; self.end_time(executor, current_time) } @@ -185,15 +192,32 @@ impl SimulationState { loop { let ready = self.take_ready_processes(current_time); if ready.is_empty() && self.process_state.ready.is_empty() { - break; + // The active region set is empty: the reactive region set + // runs, and the design activity it creates runs in the active + // region set again (IEEE 1800-2023 4.5). + if !self.reactive_pending() { + break; + } + self.charge_pass()?; + self.step_round(executor, current_time, Vec::new(), Vec::new(), false, true)?; + continue; } self.charge_pass()?; - self.step_round(executor, current_time, Vec::new(), ready, false)?; + self.step_round(executor, current_time, Vec::new(), ready, false, false)?; } executor.try_finish_timed_step(current_time)?; Ok(()) } + /// Whether a region of the reactive region set holds work. + #[inline] + fn reactive_pending(&self) -> bool { + let state = &self.process_state; + !state.reactive.is_empty() + || !state.re_inactive.is_empty() + || !state.re_nba_queue.is_empty() + } + /// Count a round or a pass of the process phase against the slot's /// budget, so that processes resuming at one time forever end the step /// with an error instead of hanging it. @@ -225,7 +249,9 @@ impl SimulationState { })) } - /// Remove the processes waiting for `time`, in declaration order. + /// Remove the processes waiting for `time`, in declaration order. Program + /// processes resume in the Reactive region (IEEE 1800-2023 24.3.1): they + /// join its queue, and only design processes are returned. fn take_ready_processes(&mut self, time: u64) -> Vec { let mut ready = Vec::new(); while let Some(&Reverse((wakeup, process))) = self.process_wakeups.peek() { @@ -233,7 +259,11 @@ impl SimulationState { break; } self.process_wakeups.pop(); - ready.push(process); + if self.model.processes[process].program.is_some() { + self.process_state.reactive.insert(process); + } else { + ready.push(process); + } } ready } @@ -259,7 +289,7 @@ impl SimulationState { if self.finished { return None; } - if !self.process_state.ready.is_empty() { + if !self.process_state.ready.is_empty() || !self.process_state.reactive.is_empty() { return Some(self.scheduler.time); } let process = self.process_wakeups.peek().map(|&Reverse((time, _))| time); diff --git a/crates/celox-runtime/src/simulation/wait.rs b/crates/celox-runtime/src/simulation/wait.rs index bfbd004c30d..d9f4c083796 100644 --- a/crates/celox-runtime/src/simulation/wait.rs +++ b/crates/celox-runtime/src/simulation/wait.rs @@ -1,5 +1,7 @@ //! Waiting processes: registering waits and testing them against writes. +use std::collections::BTreeSet; + use celox_design::CounterKind; use super::SimulationState; @@ -7,8 +9,8 @@ use crate::{ SignalRef, SimulatorErrorCode, backend::SimBackend, timing::{ - Halt, ProcessState, StateView, Value, copy_planes, encode_planes, occurs, planes, - planes_equal, planes_occur, read, + Halt, ProcessRefs, ProcessState, StateView, Value, copy_planes, encode_planes, occurs, + planes, planes_equal, planes_occur, read, }, }; @@ -148,7 +150,12 @@ impl SimulationState { fn check_waits(&mut self, backend: &B, only: Option, driven_only: bool) { let processes = &self.model.processes; let state = StateView::new(backend); - let ProcessState { waiters, ready, .. } = &mut self.process_state; + let ProcessState { + waiters, + ready, + reactive, + .. + } = &mut self.process_state; waiters.retain(driven_only, |process, waiter| { let terms = &processes[process].wait_sites[waiter.site]; let mut wake = false; @@ -210,7 +217,7 @@ impl SimulationState { }; } if wake { - ready.insert(process); + wake_in_region(processes, ready, reactive, process); } !wake }); @@ -231,7 +238,12 @@ impl SimulationState { /// Show the waits one value the host wrote to `signal`. pub(super) fn observe_host_write(&mut self, signal: SignalRef, value: &Value) { let processes = &self.model.processes; - let ProcessState { waiters, ready, .. } = &mut self.process_state; + let ProcessState { + waiters, + ready, + reactive, + .. + } = &mut self.process_state; waiters.retain(false, |process, waiter| { let terms = &processes[process].wait_sites[waiter.site]; let mut wake = false; @@ -253,13 +265,29 @@ impl SimulationState { } } if wake { - ready.insert(process); + wake_in_region(processes, ready, reactive, process); } !wake }); } } +/// Make the woken `process` ready: in the Reactive region if it is a program +/// process (IEEE 1800-2023 24.3.1), otherwise in the Active region. +#[inline] +pub(super) fn wake_in_region( + processes: &[ProcessRefs], + ready: &mut BTreeSet, + reactive: &mut BTreeSet, + process: usize, +) { + if processes[process].program.is_some() { + reactive.insert(process); + } else { + ready.insert(process); + } +} + /// What one term of a waiting process compares against. #[derive(Clone, Debug, PartialEq, Eq)] pub enum Baseline { diff --git a/crates/celox-runtime/src/timing.rs b/crates/celox-runtime/src/timing.rs index 113a88a9975..9edb4ed0927 100644 --- a/crates/celox-runtime/src/timing.rs +++ b/crates/celox-runtime/src/timing.rs @@ -154,6 +154,10 @@ pub struct NbaSiteRefs { #[derive(Clone, Debug, PartialEq, Eq)] pub struct ProcessRefs { pub is_initializer: bool, + /// The status slot naming the program instance of a program kernel + /// ([`celox_design::ProcessSlots::program`]), which runs in the reactive + /// region set. + pub program: Option, pub resume: SignalRef, /// A converted edge procedure starts by registering its event control /// before scheduled time-zero inputs are applied. @@ -172,6 +176,7 @@ impl ProcessRefs { pub fn new(status: SignalRef, delay: SignalRef) -> Self { Self { is_initializer: false, + program: None, resume: status, starts_with_event_wait: false, status, @@ -333,6 +338,15 @@ pub struct ProcessState { pub inactive: std::collections::BTreeSet, /// Queued nonblocking assignments, in issue order. pub nba_queue: Vec, + /// Program processes ready to run in the Reactive region of the current + /// time (IEEE 1800-2023 4.4.2.6). + pub reactive: std::collections::BTreeSet, + /// Program processes that resume in the Re-Inactive region (`#0`, + /// 4.4.2.7). + pub re_inactive: std::collections::BTreeSet, + /// Nonblocking assignments of program processes for the Re-NBA region + /// (4.4.2.8), in issue order. + pub re_nba_queue: Vec, /// Counter values each counted domain last triggered on, by counted /// signal index and kind. pub domain_counters: Vec<[u32; 3]>, diff --git a/crates/celox/src/backend/native/image_file.rs b/crates/celox/src/backend/native/image_file.rs index 0c95b249cc8..7278978181c 100644 --- a/crates/celox/src/backend/native/image_file.rs +++ b/crates/celox/src/backend/native/image_file.rs @@ -6,7 +6,7 @@ use std::{fmt, path::Path}; use super::backend::NativeProgramImage; const TRAILER_MAGIC: &[u8; 8] = b"CELOXNPI"; -const CONTAINER_VERSION: u16 = 34; +const CONTAINER_VERSION: u16 = 35; const TRAILER_SIZE: usize = 32; const FNV_OFFSET_BASIS: u64 = 0xcbf2_9ce4_8422_2325; const FNV_PRIME: u64 = 0x0000_0100_0000_01b3; diff --git a/crates/celox/src/scheduler.rs b/crates/celox/src/scheduler.rs index 6287e96a9ee..02e7bb18b06 100644 --- a/crates/celox/src/scheduler.rs +++ b/crates/celox/src/scheduler.rs @@ -355,6 +355,8 @@ impl Plan { let unit = &sir.processes[index]; let reason = if slots.is_initializer { Some("a declaration initializer") + } else if slots.program.is_some() { + Some("a program process runs in the reactive region set") } else if slots.requires_timed_simulation { Some("an edge procedure") } else if !process.host_requests.is_empty() { diff --git a/crates/celox/src/simulator/state_file.rs b/crates/celox/src/simulator/state_file.rs index 2fc6b63fb8e..803b46afdaa 100644 --- a/crates/celox/src/simulator/state_file.rs +++ b/crates/celox/src/simulator/state_file.rs @@ -829,6 +829,7 @@ impl Simulator { inactive, nba_queue, domain_counters, + ..ProcessState::default() }, )) } From 9bb235a93af345b68a806247590b89c82c180d70 Mon Sep 17 00:00:00 2001 From: tignear Date: Sat, 24 Oct 2026 19:41:46 +0900 Subject: [PATCH 2/9] feat(sv): simulate program blocks The analyzer accepts program declarations and their instances (IEEE 1800-2023 24.3). It rejects always procedures, module instances and nested units inside a program, and reports a program nested in a module as unsupported. A program's initial procedures are not folded into initial state: they lower to kernels that name the program instance, so they run in the reactive region set, and $exit in a program ends its initial procedures (24.7). Continuous assignments of a program are evaluated with the design. Nested and anonymous programs, the implicit program top, and final and clocking blocks in programs are not supported yet. The shared suite's program cases are checked against xezim 0.11.3. Icarus 13.0 and Verilator 5.052 run program procedures in the active region set and do not end the simulation when the programs end; their exclusions record the pre-exclusion results. Change-Id: I3e6817bd4b94f04465a90ecb9ef4155ee3e582da --- conformance/sv-tests/expected.tsv | 4 +- crates/celox-frontend-sv/src/lowering.rs | 23 +- crates/celox-frontend-sv/src/lowering/ff.rs | 9 +- .../src/lowering/procedural.rs | 4 + crates/celox-frontend-sv/src/warning.rs | 4 +- crates/celox-sv-analyzer/src/analyze.rs | 1 + crates/celox-sv-analyzer/src/ast.rs | 22 +- .../celox-sv-analyzer/src/ast/module_index.rs | 6 +- .../celox-sv-analyzer/src/ast/validation.rs | 76 +++++- crates/celox-sv-analyzer/src/ast/warnings.rs | 4 +- crates/celox-sv-analyzer/src/ir.rs | 13 + crates/celox-sv-analyzer/src/lib.rs | 5 + crates/celox-sv-analyzer/src/parsed.rs | 8 +- .../src/source_tree/scopes.rs | 2 +- .../source_tree/tests/subroutine_ownership.rs | 11 +- .../celox-sv-analyzer/src/system_functions.rs | 3 +- crates/celox-sv-syntax/src/nodes.rs | 8 + crates/celox-test-suite/LIMITATIONS.md | 5 + crates/celox-test-suite/src/icarus.rs | 3 + crates/celox-test-suite/src/sv/cases/mod.rs | 4 + .../src/sv/cases/program.vtest | 240 ++++++++++++++++++ .../tests/source_rejection.rs | 2 +- .../verification/sv/icarus.json | 1 + .../verification/sv/icarus/program.json | 204 +++++++++++++++ .../verification/sv/limitations.json | 102 ++++++++ .../sv/limitations/programs-icarus.json | 126 +++++++++ .../sv/limitations/programs-verilator.json | 154 +++++++++++ .../verification/sv/verilator.json | 1 + .../verification/sv/verilator/program.json | 228 +++++++++++++++++ .../tests/frontends/systemverilog/timing.rs | 123 +++++++++ docs/guide/systemverilog-reference.md | 38 ++- docs/guide/systemverilog.md | 2 +- docs/ja/guide/systemverilog-reference.md | 27 +- 33 files changed, 1425 insertions(+), 38 deletions(-) create mode 100644 crates/celox-test-suite/src/sv/cases/program.vtest create mode 100644 crates/celox-test-suite/verification/sv/icarus/program.json create mode 100644 crates/celox-test-suite/verification/sv/limitations/programs-icarus.json create mode 100644 crates/celox-test-suite/verification/sv/limitations/programs-verilator.json create mode 100644 crates/celox-test-suite/verification/sv/verilator/program.json diff --git a/conformance/sv-tests/expected.tsv b/conformance/sv-tests/expected.tsv index 535226b7930..6f06f0c9c4c 100644 --- a/conformance/sv-tests/expected.tsv +++ b/conformance/sv-tests/expected.tsv @@ -979,8 +979,8 @@ chapter-23/23.2--module-definition.sv 2state pass chapter-23/23.2--module-definition.sv 4state pass chapter-23/23.2--module-label.sv 2state pass chapter-23/23.2--module-label.sv 4state pass -chapter-24/24.3--program.sv 2state fail -chapter-24/24.3--program.sv 4state fail +chapter-24/24.3--program.sv 2state pass +chapter-24/24.3--program.sv 4state pass chapter-25/25.3-interface.sv 2state pass chapter-25/25.3-interface.sv 4state pass chapter-26/26.2--package-decl.sv 2state pass diff --git a/crates/celox-frontend-sv/src/lowering.rs b/crates/celox-frontend-sv/src/lowering.rs index 1a9cccf8986..6e34e41d282 100644 --- a/crates/celox-frontend-sv/src/lowering.rs +++ b/crates/celox-frontend-sv/src/lowering.rs @@ -4371,8 +4371,10 @@ fn lower_initial_processes( .copied() .unwrap_or(0x4d59_5df4); // An `always` process never finishes, so it is never folded into - // initial state. - if process.repeats() { + // initial state. A program's `initial` procedure runs in the reactive + // region set (IEEE 1800-2023 24.3.1), after the design's processes of + // time zero, so it is not folded either. + if process.repeats() || (module.is_program() && !process.is_initializer()) { runtime.push((process, random_seed)); continue; } @@ -4417,7 +4419,7 @@ fn lower_initial_processes( .max() .unwrap_or_default(), ); - let slots: Vec<_> = runtime + let mut slots: Vec<_> = runtime .iter() .enumerate() .map(|(index, (process, _))| { @@ -4458,6 +4460,21 @@ fn lower_initial_processes( } }) .collect(); + // Every `initial` kernel of a program instance names the status slot of + // the first, the instance's identity for `$exit` and its end (IEEE + // 1800-2023 24.3, 24.7). + if module.is_program() { + let program = slots + .iter() + .zip(&runtime) + .find(|(_, (process, _))| !process.is_initializer()) + .map(|(slots, _)| slots.status); + for (slots, (process, _)) in slots.iter_mut().zip(&runtime) { + if !process.is_initializer() { + slots.program = program; + } + } + } // The kernels add their event sites, runtime errors and extern functions // after those of the sequential processes. Their hidden variables are // state the kernels keep. diff --git a/crates/celox-frontend-sv/src/lowering/ff.rs b/crates/celox-frontend-sv/src/lowering/ff.rs index 8b17897b8c4..ae5b58d9fd5 100644 --- a/crates/celox-frontend-sv/src/lowering/ff.rs +++ b/crates/celox-frontend-sv/src/lowering/ff.rs @@ -3012,9 +3012,14 @@ impl<'p, 'a> Ff<'p, 'a> { } return Ok(true); } - // IEEE 1800-2023 24.7: `$exit` outside a program block is ignored, - // with a warning. + // IEEE 1800-2023 24.7: `$exit` in a thread of a program's `initial` + // procedure ends the program's initial procedures; elsewhere it is + // ignored, with a warning. if task == sv::ir::SystemTask::Exit { + if self.m.program && self.kernel.is_some() { + self.with_kernel(ProcessKernelBuilder::exit); + return Ok(false); + } self.m .warn(crate::FrontendWarningKind::ExitOutsideProgram, site); return Ok(true); diff --git a/crates/celox-frontend-sv/src/lowering/procedural.rs b/crates/celox-frontend-sv/src/lowering/procedural.rs index 1f420e26e28..0f351af77f9 100644 --- a/crates/celox-frontend-sv/src/lowering/procedural.rs +++ b/crates/celox-frontend-sv/src/lowering/procedural.rs @@ -53,6 +53,9 @@ pub(super) struct ProcModule<'a> { /// Number of extern calls lowered so far. pub extern_calls: usize, pub four_state: bool, + /// The module is a program (IEEE 1800-2023 24.3): its kernels honour + /// `$exit` (24.7). + pub program: bool, pub forceable: HashMap, /// Hidden variables created while lowering, for the caller to publish. pub created: Vec, @@ -244,6 +247,7 @@ impl<'a> ProcModule<'a> { extern_functions: Vec::new(), extern_calls: 0, four_state, + program: module.is_program(), created: Vec::new(), temp_counter: 0, capture_counter: 0, diff --git a/crates/celox-frontend-sv/src/warning.rs b/crates/celox-frontend-sv/src/warning.rs index 851b993d562..4d5752d35ce 100644 --- a/crates/celox-frontend-sv/src/warning.rs +++ b/crates/celox-frontend-sv/src/warning.rs @@ -57,8 +57,8 @@ pub enum FrontendWarningKind { file: String, detail: String, }, - /// `$exit` outside a program block, which IEEE 1800-2023 24.7 ignores. - /// Celox has no program blocks, so every call is ignored. + /// `$exit` outside a thread of a program's `initial` procedure, which + /// IEEE 1800-2023 24.7 ignores. #[error("`$exit` outside a program block is ignored")] ExitOutsideProgram, } diff --git a/crates/celox-sv-analyzer/src/analyze.rs b/crates/celox-sv-analyzer/src/analyze.rs index 6173365ce53..a9c7a6e64a7 100644 --- a/crates/celox-sv-analyzer/src/analyze.rs +++ b/crates/celox-sv-analyzer/src/analyze.rs @@ -230,6 +230,7 @@ fn analyze_source_impl(source: ast::Source) -> Result { .collect(), ) .with_dpi_imports(module.dpi_imports().to_vec()) + .with_program(module.is_program()) .with_imported_parameters(imported_parameters) .with_declaration_subroutines(module.declaration_subroutines().to_vec()), ); diff --git a/crates/celox-sv-analyzer/src/ast.rs b/crates/celox-sv-analyzer/src/ast.rs index a33c623e978..91d6243dbe6 100644 --- a/crates/celox-sv-analyzer/src/ast.rs +++ b/crates/celox-sv-analyzer/src/ast.rs @@ -288,7 +288,7 @@ impl Source { let scoped_context = context.child(&scoped, ¶meter_overrides); let syntax_tree = &scoped_context; let unit = syntax_tree.root_unit()?; - if unit.kind != celox_sv_syntax::UnitKind::Module { + if !unit.kind.is_module_like() { continue; } match unit.port_style { @@ -477,8 +477,7 @@ impl Source { let scoped = syntax_tree.scoped(handle)?; let syntax_tree = &scoped; let unit = syntax_tree.root_unit()?; - if unit.kind == celox_sv_syntax::UnitKind::Module - && unit.port_style != celox_sv_syntax::PortStyle::Wildcard + if unit.kind.is_module_like() && unit.port_style != celox_sv_syntax::PortStyle::Wildcard { names.push(syntax_tree.root_name()?); } @@ -495,9 +494,7 @@ impl Source { let scoped = syntax_tree.scoped(handle)?; let syntax_tree = &scoped; let unit = syntax_tree.root_unit()?; - if unit.kind == celox_sv_syntax::UnitKind::Module - && unit.port_style == celox_sv_syntax::PortStyle::Ansi - { + if unit.kind.is_module_like() && unit.port_style == celox_sv_syntax::PortStyle::Ansi { let name = syntax_tree.root_name()?; let context = AnalysisContext::unspecialized(syntax_tree); interfaces.insert(name, module_interface_from_scope(&context)?); @@ -512,7 +509,8 @@ impl Source { pub(crate) fn warnings(&self) -> Vec { let mut warnings = self.diagnostics.clone(); - for module in &self.modules { + // A program's functions run in its threads, where `$exit` applies. + for module in self.modules.iter().filter(|module| !module.program) { warnings::append(&mut warnings, module.constant_functions.warnings()); } warnings @@ -522,6 +520,9 @@ impl Source { #[derive(Debug, Clone, PartialEq, Eq)] pub struct Module { name: String, + /// A program (IEEE 1800-2023 24.3), whose processes run in the reactive + /// region set. + program: bool, parameters: Vec, ports: Vec, signals: Vec, @@ -625,6 +626,7 @@ impl Module { ) -> Result { let unit = syntax_tree.scope_handle().unit(syntax_tree.declarations()); let is_package = unit.is_none_or(|unit| unit.kind == celox_sv_syntax::UnitKind::Package); + let program = unit.is_some_and(|unit| unit.kind == celox_sv_syntax::UnitKind::Program); let name = unit.map_or_else( || packages::UNIT.to_string(), |unit| instances::normalize_identifier(&unit.name.spelling), @@ -1417,6 +1419,7 @@ impl Module { Ok(Self { name, + program, parameters, ports, signals, @@ -1488,6 +1491,11 @@ impl Module { pub fn dpi_imports(&self) -> &[crate::ir::DpiImport] { &self.dpi_imports } + + /// Whether this is a program (IEEE 1800-2023 24.3). + pub fn is_program(&self) -> bool { + self.program + } } pub(crate) fn generated_time_declarations( diff --git a/crates/celox-sv-analyzer/src/ast/module_index.rs b/crates/celox-sv-analyzer/src/ast/module_index.rs index 3bf284410b6..085570d03e7 100644 --- a/crates/celox-sv-analyzer/src/ast/module_index.rs +++ b/crates/celox-sv-analyzer/src/ast/module_index.rs @@ -30,7 +30,7 @@ impl ModuleIndex { for handle in tree.root_scopes()? { let scoped = tree.scoped(handle)?; let unit = scoped.root_unit()?; - if unit.kind != celox_sv_syntax::UnitKind::Module + if !unit.kind.is_module_like() || unit.port_style == celox_sv_syntax::PortStyle::Wildcard { continue; @@ -51,11 +51,11 @@ impl ModuleIndex { } } if let Some(declarations) = declarations { - use celox_sv_syntax::{PortKind, PortStyle, UnitKind}; + use celox_sv_syntax::{PortKind, PortStyle}; let units = declarations .all_units() .filter(|unit| { - unit.kind == UnitKind::Module + unit.kind.is_module_like() && !unit.external && unit.port_style != PortStyle::Wildcard }) diff --git a/crates/celox-sv-analyzer/src/ast/validation.rs b/crates/celox-sv-analyzer/src/ast/validation.rs index 629730d0fc0..f432f47c197 100644 --- a/crates/celox-sv-analyzer/src/ast/validation.rs +++ b/crates/celox-sv-analyzer/src/ast/validation.rs @@ -215,13 +215,16 @@ pub(super) fn reject_silently_ignored_constructs( parameter_dimensions: &ScopedMap, parameter_values: &HashMap, ) -> Converted<()> { + if let Ok(unit) = syntax_tree.root_unit() { + validate_program_structure(unit, syntax_tree.declarations())?; + } let mut dimensions = PackedDimensions::new(parameter_dimensions.clone(), const_env, type_aliases); dimensions.parameter_values = parameter_values.clone().into(); validate_scope(None, syntax_tree, &dimensions)?; if syntax_tree .root_unit() - .is_ok_and(|unit| unit.kind == celox_sv_syntax::UnitKind::Module) + .is_ok_and(|unit| unit.kind.is_module_like()) { let active = generate::items(syntax_tree, const_env, type_aliases)?; let mut views = generate::ScopeViews::new(&dimensions); @@ -236,6 +239,75 @@ pub(super) fn reject_silently_ignored_constructs( Ok(()) } +/// A program is a leaf: it shall not contain `always` procedures or +/// declarations or instances of modules, interfaces or other programs (IEEE +/// 1800-2023 24.3), generate blocks included. A program nested in a module +/// is implicitly instantiated there, which Celox does not do. +fn validate_program_structure( + unit: &celox_sv_syntax::Unit, + native: &celox_sv_syntax::Declarations, +) -> Converted<()> { + use celox_sv_syntax::{BodyItemKind, ProcedureKind, UnitKind}; + let program = unit.kind == UnitKind::Program; + let illegal = |item: String| { + Err(AnalyzerError::IllegalProgramItem { + program: instances::normalize_identifier(&unit.name.spelling), + item, + }) + }; + let mut pending = unit.items.iter().rev().copied().collect::>(); + while let Some(id) = pending.pop() { + match &native.body_item(id).kind { + BodyItemKind::Procedure(procedure) if program => { + let keyword = match native.procedure(*procedure).kind { + ProcedureKind::Always => "always", + ProcedureKind::AlwaysComb => "always_comb", + ProcedureKind::AlwaysLatch => "always_latch", + ProcedureKind::AlwaysFf => "always_ff", + ProcedureKind::Initial | ProcedureKind::Final => continue, + }; + return illegal(format!("`{keyword}` procedure")); + } + BodyItemKind::Instance(_) if program => return illegal("an instance".into()), + BodyItemKind::Unit(nested) => { + let nested = native.unit(*nested); + if program { + let kind = match nested.kind { + UnitKind::Module => "module", + UnitKind::Interface => "interface", + UnitKind::Package => "package", + UnitKind::Program => "program", + }; + return illegal(format!( + "{kind} declaration `{}`", + instances::normalize_identifier(&nested.name.spelling) + )); + } + if nested.kind == UnitKind::Program { + return Err(unsupported("program declaration nested in a module")); + } + } + BodyItemKind::Region(items) | BodyItemKind::Block { items, .. } => { + pending.extend(items.iter().rev().copied()); + } + BodyItemKind::Conditional { + then_body, + otherwise, + .. + } => { + pending.extend(otherwise); + pending.push(*then_body); + } + BodyItemKind::Case { arms, .. } => { + pending.extend(arms.iter().rev().map(|arm| arm.body)); + } + BodyItemKind::Loop { body, .. } => pending.push(*body), + _ => {} + } + } + Ok(()) +} + fn contains(outer: celox_sv_syntax::TokenRange, inner: celox_sv_syntax::TokenRange) -> bool { outer.start <= inner.start && inner.end <= outer.end } @@ -253,7 +325,7 @@ fn validate_scope( let is_module = owner.is_none() && syntax_tree .root_unit() - .is_ok_and(|unit| unit.kind == celox_sv_syntax::UnitKind::Module); + .is_ok_and(|unit| unit.kind.is_module_like()); let items = owner.map_or_else(|| syntax_tree.body_membership(), |id| Ok(vec![id]))?; validate_body_items(&items, native, !is_module)?; parameters::skipped::validate_scope(owner, is_module, syntax_tree, indexed_dimensions)?; diff --git a/crates/celox-sv-analyzer/src/ast/warnings.rs b/crates/celox-sv-analyzer/src/ast/warnings.rs index 0b8994bb6e2..354e287cdf5 100644 --- a/crates/celox-sv-analyzer/src/ast/warnings.rs +++ b/crates/celox-sv-analyzer/src/ast/warnings.rs @@ -98,7 +98,9 @@ pub(crate) fn components(tree: &SyntaxTree) -> HashMap, dpi_imports: Vec, imported_parameters: Vec, + program: bool, } impl Module { @@ -194,9 +195,21 @@ impl Module { declaration_subroutines: Vec::new(), dpi_imports: Vec::new(), imported_parameters: Vec::new(), + program: false, } } + pub(crate) fn with_program(mut self, program: bool) -> Self { + self.program = program; + self + } + + /// Whether this is a program (IEEE 1800-2023 24.3): its `initial` + /// procedures run in the reactive region set (24.3.1). + pub fn is_program(&self) -> bool { + self.program + } + pub(crate) fn with_imported_parameters(mut self, parameters: Vec) -> Self { self.imported_parameters = parameters; self diff --git a/crates/celox-sv-analyzer/src/lib.rs b/crates/celox-sv-analyzer/src/lib.rs index 58712e85d28..d6d6b598f7a 100644 --- a/crates/celox-sv-analyzer/src/lib.rs +++ b/crates/celox-sv-analyzer/src/lib.rs @@ -162,6 +162,11 @@ pub enum AnalyzerError { /// least significant bit to judge the edge on (IEEE 1800-2023 6.12). #[error("`{edge}` of a real expression: edge event controls do not apply to reals")] RealEdgeEvent { edge: &'static str }, + /// An item a program shall not contain: an `always` procedure, or a + /// declaration or instance of a module, interface or program (IEEE + /// 1800-2023 24.3). + #[error("{item} in program `{program}`: a program shall not contain it (IEEE 1800-2023 24.3)")] + IllegalProgramItem { program: String, item: String }, } impl miette::Diagnostic for AnalyzerError {} diff --git a/crates/celox-sv-analyzer/src/parsed.rs b/crates/celox-sv-analyzer/src/parsed.rs index 300a5369603..d3706a66139 100644 --- a/crates/celox-sv-analyzer/src/parsed.rs +++ b/crates/celox-sv-analyzer/src/parsed.rs @@ -53,7 +53,9 @@ impl ParsedSource { .filter(|unit| { matches!( unit.kind, - celox_sv_syntax::UnitKind::Module | celox_sv_syntax::UnitKind::Interface + celox_sv_syntax::UnitKind::Module + | celox_sv_syntax::UnitKind::Program + | celox_sv_syntax::UnitKind::Interface ) && !unit.external && unit.port_style != celox_sv_syntax::PortStyle::Wildcard }) @@ -118,7 +120,9 @@ impl ParsedSource { }; if !matches!( unit.kind, - celox_sv_syntax::UnitKind::Module | celox_sv_syntax::UnitKind::Interface + celox_sv_syntax::UnitKind::Module + | celox_sv_syntax::UnitKind::Program + | celox_sv_syntax::UnitKind::Interface ) { continue; } diff --git a/crates/celox-sv-analyzer/src/source_tree/scopes.rs b/crates/celox-sv-analyzer/src/source_tree/scopes.rs index 00ae5ae22d5..75629f44ecb 100644 --- a/crates/celox-sv-analyzer/src/source_tree/scopes.rs +++ b/crates/celox-sv-analyzer/src/source_tree/scopes.rs @@ -65,7 +65,7 @@ pub(super) fn handles(native: &Declarations) -> Converted> { if !unit.external && matches!( unit.kind, - UnitKind::Module | UnitKind::Interface | UnitKind::Package + UnitKind::Module | UnitKind::Program | UnitKind::Interface | UnitKind::Package ) { result.push(handle); diff --git a/crates/celox-sv-analyzer/src/source_tree/tests/subroutine_ownership.rs b/crates/celox-sv-analyzer/src/source_tree/tests/subroutine_ownership.rs index 22dfb95df73..923e8ae1f93 100644 --- a/crates/celox-sv-analyzer/src/source_tree/tests/subroutine_ownership.rs +++ b/crates/celox-sv-analyzer/src/source_tree/tests/subroutine_ownership.rs @@ -128,7 +128,7 @@ fn captured_class_method_identity_is_required_by_existing_module_consumers() { } #[test] -fn ignored_program_methods_do_not_corrupt_native_function_query_scope() { +fn program_functions_do_not_corrupt_native_function_query_scope() { let tree=parse_source("program unused;function int helper();return 1;endfunction endprogram module M(input logic[1:0]a);function automatic int g(input logic[3:0]a);logic[$bits(a)-1:0]x;return $bits(x);endfunction localparam N=g(0);endmodule",Path::new("native-subroutine-query-scopes.sv")).unwrap(); let ir = crate::analyze::analyze_source(crate::ast::Source::from_syntax(&tree).unwrap()).unwrap(); @@ -136,13 +136,18 @@ fn ignored_program_methods_do_not_corrupt_native_function_query_scope() { // N using the module's shadowed width (2), also on immutable81ebab922. // This retirement preserves that pre-existing behavior; runtime formals // and body-local type discovery still use the proper native scope. - let g = ir.modules()[0] + let module = ir + .modules() + .iter() + .find(|module| module.name() == "M") + .unwrap(); + let g = module .subroutines() .iter() .find(|routine| routine.name == "g") .unwrap(); assert_eq!(g.params[0].r#type.resolved_width(), Some(4)); - let local = ir.modules()[0] + let local = module .locals() .iter() .find(|local| local.name.starts_with("x@")) diff --git a/crates/celox-sv-analyzer/src/system_functions.rs b/crates/celox-sv-analyzer/src/system_functions.rs index dfdf49d219d..e6e3e339883 100644 --- a/crates/celox-sv-analyzer/src/system_functions.rs +++ b/crates/celox-sv-analyzer/src/system_functions.rs @@ -463,8 +463,7 @@ pub enum SystemTask { /// `$stop` (20.2). Stop, /// `$exit` (20.2, 24.7), which ends the initial procedures of the - /// program block that calls it. Celox has no program blocks, and a call - /// from outside one is ignored. + /// program block that calls it; a call from outside one is ignored. Exit, /// `$printtimescale` (20.4.1); the analyzer rewrites it into a /// [`SystemTask::Display`] of the message. diff --git a/crates/celox-sv-syntax/src/nodes.rs b/crates/celox-sv-syntax/src/nodes.rs index 4840e19a39f..110d4fa3a30 100644 --- a/crates/celox-sv-syntax/src/nodes.rs +++ b/crates/celox-sv-syntax/src/nodes.rs @@ -331,6 +331,14 @@ pub enum UnitKind { Program, } +impl UnitKind { + /// A module or a program, which IEEE 1800-2023 24.3 makes a leaf module + /// with its own scheduling: both elaborate as design units. + pub fn is_module_like(self) -> bool { + matches!(self, Self::Module | Self::Program) + } +} + #[derive(Clone, Copy, Debug, Eq, PartialEq)] pub enum PortStyle { Ansi, diff --git a/crates/celox-test-suite/LIMITATIONS.md b/crates/celox-test-suite/LIMITATIONS.md index 97530f68a62..9cb49e9e0f1 100644 --- a/crates/celox-test-suite/LIMITATIONS.md +++ b/crates/celox-test-suite/LIMITATIONS.md @@ -587,6 +587,11 @@ four-state expectations; the assertions remain enabled on all Celox variants. | `sv_verilator_intermediate_writes` | execute | verilator | 6 | Verilator 5.052 wakes a process waiting on a variable only for the value an evaluation leaves: an always_comb or edge-triggered body that rewrites a variable 1 -> 0 -> 1, and nonblocking updates `y <= 0; y <= 1;` from 1, wake no waiter, nor does a pulse that one always_ff writes to some bits of a variable while other processes write its other bits, or a nonblocking update that rises from the final blocking value. IEEE 1800-2023 4.3 and 9.4.2 make every store an update event that triggers the waiter, and 10.4.2 applies nonblocking updates in issue order, each its own update. [Standalone probes](verification/repros/sv_intermediate_writes_verilator.json) print the spec counts in Icarus 13.0 and 1 or 0 in Verilator. | | `sv_icarus_port_pulses` | execute | icarus | 1 | Icarus 13.0 collapses a child's output port with the parent's net, so a waiter in the parent sees each value the child's always_comb writes inside one evaluation and counts 3 instead of 1. Both are conforming: the port is a continuous assignment (IEEE 1800-2023 23.3.3), evaluated after the child's process yields, and 4.7 leaves that order open. The case asserts the settled count, which Verilator 5.052 and Celox give. The [standalone probe](verification/repros/sv_port_pulses_icarus.json) retains both outputs. | | `sv_verilator_active_region_waiters` | execute | verilator | 2 | Verilator 5.052 resumes a process woken by a blocking write of an edge-triggered process only after the same edge's nonblocking updates: with `y = ~y; q <= q + 1;` a waiter on `@(y)` reads the updated q, and with `y = 1; y <= 0; y <= 1;` from 0 it does not wait again before the nonblocking updates and counts 1 instead of 3. IEEE 1800-2023 4.5 makes the blocking write an update event of the active region and enters the NBA region only when the active and inactive regions are empty, so the waiter runs first (9.4.2). [Standalone probes](verification/repros/sv_active_region_waiters_verilator.json) print the spec values in Icarus 13.0 and the post-NBA values in Verilator. | +| `sv_program_reactive_region` | execute | icarus, verilator | 10 | Verilator 5.052 and Icarus 13.0 run program procedures in the active region set: a program reads design values before the design's nonblocking updates of the time slot, its `#0` resumes before the design's, and a flip-flop clocked by a program write runs before the program's `#0` and its nonblocking update of the flip-flop's input. IEEE 1800-2023 24.3.1 schedules program procedures in the Reactive region, `#0` in the Re-Inactive region and their nonblocking updates in the Re-NBA region, and 4.5 empties the reactive region set before the active region set runs again. xezim 0.11.3 agrees with every case except the flip-flop one, where it also runs the flip-flop first. The pre-exclusion results are [Icarus](verification/sv/limitations/programs-icarus.json) and [Verilator](verification/sv/limitations/programs-verilator.json). | +| `sv_program_completion` | execute | icarus, verilator | 2 | Neither tool ends the simulation when every program `initial` procedure has ended; IEEE 1800-2023 24.3 calls `$finish` then. xezim 0.11.3 does not either. | +| `sv_icarus_program_exit` | execute | icarus | 1 | Icarus 13.0 does not define `$exit`; IEEE 1800-2023 24.7 ends the calling program's `initial` procedures. | +| `sv_verilator_program_exit` | execute | verilator | 1 | Verilator 5.052 continues after `$exit` and keeps the program's other `initial` procedures (24.7). Icarus does not run the case; xezim 0.11.3 agrees with the expected output. | +| `sv_verilator_program_items` | compile | verilator | 2 | Verilator 5.052 rejects an `always` procedure and a module instance in a program with syntax errors, which the run cannot count as language rejections. Both are illegal (IEEE 1800-2023 24.3); Icarus 13.0 rejects them with diagnostics that name the rule. | The [system-function edge-case evidence](verification/repros/system_function_edge_cases.json) retains the failed Icarus runs and minimal sources. Cover comparisons enable diff --git a/crates/celox-test-suite/src/icarus.rs b/crates/celox-test-suite/src/icarus.rs index bbc0228d82e..166342b579b 100644 --- a/crates/celox-test-suite/src/icarus.rs +++ b/crates/celox-test-suite/src/icarus.rs @@ -154,6 +154,9 @@ pub fn is_source_rejection(code: Option, log: &str, sources: &[PathBuf]) -> // nonequivalent element types or different sizes. | "Element types are not compatible in array assignment." | "Unpacked dimensions are not compatible in array assignment." + // IEEE 1800-2023 24.3: what a program shall not contain. + | "Always statements are not allowed in program blocks." + | "Module instantiations are not allowed in program blocks." ) || (error.starts_with("A reference to a net or variable (`") && error.ends_with("') is not allowed in a constant expression.")) || (error.starts_with("Array ") && error.ends_with(" needs an array index here.")) diff --git a/crates/celox-test-suite/src/sv/cases/mod.rs b/crates/celox-test-suite/src/sv/cases/mod.rs index 66a5ad1db5a..d20e02d212c 100644 --- a/crates/celox-test-suite/src/sv/cases/mod.rs +++ b/crates/celox-test-suite/src/sv/cases/mod.rs @@ -55,6 +55,10 @@ pub(super) const GROUPS: &[Group] = &[ file: "src/sv/cases/random_plusargs.vtest", text: include_str!("random_plusargs.vtest"), }, + Group { + file: "src/sv/cases/program.vtest", + text: include_str!("program.vtest"), + }, Group { file: "src/sv/cases/latch.vtest", text: include_str!("latch.vtest"), diff --git a/crates/celox-test-suite/src/sv/cases/program.vtest b/crates/celox-test-suite/src/sv/cases/program.vtest new file mode 100644 index 00000000000..033758f52d1 --- /dev/null +++ b/crates/celox-test-suite/src/sv/cases/program.vtest @@ -0,0 +1,240 @@ +(group program (category sequential)) + +; Program blocks (IEEE 1800-2023 Clause 24). Their `initial` procedures, +; event controls and delays run in the reactive region set, which runs after +; the active region set of a time slot is empty (4.5, 24.3.1). Expected +; outputs follow the reference algorithm of 4.5. + +; A program reads the design after its nonblocking updates and the +; combinational logic they feed have settled in the same time slot. +(case program_reads_design_after_nonblocking_updates_settle + (source "program_settled.sv" #" + module Top; + logic clk = 0; + logic [7:0] d = 0, q = 0, qq; + always @(posedge clk) q <= d; + assign qq = q + 8'd1; + initial begin + #1 d = 5; clk = 1; + $display("design q=%0d qq=%0d", q, qq); + end + Probe p(clk, q, qq); + endmodule + program Probe(input logic clk, input logic [7:0] q, qq); + initial begin + $display("start q=%0d qq=%0d", q, qq); + @(posedge clk) $display("edge q=%0d qq=%0d", q, qq); + $finish; + end + endprogram + "#) + (top Top) + (run_to_finish) + (expect_output "start q=0 qq=1\ndesign q=0 qq=1\nedge q=5 qq=6\n")) + +; A program's nonblocking assignment updates in the Re-NBA region, after the +; design's NBA region; the design processes the update wakes run in the +; active region set that follows. +(case program_nonblocking_updates_follow_design_updates + (source "program_renba.sv" #" + module Top; + logic clk = 0; + logic [7:0] count = 0, r; + always @(posedge clk) count <= count + 8'd1; + always @(r) $display("design sees r=%0d count=%0d", r, count); + initial begin #1 clk = 1; #1 clk = 0; #1 clk = 1; end + Tb t(clk, count, r); + endmodule + program Tb(input logic clk, input logic [7:0] count, output logic [7:0] r); + initial begin + r = 1; + repeat (2) begin + @(posedge clk); + r <= count + 8'd10; + $display("program count=%0d r=%0d", count, r); + end + #1 $finish; + end + endprogram + "#) + (top Top) + (run_to_finish) + (expect_output "design sees r=1 count=0\nprogram count=1 r=1\ndesign sees r=11 count=1\nprogram count=2 r=11\ndesign sees r=12 count=2\n")) + +; `#0` in a program resumes in the Re-Inactive region (4.4.2.7), after the +; design's Inactive region of the same time. +(case program_zero_delay_resumes_in_the_re_inactive_region + (source "program_zero.sv" #" + module Top; + logic [7:0] a = 0; + initial begin + #1 a = 1; + #0 $display("design inactive a=%0d", a); + end + Tb t(a); + endmodule + program Tb(input logic [7:0] a); + logic [7:0] seen; + initial begin + #1 seen = a; + $display("reactive a=%0d", a); + #0 $display("re-inactive a=%0d seen=%0d", a, seen); + $finish; + end + endprogram + "#) + (top Top) + (run_to_finish) + (expect_output "design inactive a=1\nreactive a=1\nre-inactive a=1 seen=1\n")) + +; Design activity a program creates waits until the reactive region set is +; empty (4.5): a flip-flop clocked by the program's blocking write runs after +; the program's `#0` and its Re-NBA update of the flip-flop's input. +(case design_activity_of_a_program_waits_for_the_reactive_region_set + (source "program_drain.sv" #" + module Top; + logic clk; + logic [7:0] d, q = 0; + always @(posedge clk) begin + q <= d; + $display("design edge d=%0d", d); + end + Tb t(clk, d, q); + endmodule + program Tb(output logic clk, output logic [7:0] d, input logic [7:0] q); + initial begin + clk = 0; + d = 0; + #1 clk = 1; + d <= 7; + #0 $display("re-inactive q=%0d d=%0d", q, d); + #1 $display("q=%0d", q); + $finish; + end + endprogram + "#) + (top Top) + (run_to_finish) + (expect_output "re-inactive q=0 d=0\ndesign edge d=7\nq=7\n")) + +; An input the host drives wakes a program in the Reactive region, after +; the nonblocking updates the same edge causes in the design. +(case program_waits_see_host_driven_edges_after_design_updates + (source "program_host_edge.sv" #" + module Top(input logic go, output logic [7:0] seen); + logic [7:0] count = 0; + always @(posedge go) count <= count + 8'd1; + Tb t(go, count, seen); + endmodule + program Tb(input logic go, input logic [7:0] count, output logic [7:0] seen); + initial begin + seen = 0; + forever @(posedge go) seen = count; + end + endprogram + "#) + (top Top) + (run_until 1) + (assert_eq seen 0) + (modify (set go 1)) + (run_until 2) + (assert_eq seen 1 "the program reads the count after its update") + (modify (set go 0)) + (run_until 3) + (modify (set go 1)) + (run_until 4) + (assert_eq seen 2)) + +; `$exit` ends every `initial` procedure of its program (24.7). With them the +; last program procedures have ended, which ends the simulation (24.3). +(case program_exit_ends_its_initial_procedures + (source "program_exit.sv" #" + module Top; + initial #20 $display("design at 20"); + Tb t(); + endmodule + program Tb; + initial begin + #2 $display("first"); + #2 $exit; + $display("not reached"); + end + initial begin + #3 $display("second"); + #10 $display("second not reached"); + end + endprogram + "#) + (top Top) + (run_to_finish) + (expect_output "first\nsecond\n")) + +; The simulation ends with an implicit `$finish` once every `initial` +; procedure of every program has ended, while design processes still run +; (24.3). +(case simulation_ends_when_program_procedures_end + (source "program_complete.sv" #" + module Top(output int n); + initial begin + n = 0; + forever #1 n++; + end + Tb t(); + endmodule + program Tb; + initial #3 $display("done"); + endprogram + "#) + (top Top) + (run_to_finish) + (expect_output "done\n") + (assert_eq n 3)) + +; Program ports connect like module ports (24.3). +(case program_ports_connect_to_design_nets + (source "program_ports.sv" #" + program Check(input wire a, input wire b, output logic same); + initial begin + same = a == b; + #1 $finish; + end + endprogram + module Top(output logic same); + wire a = 1; + wire b = 1; + Check c(a, b, same); + endmodule + "#) + (top Top) + (run_to_finish) + (assert_eq same 1)) + +; A program shall not contain `always` procedures or instances (24.3). +(case programs_reject_always_procedures + (source "program_always.sv" #" + program Tb(input logic clk); + logic seen; + always @(posedge clk) seen = 1; + endprogram + module Top(input logic clk); + Tb t(clk); + endmodule + "#) + (top Top) + (expect reject)) + +(case programs_reject_instances + (source "program_instance.sv" #" + module Leaf(output logic y); + assign y = 1; + endmodule + program Tb; + logic y; + Leaf l(y); + endprogram + module Top; + Tb t(); + endmodule + "#) + (top Top) + (expect reject)) diff --git a/crates/celox-test-suite/tests/source_rejection.rs b/crates/celox-test-suite/tests/source_rejection.rs index 5634256a3e7..9308cd63f0c 100644 --- a/crates/celox-test-suite/tests/source_rejection.rs +++ b/crates/celox-test-suite/tests/source_rejection.rs @@ -78,7 +78,7 @@ mod icarus { assert!(!is_source_rejection(Some(code), log, &["other.sv".into()])); checked += 1; } - assert_eq!(checked, 6); + assert_eq!(checked, 8); } #[test] diff --git a/crates/celox-test-suite/verification/sv/icarus.json b/crates/celox-test-suite/verification/sv/icarus.json index cca4d440665..c85e71c78e9 100644 --- a/crates/celox-test-suite/verification/sv/icarus.json +++ b/crates/celox-test-suite/verification/sv/icarus.json @@ -11,6 +11,7 @@ "icarus/operators.json", "icarus/packed_structs.json", "icarus/procedural.json", + "icarus/program.json", "icarus/random_plusargs.json", "icarus/review_regressions.json", "icarus/string.json", diff --git a/crates/celox-test-suite/verification/sv/icarus/program.json b/crates/celox-test-suite/verification/sv/icarus/program.json new file mode 100644 index 00000000000..8126bb17312 --- /dev/null +++ b/crates/celox-test-suite/verification/sv/icarus/program.json @@ -0,0 +1,204 @@ +{ + "cases": [ + { + "category": "Sequential", + "detail": "Verilator 5.052 and Icarus 13.0 run the initial procedures of a program in the active region set: a program reads design values before the design's nonblocking updates of the same time slot, its #0 resumes before the design's, and a flip-flop clocked by a program write runs before the program's #0 and its nonblocking update of the flip-flop's input. IEEE 1800-2023 24.3.1 schedules program procedures, their delays and event controls in the Reactive region, #0 in the Re-Inactive region and their nonblocking updates in the Re-NBA region, and 4.5 runs the reactive region set only once the active region set is empty and empties it before the active region set runs again.", + "expectation": "Simulation", + "known_issue": { + "category": "simulator_disagreement", + "evidence": [ + "verification/sv/limitations/programs-icarus.json", + "verification/sv/limitations/programs-verilator.json", + "LIMITATIONS.md#systemverilog-suite" + ], + "id": "sv_program_reactive_region", + "observed_version": "Verilator 5.052 2026-09-05 rev v5.052; Icarus 13.0", + "phase": "execute", + "reason": "Verilator 5.052 and Icarus 13.0 run the initial procedures of a program in the active region set: a program reads design values before the design's nonblocking updates of the same time slot, its #0 resumes before the design's, and a flip-flop clocked by a program write runs before the program's #0 and its nonblocking update of the flip-flop's input. IEEE 1800-2023 24.3.1 schedules program procedures, their delays and event controls in the Reactive region, #0 in the Re-Inactive region and their nonblocking updates in the Re-NBA region, and 4.5 runs the reactive region set only once the active region set is empty and empties it before the active region set runs again.", + "upstream": [] + }, + "name": "program::design_activity_of_a_program_waits_for_the_reactive_region_set", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Icarus 13.0 does not define $exit (\"System task/function $exit() is not defined by any module\"). IEEE 1800-2023 24.7 ends every initial procedure of the calling program.", + "expectation": "Simulation", + "known_issue": { + "category": "simulator_unsupported", + "evidence": [ + "verification/sv/limitations/programs-icarus.json", + "LIMITATIONS.md#systemverilog-suite" + ], + "id": "sv_icarus_program_exit", + "observed_version": "Icarus 13.0", + "phase": "execute", + "reason": "Icarus 13.0 does not define $exit (\"System task/function $exit() is not defined by any module\"). IEEE 1800-2023 24.7 ends every initial procedure of the calling program.", + "upstream": [] + }, + "name": "program::program_exit_ends_its_initial_procedures", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Verilator 5.052 and Icarus 13.0 run the initial procedures of a program in the active region set: a program reads design values before the design's nonblocking updates of the same time slot, its #0 resumes before the design's, and a flip-flop clocked by a program write runs before the program's #0 and its nonblocking update of the flip-flop's input. IEEE 1800-2023 24.3.1 schedules program procedures, their delays and event controls in the Reactive region, #0 in the Re-Inactive region and their nonblocking updates in the Re-NBA region, and 4.5 runs the reactive region set only once the active region set is empty and empties it before the active region set runs again.", + "expectation": "Simulation", + "known_issue": { + "category": "simulator_disagreement", + "evidence": [ + "verification/sv/limitations/programs-icarus.json", + "verification/sv/limitations/programs-verilator.json", + "LIMITATIONS.md#systemverilog-suite" + ], + "id": "sv_program_reactive_region", + "observed_version": "Verilator 5.052 2026-09-05 rev v5.052; Icarus 13.0", + "phase": "execute", + "reason": "Verilator 5.052 and Icarus 13.0 run the initial procedures of a program in the active region set: a program reads design values before the design's nonblocking updates of the same time slot, its #0 resumes before the design's, and a flip-flop clocked by a program write runs before the program's #0 and its nonblocking update of the flip-flop's input. IEEE 1800-2023 24.3.1 schedules program procedures, their delays and event controls in the Reactive region, #0 in the Re-Inactive region and their nonblocking updates in the Re-NBA region, and 4.5 runs the reactive region set only once the active region set is empty and empties it before the active region set runs again.", + "upstream": [] + }, + "name": "program::program_nonblocking_updates_follow_design_updates", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "program::program_ports_connect_to_design_nets", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Verilator 5.052 and Icarus 13.0 run the initial procedures of a program in the active region set: a program reads design values before the design's nonblocking updates of the same time slot, its #0 resumes before the design's, and a flip-flop clocked by a program write runs before the program's #0 and its nonblocking update of the flip-flop's input. IEEE 1800-2023 24.3.1 schedules program procedures, their delays and event controls in the Reactive region, #0 in the Re-Inactive region and their nonblocking updates in the Re-NBA region, and 4.5 runs the reactive region set only once the active region set is empty and empties it before the active region set runs again.", + "expectation": "Simulation", + "known_issue": { + "category": "simulator_disagreement", + "evidence": [ + "verification/sv/limitations/programs-icarus.json", + "verification/sv/limitations/programs-verilator.json", + "LIMITATIONS.md#systemverilog-suite" + ], + "id": "sv_program_reactive_region", + "observed_version": "Verilator 5.052 2026-09-05 rev v5.052; Icarus 13.0", + "phase": "execute", + "reason": "Verilator 5.052 and Icarus 13.0 run the initial procedures of a program in the active region set: a program reads design values before the design's nonblocking updates of the same time slot, its #0 resumes before the design's, and a flip-flop clocked by a program write runs before the program's #0 and its nonblocking update of the flip-flop's input. IEEE 1800-2023 24.3.1 schedules program procedures, their delays and event controls in the Reactive region, #0 in the Re-Inactive region and their nonblocking updates in the Re-NBA region, and 4.5 runs the reactive region set only once the active region set is empty and empties it before the active region set runs again.", + "upstream": [] + }, + "name": "program::program_reads_design_after_nonblocking_updates_settle", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Verilator 5.052 and Icarus 13.0 run the initial procedures of a program in the active region set: a program reads design values before the design's nonblocking updates of the same time slot, its #0 resumes before the design's, and a flip-flop clocked by a program write runs before the program's #0 and its nonblocking update of the flip-flop's input. IEEE 1800-2023 24.3.1 schedules program procedures, their delays and event controls in the Reactive region, #0 in the Re-Inactive region and their nonblocking updates in the Re-NBA region, and 4.5 runs the reactive region set only once the active region set is empty and empties it before the active region set runs again.", + "expectation": "Simulation", + "known_issue": { + "category": "simulator_disagreement", + "evidence": [ + "verification/sv/limitations/programs-icarus.json", + "verification/sv/limitations/programs-verilator.json", + "LIMITATIONS.md#systemverilog-suite" + ], + "id": "sv_program_reactive_region", + "observed_version": "Verilator 5.052 2026-09-05 rev v5.052; Icarus 13.0", + "phase": "execute", + "reason": "Verilator 5.052 and Icarus 13.0 run the initial procedures of a program in the active region set: a program reads design values before the design's nonblocking updates of the same time slot, its #0 resumes before the design's, and a flip-flop clocked by a program write runs before the program's #0 and its nonblocking update of the flip-flop's input. IEEE 1800-2023 24.3.1 schedules program procedures, their delays and event controls in the Reactive region, #0 in the Re-Inactive region and their nonblocking updates in the Re-NBA region, and 4.5 runs the reactive region set only once the active region set is empty and empties it before the active region set runs again.", + "upstream": [] + }, + "name": "program::program_waits_see_host_driven_edges_after_design_updates", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Verilator 5.052 and Icarus 13.0 run the initial procedures of a program in the active region set: a program reads design values before the design's nonblocking updates of the same time slot, its #0 resumes before the design's, and a flip-flop clocked by a program write runs before the program's #0 and its nonblocking update of the flip-flop's input. IEEE 1800-2023 24.3.1 schedules program procedures, their delays and event controls in the Reactive region, #0 in the Re-Inactive region and their nonblocking updates in the Re-NBA region, and 4.5 runs the reactive region set only once the active region set is empty and empties it before the active region set runs again.", + "expectation": "Simulation", + "known_issue": { + "category": "simulator_disagreement", + "evidence": [ + "verification/sv/limitations/programs-icarus.json", + "verification/sv/limitations/programs-verilator.json", + "LIMITATIONS.md#systemverilog-suite" + ], + "id": "sv_program_reactive_region", + "observed_version": "Verilator 5.052 2026-09-05 rev v5.052; Icarus 13.0", + "phase": "execute", + "reason": "Verilator 5.052 and Icarus 13.0 run the initial procedures of a program in the active region set: a program reads design values before the design's nonblocking updates of the same time slot, its #0 resumes before the design's, and a flip-flop clocked by a program write runs before the program's #0 and its nonblocking update of the flip-flop's input. IEEE 1800-2023 24.3.1 schedules program procedures, their delays and event controls in the Reactive region, #0 in the Re-Inactive region and their nonblocking updates in the Re-NBA region, and 4.5 runs the reactive region set only once the active region set is empty and empties it before the active region set runs again.", + "upstream": [] + }, + "name": "program::program_zero_delay_resumes_in_the_re_inactive_region", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Icarus build exit status: 1; see /build.log\n/source_0.sv:4: error: Always statements are not allowed in program blocks.\n", + "expectation": "CompilationError", + "name": "program::programs_reject_always_procedures", + "phase": "compile", + "status": "rejected", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Icarus build exit status: 1; see /build.log\n/source_0.sv:7: error: Module instantiations are not allowed in program blocks.\n", + "expectation": "CompilationError", + "name": "program::programs_reject_instances", + "phase": "compile", + "status": "rejected", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Verilator 5.052 and Icarus 13.0 do not end the simulation when every initial procedure of every program has ended: Icarus keeps running the design's forever loop and Verilator runs until the testbench times out. IEEE 1800-2023 24.3 ends the simulation then with an implicit $finish.", + "expectation": "Simulation", + "known_issue": { + "category": "simulator_disagreement", + "evidence": [ + "verification/sv/limitations/programs-icarus.json", + "verification/sv/limitations/programs-verilator.json", + "LIMITATIONS.md#systemverilog-suite" + ], + "id": "sv_program_completion", + "observed_version": "Verilator 5.052 2026-09-05 rev v5.052; Icarus 13.0", + "phase": "execute", + "reason": "Verilator 5.052 and Icarus 13.0 do not end the simulation when every initial procedure of every program has ended: Icarus keeps running the design's forever loop and Verilator runs until the testbench times out. IEEE 1800-2023 24.3 ends the simulation then with an implicit $finish.", + "upstream": [] + }, + "name": "program::simulation_ends_when_program_procedures_end", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/limitations.json b/crates/celox-test-suite/verification/sv/limitations.json index 76dc9455d36..be443343f84 100644 --- a/crates/celox-test-suite/verification/sv/limitations.json +++ b/crates/celox-test-suite/verification/sv/limitations.json @@ -2283,5 +2283,107 @@ "system_functions::scope_randomize_enum_values" ] } + }, + { + "id": "sv_program_reactive_region", + "category": "simulator_disagreement", + "phase": "execute", + "observed_version": "Verilator 5.052 2026-09-05 rev v5.052; Icarus 13.0", + "reason": "Verilator 5.052 and Icarus 13.0 run the initial procedures of a program in the active region set: a program reads design values before the design's nonblocking updates of the same time slot, its #0 resumes before the design's, and a flip-flop clocked by a program write runs before the program's #0 and its nonblocking update of the flip-flop's input. IEEE 1800-2023 24.3.1 schedules program procedures, their delays and event controls in the Reactive region, #0 in the Re-Inactive region and their nonblocking updates in the Re-NBA region, and 4.5 runs the reactive region set only once the active region set is empty and empties it before the active region set runs again.", + "upstream": [], + "evidence": [ + "verification/sv/limitations/programs-icarus.json", + "verification/sv/limitations/programs-verilator.json", + "LIMITATIONS.md#systemverilog-suite" + ], + "cases": { + "icarus": [ + "program::program_reads_design_after_nonblocking_updates_settle", + "program::program_nonblocking_updates_follow_design_updates", + "program::program_zero_delay_resumes_in_the_re_inactive_region", + "program::design_activity_of_a_program_waits_for_the_reactive_region_set", + "program::program_waits_see_host_driven_edges_after_design_updates" + ], + "verilator": [ + "program::program_reads_design_after_nonblocking_updates_settle", + "program::program_nonblocking_updates_follow_design_updates", + "program::program_zero_delay_resumes_in_the_re_inactive_region", + "program::design_activity_of_a_program_waits_for_the_reactive_region_set", + "program::program_waits_see_host_driven_edges_after_design_updates" + ] + } + }, + { + "id": "sv_program_completion", + "category": "simulator_disagreement", + "phase": "execute", + "observed_version": "Verilator 5.052 2026-09-05 rev v5.052; Icarus 13.0", + "reason": "Verilator 5.052 and Icarus 13.0 do not end the simulation when every initial procedure of every program has ended: Icarus keeps running the design's forever loop and Verilator runs until the testbench times out. IEEE 1800-2023 24.3 ends the simulation then with an implicit $finish.", + "upstream": [], + "evidence": [ + "verification/sv/limitations/programs-icarus.json", + "verification/sv/limitations/programs-verilator.json", + "LIMITATIONS.md#systemverilog-suite" + ], + "cases": { + "icarus": [ + "program::simulation_ends_when_program_procedures_end" + ], + "verilator": [ + "program::simulation_ends_when_program_procedures_end" + ] + } + }, + { + "id": "sv_icarus_program_exit", + "category": "simulator_unsupported", + "phase": "execute", + "observed_version": "Icarus 13.0", + "reason": "Icarus 13.0 does not define $exit (\"System task/function $exit() is not defined by any module\"). IEEE 1800-2023 24.7 ends every initial procedure of the calling program.", + "upstream": [], + "evidence": [ + "verification/sv/limitations/programs-icarus.json", + "LIMITATIONS.md#systemverilog-suite" + ], + "cases": { + "icarus": [ + "program::program_exit_ends_its_initial_procedures" + ] + } + }, + { + "id": "sv_verilator_program_exit", + "category": "simulator_disagreement", + "phase": "execute", + "observed_version": "Verilator 5.052 2026-09-05 rev v5.052", + "reason": "Verilator 5.052 continues a program initial procedure after $exit and does not end the program's other initial procedures. IEEE 1800-2023 24.7 ends every initial procedure of the calling program.", + "upstream": [], + "evidence": [ + "verification/sv/limitations/programs-verilator.json", + "LIMITATIONS.md#systemverilog-suite" + ], + "cases": { + "verilator": [ + "program::program_exit_ends_its_initial_procedures" + ] + } + }, + { + "id": "sv_verilator_program_items", + "category": "simulator_compile_limitation", + "phase": "compile", + "observed_version": "Verilator 5.052 2026-09-05 rev v5.052", + "reason": "Verilator 5.052 rejects an always procedure and a module instance in a program with syntax errors, which the run cannot count as language rejections. Both are illegal in a program (IEEE 1800-2023 24.3), and Icarus rejects them with diagnostics that name the rule.", + "upstream": [], + "evidence": [ + "verification/sv/limitations/programs-verilator.json", + "LIMITATIONS.md#systemverilog-suite" + ], + "cases": { + "verilator": [ + "program::programs_reject_always_procedures", + "program::programs_reject_instances" + ] + } } ] diff --git a/crates/celox-test-suite/verification/sv/limitations/programs-icarus.json b/crates/celox-test-suite/verification/sv/limitations/programs-icarus.json new file mode 100644 index 00000000000..07d9f83315a --- /dev/null +++ b/crates/celox-test-suite/verification/sv/limitations/programs-icarus.json @@ -0,0 +1,126 @@ +{ + "cases": [ + { + "case_fingerprint": "98d78b162572ed7fca59bfc2c9f2e37137962de997f7460cd9dfc234e7718177", + "category": "Sequential", + "detail": "program::design_activity_of_a_program_waits_for_the_reactive_region_set at 118:3: expect_output: expected [114, 101, 45, 105, 110, 97, 99, 116, 105, 118, 101, 32, 113, 61, 48, 32, 100, 61, 48, 10, 100, 101, 115, 105, 103, 110, 32, 101, 100, 103, 101, 32, 100, 61, 55, 10, 113, 61, 55, 10], got [100, 101, 115, 105, 103, 110, 32, 101, 100, 103, 101, 32, 100, 61, 48, 10, 114, 101, 45, 105, 110, 97, 99, 116, 105, 118, 101, 32, 113, 61, 48, 32, 100, 61, 48, 10, 113, 61, 48, 10]", + "expectation": "Simulation", + "name": "program::design_activity_of_a_program_waits_for_the_reactive_region_set", + "phase": "execute", + "reused": false, + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [], + "verified_at_unix": 1792831670 + }, + { + "case_fingerprint": "41e828824fc2bc36cabe1b6dbf16395623a3e6ab2206cff419d19bfbcffb6ebc", + "category": "Sequential", + "detail": "native testbench failed: exit status: 1; see runtime.log and protocol.log\n/source_0.sv:9: Error: System task/function $exit() is not defined by any module.\n", + "expectation": "Simulation", + "name": "program::program_exit_ends_its_initial_procedures", + "phase": "execute", + "reused": false, + "status": "runtime_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [], + "verified_at_unix": 1792831671 + }, + { + "case_fingerprint": "e8bec7bc06fc8cbb0d30f66d98b13643fca063f1f39ad1dfbc155f9862f0b32a", + "category": "Sequential", + "detail": "program::program_nonblocking_updates_follow_design_updates at 62:3: expect_output: expected [100, 101, 115, 105, 103, 110, 32, 115, 101, 101, 115, 32, 114, 61, 49, 32, 99, 111, 117, 110, 116, 61, 48, 10, 112, 114, 111, 103, 114, 97, 109, 32, 99, 111, 117, 110, 116, 61, 49, 32, 114, 61, 49, 10, 100, 101, 115, 105, 103, 110, 32, 115, 101, 101, 115, 32, 114, 61, 49, 49, 32, 99, 111, 117, 110, 116, 61, 49, 10, 112, 114, 111, 103, 114, 97, 109, 32, 99, 111, 117, 110, 116, 61, 50, 32, 114, 61, 49, 49, 10, 100, 101, 115, 105, 103, 110, 32, 115, 101, 101, 115, 32, 114, 61, 49, 50, 32, 99, 111, 117, 110, 116, 61, 50, 10], got [100, 101, 115, 105, 103, 110, 32, 115, 101, 101, 115, 32, 114, 61, 49, 32, 99, 111, 117, 110, 116, 61, 48, 10, 112, 114, 111, 103, 114, 97, 109, 32, 99, 111, 117, 110, 116, 61, 48, 32, 114, 61, 49, 10, 100, 101, 115, 105, 103, 110, 32, 115, 101, 101, 115, 32, 114, 61, 49, 48, 32, 99, 111, 117, 110, 116, 61, 49, 10, 112, 114, 111, 103, 114, 97, 109, 32, 99, 111, 117, 110, 116, 61, 49, 32, 114, 61, 49, 48, 10, 100, 101, 115, 105, 103, 110, 32, 115, 101, 101, 115, 32, 114, 61, 49, 49, 32, 99, 111, 117, 110, 116, 61, 50, 10]", + "expectation": "Simulation", + "name": "program::program_nonblocking_updates_follow_design_updates", + "phase": "execute", + "reused": false, + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [], + "verified_at_unix": 1792831670 + }, + { + "case_fingerprint": "b2c9d6e02e663d5d87fcc72893fc4826435ea647ec065fa3e5d1a634df2595c7", + "category": "Sequential", + "detail": "program::program_reads_design_after_nonblocking_updates_settle at 33:3: expect_output: expected [115, 116, 97, 114, 116, 32, 113, 61, 48, 32, 113, 113, 61, 49, 10, 100, 101, 115, 105, 103, 110, 32, 113, 61, 48, 32, 113, 113, 61, 49, 10, 101, 100, 103, 101, 32, 113, 61, 53, 32, 113, 113, 61, 54, 10], got [115, 116, 97, 114, 116, 32, 113, 61, 48, 32, 113, 113, 61, 49, 10, 100, 101, 115, 105, 103, 110, 32, 113, 61, 48, 32, 113, 113, 61, 49, 10, 101, 100, 103, 101, 32, 113, 61, 48, 32, 113, 113, 61, 49, 10]", + "expectation": "Simulation", + "name": "program::program_reads_design_after_nonblocking_updates_settle", + "phase": "execute", + "reused": false, + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [], + "verified_at_unix": 1792831670 + }, + { + "case_fingerprint": "1a3d0280a6f0d27dcdaa7ba200e64d226eb39bcf6eedd9956a64402dd30bb192", + "category": "Sequential", + "detail": "program::program_waits_see_host_driven_edges_after_design_updates at 141:3: assert_eq seen: expected 0x1, got 0x0 (the program reads the count after its update)", + "expectation": "Simulation", + "name": "program::program_waits_see_host_driven_edges_after_design_updates", + "phase": "execute", + "reused": false, + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [], + "verified_at_unix": 1792837870 + }, + { + "case_fingerprint": "e1ea6e05b0ce14a9a9cd02ef9e69bf39339d91a8419056906f9438fce72fdb10", + "category": "Sequential", + "detail": "program::program_zero_delay_resumes_in_the_re_inactive_region at 88:3: expect_output: expected [100, 101, 115, 105, 103, 110, 32, 105, 110, 97, 99, 116, 105, 118, 101, 32, 97, 61, 49, 10, 114, 101, 97, 99, 116, 105, 118, 101, 32, 97, 61, 49, 10, 114, 101, 45, 105, 110, 97, 99, 116, 105, 118, 101, 32, 97, 61, 49, 32, 115, 101, 101, 110, 61, 49, 10], got [114, 101, 97, 99, 116, 105, 118, 101, 32, 97, 61, 48, 10, 114, 101, 45, 105, 110, 97, 99, 116, 105, 118, 101, 32, 97, 61, 49, 32, 115, 101, 101, 110, 61, 48, 10, 100, 101, 115, 105, 103, 110, 32, 105, 110, 97, 99, 116, 105, 118, 101, 32, 97, 61, 49, 10]", + "expectation": "Simulation", + "name": "program::program_zero_delay_resumes_in_the_re_inactive_region", + "phase": "execute", + "reused": false, + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [], + "verified_at_unix": 1792831670 + }, + { + "case_fingerprint": "5e1d053a0c7b01273adbe8317ffc74f4daa1926606adb5cb0e508360115f5b26", + "category": "Sequential", + "detail": "program::simulation_ends_when_program_procedures_end at 163:3: assert_eq n: expected 0x3, got 0xb0d64f9", + "expectation": "Simulation", + "name": "program::simulation_ends_when_program_procedures_end", + "phase": "execute", + "reused": false, + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [], + "verified_at_unix": 1792831701 + } + ], + "context_fingerprint": "d7cdfa72597b3b332e474a5926d6172cf630908f1bfb0e7c4466829d2bb64e44", + "counts": { + "compile_error": 0, + "emission_error": 0, + "ignored": 0, + "mismatch": 6, + "passed": 0, + "rejected": 0, + "runtime_error": 1, + "unexpected_accept": 0, + "unsupported": 0 + }, + "exclude_stronger_than_sv": false, + "include_ignored": false, + "incremental": true, + "run_counts": { + "fresh": 10, + "reused": 0 + }, + "schema_version": 3, + "suite": "sv", + "suite_version": "0.11.0", + "tool": "icarus", + "version": "Icarus Verilog version 13.0 (stable) (v13_0)" +} diff --git a/crates/celox-test-suite/verification/sv/limitations/programs-verilator.json b/crates/celox-test-suite/verification/sv/limitations/programs-verilator.json new file mode 100644 index 00000000000..8ae5f4463ea --- /dev/null +++ b/crates/celox-test-suite/verification/sv/limitations/programs-verilator.json @@ -0,0 +1,154 @@ +{ + "cases": [ + { + "case_fingerprint": "98d78b162572ed7fca59bfc2c9f2e37137962de997f7460cd9dfc234e7718177", + "category": "Sequential", + "detail": "program::design_activity_of_a_program_waits_for_the_reactive_region_set at 118:3: expect_output: expected [114, 101, 45, 105, 110, 97, 99, 116, 105, 118, 101, 32, 113, 61, 48, 32, 100, 61, 48, 10, 100, 101, 115, 105, 103, 110, 32, 101, 100, 103, 101, 32, 100, 61, 55, 10, 113, 61, 55, 10], got [100, 101, 115, 105, 103, 110, 32, 101, 100, 103, 101, 32, 100, 61, 48, 10, 114, 101, 45, 105, 110, 97, 99, 116, 105, 118, 101, 32, 113, 61, 48, 32, 100, 61, 48, 10, 113, 61, 48, 10]", + "expectation": "Simulation", + "name": "program::design_activity_of_a_program_waits_for_the_reactive_region_set", + "phase": "execute", + "reused": false, + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [], + "verified_at_unix": 1792831897 + }, + { + "case_fingerprint": "41e828824fc2bc36cabe1b6dbf16395623a3e6ab2206cff419d19bfbcffb6ebc", + "category": "Sequential", + "detail": "program::program_exit_ends_its_initial_procedures at 142:3: expect_output: expected [102, 105, 114, 115, 116, 10, 115, 101, 99, 111, 110, 100, 10], got [102, 105, 114, 115, 116, 10, 115, 101, 99, 111, 110, 100, 10, 110, 111, 116, 32, 114, 101, 97, 99, 104, 101, 100, 10]", + "expectation": "Simulation", + "name": "program::program_exit_ends_its_initial_procedures", + "phase": "execute", + "reused": false, + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [], + "verified_at_unix": 1792831909 + }, + { + "case_fingerprint": "e8bec7bc06fc8cbb0d30f66d98b13643fca063f1f39ad1dfbc155f9862f0b32a", + "category": "Sequential", + "detail": "program::program_nonblocking_updates_follow_design_updates at 62:3: expect_output: expected [100, 101, 115, 105, 103, 110, 32, 115, 101, 101, 115, 32, 114, 61, 49, 32, 99, 111, 117, 110, 116, 61, 48, 10, 112, 114, 111, 103, 114, 97, 109, 32, 99, 111, 117, 110, 116, 61, 49, 32, 114, 61, 49, 10, 100, 101, 115, 105, 103, 110, 32, 115, 101, 101, 115, 32, 114, 61, 49, 49, 32, 99, 111, 117, 110, 116, 61, 49, 10, 112, 114, 111, 103, 114, 97, 109, 32, 99, 111, 117, 110, 116, 61, 50, 32, 114, 61, 49, 49, 10, 100, 101, 115, 105, 103, 110, 32, 115, 101, 101, 115, 32, 114, 61, 49, 50, 32, 99, 111, 117, 110, 116, 61, 50, 10], got [100, 101, 115, 105, 103, 110, 32, 115, 101, 101, 115, 32, 114, 61, 49, 32, 99, 111, 117, 110, 116, 61, 48, 10, 112, 114, 111, 103, 114, 97, 109, 32, 99, 111, 117, 110, 116, 61, 48, 32, 114, 61, 49, 10, 100, 101, 115, 105, 103, 110, 32, 115, 101, 101, 115, 32, 114, 61, 49, 48, 32, 99, 111, 117, 110, 116, 61, 49, 10, 112, 114, 111, 103, 114, 97, 109, 32, 99, 111, 117, 110, 116, 61, 49, 32, 114, 61, 49, 48, 10, 100, 101, 115, 105, 103, 110, 32, 115, 101, 101, 115, 32, 114, 61, 49, 49, 32, 99, 111, 117, 110, 116, 61, 50, 10]", + "expectation": "Simulation", + "name": "program::program_nonblocking_updates_follow_design_updates", + "phase": "execute", + "reused": false, + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [], + "verified_at_unix": 1792831897 + }, + { + "case_fingerprint": "b2c9d6e02e663d5d87fcc72893fc4826435ea647ec065fa3e5d1a634df2595c7", + "category": "Sequential", + "detail": "program::program_reads_design_after_nonblocking_updates_settle at 33:3: expect_output: expected [115, 116, 97, 114, 116, 32, 113, 61, 48, 32, 113, 113, 61, 49, 10, 100, 101, 115, 105, 103, 110, 32, 113, 61, 48, 32, 113, 113, 61, 49, 10, 101, 100, 103, 101, 32, 113, 61, 53, 32, 113, 113, 61, 54, 10], got [115, 116, 97, 114, 116, 32, 113, 61, 48, 32, 113, 113, 61, 48, 10, 100, 101, 115, 105, 103, 110, 32, 113, 61, 48, 32, 113, 113, 61, 49, 10, 101, 100, 103, 101, 32, 113, 61, 48, 32, 113, 113, 61, 49, 10]", + "expectation": "Simulation", + "name": "program::program_reads_design_after_nonblocking_updates_settle", + "phase": "execute", + "reused": false, + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [], + "verified_at_unix": 1792831897 + }, + { + "case_fingerprint": "1a3d0280a6f0d27dcdaa7ba200e64d226eb39bcf6eedd9956a64402dd30bb192", + "category": "Sequential", + "detail": "program::program_waits_see_host_driven_edges_after_design_updates at 141:3: assert_eq seen: expected 0x1, got 0x0 (the program reads the count after its update)", + "expectation": "Simulation", + "name": "program::program_waits_see_host_driven_edges_after_design_updates", + "phase": "execute", + "reused": false, + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [], + "verified_at_unix": 1792838391 + }, + { + "case_fingerprint": "e1ea6e05b0ce14a9a9cd02ef9e69bf39339d91a8419056906f9438fce72fdb10", + "category": "Sequential", + "detail": "program::program_zero_delay_resumes_in_the_re_inactive_region at 88:3: expect_output: expected [100, 101, 115, 105, 103, 110, 32, 105, 110, 97, 99, 116, 105, 118, 101, 32, 97, 61, 49, 10, 114, 101, 97, 99, 116, 105, 118, 101, 32, 97, 61, 49, 10, 114, 101, 45, 105, 110, 97, 99, 116, 105, 118, 101, 32, 97, 61, 49, 32, 115, 101, 101, 110, 61, 49, 10], got [114, 101, 97, 99, 116, 105, 118, 101, 32, 97, 61, 48, 10, 100, 101, 115, 105, 103, 110, 32, 105, 110, 97, 99, 116, 105, 118, 101, 32, 97, 61, 49, 10, 114, 101, 45, 105, 110, 97, 99, 116, 105, 118, 101, 32, 97, 61, 49, 32, 115, 101, 101, 110, 61, 48, 10]", + "expectation": "Simulation", + "name": "program::program_zero_delay_resumes_in_the_re_inactive_region", + "phase": "execute", + "reused": false, + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [], + "verified_at_unix": 1792831897 + }, + { + "case_fingerprint": "cd0097ccbf44d7e034bdbabdbddc680dbf4b6a3670fe175986c6650389d9ab56", + "category": "Sequential", + "detail": "Verilator build exit status: 1; see /build.log\n%Error: /source_0.sv:4:7: syntax error, unexpected always\n 4 | always @(posedge clk) seen = 1;\n | ^~~~~~\n ... See the manual at https://verilator.org/verilator_doc.html?v=5.052 for more assistance.\n%Error: Exiting due to 1 error(s)\n", + "expectation": "CompilationError", + "name": "program::programs_reject_always_procedures", + "phase": "compile", + "reused": false, + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [], + "verified_at_unix": 1792831897 + }, + { + "case_fingerprint": "47c8dbcf8ce4ca92c6b7e653ffa4b7bfcf85e1ba8820a11ab4d7ea329eb0bc19", + "category": "Sequential", + "detail": "Verilator build exit status: 1; see /build.log\n%Error: /source_0.sv:7:7: syntax error, unexpected IDENTIFIER-for-instance\n 7 | Leaf l(y);\n | ^~~~\n ... See the manual at https://verilator.org/verilator_doc.html?v=5.052 for more assistance.\n%Error: Exiting due to 1 error(s)\n", + "expectation": "CompilationError", + "name": "program::programs_reject_instances", + "phase": "compile", + "reused": false, + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [], + "verified_at_unix": 1792831897 + }, + { + "case_fingerprint": "5e1d053a0c7b01273adbe8317ffc74f4daa1926606adb5cb0e508360115f5b26", + "category": "Sequential", + "detail": "native testbench failed: exit status: 124; see runtime.log and protocol.log\n", + "expectation": "Simulation", + "name": "program::simulation_ends_when_program_procedures_end", + "phase": "execute", + "reused": false, + "status": "runtime_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [], + "verified_at_unix": 1792831939 + } + ], + "context_fingerprint": "beab703827e726cd3a44bda4eb8c7b9a41ee8465f115c88842d25373082bebb3", + "counts": { + "compile_error": 2, + "emission_error": 0, + "ignored": 0, + "mismatch": 6, + "passed": 0, + "rejected": 0, + "runtime_error": 1, + "unexpected_accept": 0, + "unsupported": 0 + }, + "exclude_stronger_than_sv": false, + "include_ignored": false, + "incremental": true, + "run_counts": { + "fresh": 10, + "reused": 0 + }, + "schema_version": 3, + "suite": "sv", + "suite_version": "0.11.0", + "tool": "verilator", + "version": "Verilator 5.052 2026-09-05 rev v5.052" +} diff --git a/crates/celox-test-suite/verification/sv/verilator.json b/crates/celox-test-suite/verification/sv/verilator.json index 5f3051a715c..f36e38da901 100644 --- a/crates/celox-test-suite/verification/sv/verilator.json +++ b/crates/celox-test-suite/verification/sv/verilator.json @@ -11,6 +11,7 @@ "verilator/operators.json", "verilator/packed_structs.json", "verilator/procedural.json", + "verilator/program.json", "verilator/random_plusargs.json", "verilator/review_regressions.json", "verilator/string.json", diff --git a/crates/celox-test-suite/verification/sv/verilator/program.json b/crates/celox-test-suite/verification/sv/verilator/program.json new file mode 100644 index 00000000000..f67378e01f2 --- /dev/null +++ b/crates/celox-test-suite/verification/sv/verilator/program.json @@ -0,0 +1,228 @@ +{ + "cases": [ + { + "category": "Sequential", + "detail": "Verilator 5.052 and Icarus 13.0 run the initial procedures of a program in the active region set: a program reads design values before the design's nonblocking updates of the same time slot, its #0 resumes before the design's, and a flip-flop clocked by a program write runs before the program's #0 and its nonblocking update of the flip-flop's input. IEEE 1800-2023 24.3.1 schedules program procedures, their delays and event controls in the Reactive region, #0 in the Re-Inactive region and their nonblocking updates in the Re-NBA region, and 4.5 runs the reactive region set only once the active region set is empty and empties it before the active region set runs again.", + "expectation": "Simulation", + "known_issue": { + "category": "simulator_disagreement", + "evidence": [ + "verification/sv/limitations/programs-icarus.json", + "verification/sv/limitations/programs-verilator.json", + "LIMITATIONS.md#systemverilog-suite" + ], + "id": "sv_program_reactive_region", + "observed_version": "Verilator 5.052 2026-09-05 rev v5.052; Icarus 13.0", + "phase": "execute", + "reason": "Verilator 5.052 and Icarus 13.0 run the initial procedures of a program in the active region set: a program reads design values before the design's nonblocking updates of the same time slot, its #0 resumes before the design's, and a flip-flop clocked by a program write runs before the program's #0 and its nonblocking update of the flip-flop's input. IEEE 1800-2023 24.3.1 schedules program procedures, their delays and event controls in the Reactive region, #0 in the Re-Inactive region and their nonblocking updates in the Re-NBA region, and 4.5 runs the reactive region set only once the active region set is empty and empties it before the active region set runs again.", + "upstream": [] + }, + "name": "program::design_activity_of_a_program_waits_for_the_reactive_region_set", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Verilator 5.052 continues a program initial procedure after $exit and does not end the program's other initial procedures. IEEE 1800-2023 24.7 ends every initial procedure of the calling program.", + "expectation": "Simulation", + "known_issue": { + "category": "simulator_disagreement", + "evidence": [ + "verification/sv/limitations/programs-verilator.json", + "LIMITATIONS.md#systemverilog-suite" + ], + "id": "sv_verilator_program_exit", + "observed_version": "Verilator 5.052 2026-09-05 rev v5.052", + "phase": "execute", + "reason": "Verilator 5.052 continues a program initial procedure after $exit and does not end the program's other initial procedures. IEEE 1800-2023 24.7 ends every initial procedure of the calling program.", + "upstream": [] + }, + "name": "program::program_exit_ends_its_initial_procedures", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Verilator 5.052 and Icarus 13.0 run the initial procedures of a program in the active region set: a program reads design values before the design's nonblocking updates of the same time slot, its #0 resumes before the design's, and a flip-flop clocked by a program write runs before the program's #0 and its nonblocking update of the flip-flop's input. IEEE 1800-2023 24.3.1 schedules program procedures, their delays and event controls in the Reactive region, #0 in the Re-Inactive region and their nonblocking updates in the Re-NBA region, and 4.5 runs the reactive region set only once the active region set is empty and empties it before the active region set runs again.", + "expectation": "Simulation", + "known_issue": { + "category": "simulator_disagreement", + "evidence": [ + "verification/sv/limitations/programs-icarus.json", + "verification/sv/limitations/programs-verilator.json", + "LIMITATIONS.md#systemverilog-suite" + ], + "id": "sv_program_reactive_region", + "observed_version": "Verilator 5.052 2026-09-05 rev v5.052; Icarus 13.0", + "phase": "execute", + "reason": "Verilator 5.052 and Icarus 13.0 run the initial procedures of a program in the active region set: a program reads design values before the design's nonblocking updates of the same time slot, its #0 resumes before the design's, and a flip-flop clocked by a program write runs before the program's #0 and its nonblocking update of the flip-flop's input. IEEE 1800-2023 24.3.1 schedules program procedures, their delays and event controls in the Reactive region, #0 in the Re-Inactive region and their nonblocking updates in the Re-NBA region, and 4.5 runs the reactive region set only once the active region set is empty and empties it before the active region set runs again.", + "upstream": [] + }, + "name": "program::program_nonblocking_updates_follow_design_updates", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "program::program_ports_connect_to_design_nets", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Verilator 5.052 and Icarus 13.0 run the initial procedures of a program in the active region set: a program reads design values before the design's nonblocking updates of the same time slot, its #0 resumes before the design's, and a flip-flop clocked by a program write runs before the program's #0 and its nonblocking update of the flip-flop's input. IEEE 1800-2023 24.3.1 schedules program procedures, their delays and event controls in the Reactive region, #0 in the Re-Inactive region and their nonblocking updates in the Re-NBA region, and 4.5 runs the reactive region set only once the active region set is empty and empties it before the active region set runs again.", + "expectation": "Simulation", + "known_issue": { + "category": "simulator_disagreement", + "evidence": [ + "verification/sv/limitations/programs-icarus.json", + "verification/sv/limitations/programs-verilator.json", + "LIMITATIONS.md#systemverilog-suite" + ], + "id": "sv_program_reactive_region", + "observed_version": "Verilator 5.052 2026-09-05 rev v5.052; Icarus 13.0", + "phase": "execute", + "reason": "Verilator 5.052 and Icarus 13.0 run the initial procedures of a program in the active region set: a program reads design values before the design's nonblocking updates of the same time slot, its #0 resumes before the design's, and a flip-flop clocked by a program write runs before the program's #0 and its nonblocking update of the flip-flop's input. IEEE 1800-2023 24.3.1 schedules program procedures, their delays and event controls in the Reactive region, #0 in the Re-Inactive region and their nonblocking updates in the Re-NBA region, and 4.5 runs the reactive region set only once the active region set is empty and empties it before the active region set runs again.", + "upstream": [] + }, + "name": "program::program_reads_design_after_nonblocking_updates_settle", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Verilator 5.052 and Icarus 13.0 run the initial procedures of a program in the active region set: a program reads design values before the design's nonblocking updates of the same time slot, its #0 resumes before the design's, and a flip-flop clocked by a program write runs before the program's #0 and its nonblocking update of the flip-flop's input. IEEE 1800-2023 24.3.1 schedules program procedures, their delays and event controls in the Reactive region, #0 in the Re-Inactive region and their nonblocking updates in the Re-NBA region, and 4.5 runs the reactive region set only once the active region set is empty and empties it before the active region set runs again.", + "expectation": "Simulation", + "known_issue": { + "category": "simulator_disagreement", + "evidence": [ + "verification/sv/limitations/programs-icarus.json", + "verification/sv/limitations/programs-verilator.json", + "LIMITATIONS.md#systemverilog-suite" + ], + "id": "sv_program_reactive_region", + "observed_version": "Verilator 5.052 2026-09-05 rev v5.052; Icarus 13.0", + "phase": "execute", + "reason": "Verilator 5.052 and Icarus 13.0 run the initial procedures of a program in the active region set: a program reads design values before the design's nonblocking updates of the same time slot, its #0 resumes before the design's, and a flip-flop clocked by a program write runs before the program's #0 and its nonblocking update of the flip-flop's input. IEEE 1800-2023 24.3.1 schedules program procedures, their delays and event controls in the Reactive region, #0 in the Re-Inactive region and their nonblocking updates in the Re-NBA region, and 4.5 runs the reactive region set only once the active region set is empty and empties it before the active region set runs again.", + "upstream": [] + }, + "name": "program::program_waits_see_host_driven_edges_after_design_updates", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Verilator 5.052 and Icarus 13.0 run the initial procedures of a program in the active region set: a program reads design values before the design's nonblocking updates of the same time slot, its #0 resumes before the design's, and a flip-flop clocked by a program write runs before the program's #0 and its nonblocking update of the flip-flop's input. IEEE 1800-2023 24.3.1 schedules program procedures, their delays and event controls in the Reactive region, #0 in the Re-Inactive region and their nonblocking updates in the Re-NBA region, and 4.5 runs the reactive region set only once the active region set is empty and empties it before the active region set runs again.", + "expectation": "Simulation", + "known_issue": { + "category": "simulator_disagreement", + "evidence": [ + "verification/sv/limitations/programs-icarus.json", + "verification/sv/limitations/programs-verilator.json", + "LIMITATIONS.md#systemverilog-suite" + ], + "id": "sv_program_reactive_region", + "observed_version": "Verilator 5.052 2026-09-05 rev v5.052; Icarus 13.0", + "phase": "execute", + "reason": "Verilator 5.052 and Icarus 13.0 run the initial procedures of a program in the active region set: a program reads design values before the design's nonblocking updates of the same time slot, its #0 resumes before the design's, and a flip-flop clocked by a program write runs before the program's #0 and its nonblocking update of the flip-flop's input. IEEE 1800-2023 24.3.1 schedules program procedures, their delays and event controls in the Reactive region, #0 in the Re-Inactive region and their nonblocking updates in the Re-NBA region, and 4.5 runs the reactive region set only once the active region set is empty and empties it before the active region set runs again.", + "upstream": [] + }, + "name": "program::program_zero_delay_resumes_in_the_re_inactive_region", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Verilator 5.052 rejects an always procedure and a module instance in a program with syntax errors, which the run cannot count as language rejections. Both are illegal in a program (IEEE 1800-2023 24.3), and Icarus rejects them with diagnostics that name the rule.", + "expectation": "CompilationError", + "known_issue": { + "category": "simulator_compile_limitation", + "evidence": [ + "verification/sv/limitations/programs-verilator.json", + "LIMITATIONS.md#systemverilog-suite" + ], + "id": "sv_verilator_program_items", + "observed_version": "Verilator 5.052 2026-09-05 rev v5.052", + "phase": "compile", + "reason": "Verilator 5.052 rejects an always procedure and a module instance in a program with syntax errors, which the run cannot count as language rejections. Both are illegal in a program (IEEE 1800-2023 24.3), and Icarus rejects them with diagnostics that name the rule.", + "upstream": [] + }, + "name": "program::programs_reject_always_procedures", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Verilator 5.052 rejects an always procedure and a module instance in a program with syntax errors, which the run cannot count as language rejections. Both are illegal in a program (IEEE 1800-2023 24.3), and Icarus rejects them with diagnostics that name the rule.", + "expectation": "CompilationError", + "known_issue": { + "category": "simulator_compile_limitation", + "evidence": [ + "verification/sv/limitations/programs-verilator.json", + "LIMITATIONS.md#systemverilog-suite" + ], + "id": "sv_verilator_program_items", + "observed_version": "Verilator 5.052 2026-09-05 rev v5.052", + "phase": "compile", + "reason": "Verilator 5.052 rejects an always procedure and a module instance in a program with syntax errors, which the run cannot count as language rejections. Both are illegal in a program (IEEE 1800-2023 24.3), and Icarus rejects them with diagnostics that name the rule.", + "upstream": [] + }, + "name": "program::programs_reject_instances", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Verilator 5.052 and Icarus 13.0 do not end the simulation when every initial procedure of every program has ended: Icarus keeps running the design's forever loop and Verilator runs until the testbench times out. IEEE 1800-2023 24.3 ends the simulation then with an implicit $finish.", + "expectation": "Simulation", + "known_issue": { + "category": "simulator_disagreement", + "evidence": [ + "verification/sv/limitations/programs-icarus.json", + "verification/sv/limitations/programs-verilator.json", + "LIMITATIONS.md#systemverilog-suite" + ], + "id": "sv_program_completion", + "observed_version": "Verilator 5.052 2026-09-05 rev v5.052; Icarus 13.0", + "phase": "execute", + "reason": "Verilator 5.052 and Icarus 13.0 do not end the simulation when every initial procedure of every program has ended: Icarus keeps running the design's forever loop and Verilator runs until the testbench times out. IEEE 1800-2023 24.3 ends the simulation then with an implicit $finish.", + "upstream": [] + }, + "name": "program::simulation_ends_when_program_procedures_end", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox/tests/frontends/systemverilog/timing.rs b/crates/celox/tests/frontends/systemverilog/timing.rs index 96516fab864..3f29d9811bf 100644 --- a/crates/celox/tests/frontends/systemverilog/timing.rs +++ b/crates/celox/tests/frontends/systemverilog/timing.rs @@ -48,6 +48,20 @@ macro_rules! timed_cases { }; } +// Program blocks (IEEE 1800-2023 Clause 24) and the reactive region set. +timed_cases! { + fn program_reads_design_after_nonblocking_updates_settle = "program::program_reads_design_after_nonblocking_updates_settle"; + fn program_nonblocking_updates_follow_design_updates = "program::program_nonblocking_updates_follow_design_updates"; + fn program_zero_delay_resumes_in_the_re_inactive_region = "program::program_zero_delay_resumes_in_the_re_inactive_region"; + fn design_activity_of_a_program_waits_for_the_reactive_region_set = "program::design_activity_of_a_program_waits_for_the_reactive_region_set"; + fn program_exit_ends_its_initial_procedures = "program::program_exit_ends_its_initial_procedures"; + fn simulation_ends_when_program_procedures_end = "program::simulation_ends_when_program_procedures_end"; + fn program_ports_connect_to_design_nets = "program::program_ports_connect_to_design_nets"; + fn programs_reject_always_procedures = "program::programs_reject_always_procedures"; + fn programs_reject_instances = "program::programs_reject_instances"; + fn program_waits_see_host_driven_edges_after_design_updates = "program::program_waits_see_host_driven_edges_after_design_updates"; +} + timed_cases! { fn timed_task_automatic_scalar_calls_keep_separate_storage = "timing::timed_task_automatic_scalar_calls_keep_separate_storage"; fn timed_task_four_state_storage_survives_suspension = "timing::timed_task_four_state_storage_survives_suspension"; @@ -1031,3 +1045,112 @@ fn nonblocking_assignments_to_reversed_array_slices_reverse_the_elements() { // m[1:0] <= w writes w[0] to m[1], as m[3:2] = w writes w[0] to m[3]. assert_eq!(sim.get(sim.signal("elements")), 0xaabb_aabbu32.into()); } + +/// A program that executes `$stop` leaves its other procedures of the time +/// slot in the reactive region set (IEEE 1800-2023 24.3.1, 20.2). The +/// simulation cannot be saved there; continued, the slot runs its Re-Inactive +/// and Re-NBA regions and then the design activity they create (4.5), which +/// leaves the reactive region set empty, so a state file saved then resumes as +/// the uninterrupted simulation does. +#[test] +fn programs_continue_after_a_stop_and_survive_a_state_file() { + let source = r#" + module Top(output bit [7:0] a, b, c); + timeunit 1ns / 1ns; + bit go; + always @(posedge go) c <= c + 8'd1; + Tb t(a, b, go); + endmodule + program Tb(output bit [7:0] a, b, output bit go); + timeunit 1ns / 1ns; + initial begin #1 $stop; a = 1; #0 a = 2; b <= 3; go = 1; #2 go = 0; #1 go = 1; end + initial begin #1 b = 4; #0 b = 5; end + // Keeps the program running past the stop. + initial forever #1; + endprogram + "#; + let build = |four_state: bool| { + celox::Simulation::from_sv_sources( + vec![(source, std::path::Path::new("reactive_state.sv"))], + "Top", + ) + .four_state(four_state) + .build() + .unwrap() + }; + let through_bytes = |file: &celox::StateFile| { + let mut bytes = Vec::new(); + file.write_to(&mut bytes).unwrap(); + celox::StateFile::read_from(bytes.as_slice()).unwrap() + }; + let values = |sim: &mut celox::Simulation| { + ["a", "b", "c"].map(|name| { + let signal = sim.signal(name); + sim.get(signal) + }) + }; + for four_state in [false, true] { + let mut whole = build(four_state); + whole.run_until(10).unwrap(); + assert!(whole.is_stopped(), "four_state={four_state}"); + assert!(whole.save_state().is_err(), "four_state={four_state}"); + whole.run_until(1).unwrap(); + // The Re-NBA update `b <= 3` follows `#0 b = 5`, and the flip-flop the + // program clocks runs after both. + assert_eq!( + values(&mut whole), + [2u8.into(), 3u8.into(), 1u8.into()], + "four_state={four_state}" + ); + let file = through_bytes(&whole.save_state().unwrap()); + let mut loaded = build(four_state); + loaded.load_state(&file).unwrap(); + assert_eq!( + through_bytes(&loaded.save_state().unwrap()), + file, + "four_state={four_state}" + ); + whole.run_until(10).unwrap(); + loaded.run_until(10).unwrap(); + let expected = values(&mut whole); + assert_eq!(expected[2], 2u8.into(), "four_state={four_state}"); + assert_eq!(values(&mut loaded), expected, "four_state={four_state}"); + } +} + +/// A design process that a program's write wakes runs in the active region +/// set with the flip-flop that write clocks, before the nonblocking update +/// (IEEE 1800-2023 4.5): it reads the flip-flop's old value, as Icarus 13.0, +/// Verilator 5.052 and xezim 0.11.3 do. +#[test] +fn design_processes_a_program_wakes_run_before_the_nonblocking_updates() { + let source = r#" + module Top(output logic [7:0] seen, q); + timeunit 1ns / 1ns; + wire go; + initial q = 0; + always_ff @(posedge go) q <= q + 8'd1; + always @(posedge go) seen = q; + P p(go); + endmodule + program P(output logic go); + timeunit 1ns / 1ns; + initial begin go = 0; #1 go = 1; #10; end + endprogram + "#; + for four_state in [false, true] { + let mut sim = celox::Simulation::from_sv_sources( + vec![(source, std::path::Path::new("program_wakes.sv"))], + "Top", + ) + .four_state(four_state) + .build() + .unwrap(); + sim.run_until(5).unwrap(); + let values = ["seen", "q"].map(|name| { + let signal = sim.signal(name); + sim.get(signal) + }); + assert_eq!(values, [0u8.into(), 1u8.into()], "four_state={four_state}"); + } +} diff --git a/docs/guide/systemverilog-reference.md b/docs/guide/systemverilog-reference.md index 4e45062ed5c..8f2dc5fc923 100644 --- a/docs/guide/systemverilog-reference.md +++ b/docs/guide/systemverilog-reference.md @@ -17,6 +17,7 @@ synthesis and is tested at the design level. | Area | Supported | | --- | --- | | Modules | ANSI ports, `parameter` / `localparam`, type parameters (`parameter type`), named and positional port and parameter connections, hierarchy, instance arrays (a connection is broadcast, or split between the elements when it is as wide as all of them) | +| Programs | `program` declarations with ports and parameters, instantiated from modules like a module; their `initial` procedures run in the reactive region set (see [Programs](#programs)) | | Generate | `for` (with `genvar`), `if`, `case`; constant expressions including `**` | | Packages | types, parameters, enums and functions, through `import p::*;`, `import p::x;` and `p::x` | | Interfaces | interfaces with value and type parameters, header package imports, `localparam`s, `typedef`s, variables and nets, logic (`assign`, `always_comb`, `always_ff`, generate) and functions; interface instances and instance arrays, also inside generate blocks and other interfaces; interface ports with or without a modport, generic `interface` and `interface.mp` ports, and arrays of interface ports; explicit and implicit named interface connections (`.bus(bus)` and `.bus`); modport `input` / `output` members and imported functions; access to members, parameters and functions through an instance or port (`h[i].m`, `h.P`, `h.f(...)`, `h[i].f(...)` with a constant element index) | @@ -538,13 +539,44 @@ simulation is suspended (`CheckpointError::Stopped`). In an `always` process, `$ Its diagnostic level argument prints nothing. Batch hosts without an interactive mode, such as the VPI host, end the run at `$stop`. +### Programs {#programs} + +A `program` (IEEE 1800-2023 Clause 24) is declared and instantiated like a +leaf module. Its `initial` procedures run in the reactive region set: they +start, resume after `#` delays and wake on event controls in the Reactive +region, `#0` resumes them in the Re-Inactive region, and their nonblocking +assignments update in the Re-NBA region (4.4.2.6–4.4.2.8, 24.3.1). The +reactive region set runs once the active region set of a time slot is empty, +and the design activity it creates runs in the active region set again +(4.5), so a program reads the design after its nonblocking updates and the +logic they feed have settled. Subroutines a program procedure calls run in +its region (24.5). Design processes keep the compiled scheduler; program +procedures run in the reference scheduler. + +When every `initial` procedure of every program has ended, the simulation +ends with an implicit `$finish` (24.3). A program shall not contain `always` +procedures or instances or declarations of modules, interfaces and programs; +Celox rejects them by name. + +Not supported: continuous assignments in a program are evaluated with the +design's combinational logic rather than in the Reactive region; the design's +continuous assignments and combinational logic that a program writes drive +settle while the reactive region set runs, as in Icarus, Verilator and xezim, +so a program that resumes after `#0` reads their new values, whereas 4.5 +evaluates them only once the reactive region set is empty; programs +nested in modules and anonymous programs are rejected; a program that no +module instantiates is not an implicit top level next to the design's top +module; `final` procedures and clocking blocks are unsupported in programs as +everywhere. + ### `$exit` -`$exit` ends the initial procedures of the program block that calls it -(24.7). Celox has no program blocks, and a call from anywhere else is +`$exit` in a thread of a program's `initial` procedure ends every `initial` +procedure of that program instance (24.7), and with them the simulation once +no program procedure is left. A call from anywhere else is ignored, as 24.7 specifies, with a compilation warning (`Simulator::warnings()`) at the call. This includes a call in a constant -function. Calls in function declarations are diagnosed even when the function +function of a module. Calls in function declarations are diagnosed even when the function is unused; the diagnostic does not depend on constant evaluation executing it. ### Immediate cover diff --git a/docs/guide/systemverilog.md b/docs/guide/systemverilog.md index 7460ee2e29b..49f40d7e00d 100644 --- a/docs/guide/systemverilog.md +++ b/docs/guide/systemverilog.md @@ -79,7 +79,7 @@ The main supported areas are: | Area | Examples | | --- | --- | -| Design structure | Modules, hierarchy, parameters, generate blocks, packages, interfaces and modports | +| Design structure | Modules, hierarchy, parameters, generate blocks, packages, interfaces and modports, and programs, whose procedures run in the reactive region set | | Data | Packed vectors, multidimensional packed arrays, structs, enums and unpacked memories | | RTL processes | `assign`, `always_comb`, `always @*`, blocking `always_latch`, edge-triggered `always` and `always_ff` | | Timed processes | `initial` and `always` with `#delay` (also time literals such as `#5ns`), `@(...)` on variables, edges, selects, expressions and `@*`, `wait (...)`, nonblocking assignments and task calls with timing controls | diff --git a/docs/ja/guide/systemverilog-reference.md b/docs/ja/guide/systemverilog-reference.md index 29a9a0e11d3..ebf9a7a83c6 100644 --- a/docs/ja/guide/systemverilog-reference.md +++ b/docs/ja/guide/systemverilog-reference.md @@ -16,6 +16,7 @@ outline: [2, 3] | 領域 | サポート内容 | | --- | --- | | モジュール | ANSI ポート、`parameter` / `localparam`、型パラメータ(`parameter type`)、名前付き・位置指定のポート/パラメータ接続、階層、インスタンス配列(接続は全要素に共通、または全要素の幅に等しければ要素ごとに分割) | +| プログラム | ポートとパラメータを持つ `program` 宣言。モジュールと同じくモジュールからインスタンス化し、その `initial` 手続きはリアクティブ領域セットで実行します(下記の「プログラム」を参照) | | generate | `for`(`genvar`)、`if`、`case`。`**` を含む定数式 | | package | 型、パラメータ、enum、関数。`import p::*;`、`import p::x;`、`p::x` で参照 | | interface | 値・型パラメータ、ヘッダーの package import、メンバー、内部ロジックと関数、入れ子の interface インスタンス、インスタンス配列、定数添字で選ぶ配列要素の関数呼び出し、modport 付き・なしのポート、generic interface ポート、interface ポート配列。明示・暗黙の名前付き接続(`.bus(bus)` / `.bus`)、`input` / `output` modport と imported function。詳しい制約は下記参照 | @@ -469,9 +470,29 @@ offset を使い、先頭(0)、現在位置(1)、末尾(2)を基準 `always` 系のプロセスでは、`$finish` が `RuntimeEvent::Finish` に なるのと同様に `RuntimeEvent::Stop` として報告します。診断レベルの引数では何も 表示しません。VPI ホストのように対話モードを持たないバッチ実行では `$stop` で終了します。 -`$exit` は呼び出した program ブロックの initial 手続きを終了します(24.7)。 -Celox は program ブロックを持たず、それ以外からの呼び出しは 24.7 の規定どおり無視し、 -その呼び出し位置でコンパイル警告(`Simulator::warnings()`)を出します。定数関数内の呼び出しも同様です。 +`program`(IEEE 1800-2023 24 章)はリーフモジュールと同じく宣言・インスタンス化します。 +その `initial` 手続きはリアクティブ領域セットで実行します。開始、`#` 遅延後の再開、 +イベント制御での起床は Reactive 領域、`#0` からの再開は Re-Inactive 領域で行い、 +ノンブロッキング代入は Re-NBA 領域で更新します(4.4.2.6〜4.4.2.8、24.3.1)。 +リアクティブ領域セットはタイムスロットのアクティブ領域セットが空になってから実行し、 +それが起こした設計側の動作は再びアクティブ領域セットで実行します(4.5)。そのため +program は、ノンブロッキング更新とそれを受ける論理が落ち着いた後の設計を読みます。 +program の手続きが呼ぶサブルーチンはその手続きの領域で実行します(24.5)。 +設計のプロセスはコンパイル済みスケジューラのまま、program の手続きは参照スケジューラで実行します。 +すべての program のすべての `initial` 手続きが終わると、暗黙の `$finish` でシミュレーションを +終了します(24.3)。program 内の `always` 手続きと、モジュール・インターフェース・program の +宣言やインスタンスは名前を示して拒否します。 +未対応: program 内の連続代入は Reactive 領域ではなく設計の組み合わせ論理として評価します。 +program の書き込みが駆動する設計の連続代入と組み合わせ論理は、Icarus・Verilator・xezim と同じく +リアクティブ領域セットの実行中に落ち着くため、`#0` の後に再開した program はその新しい値を読みます。 +4.5 ではリアクティブ領域セットが空になってから評価します。 +モジュール内に入れ子の program と無名 program は拒否します。どのモジュールからも +インスタンス化されない program は、設計のトップモジュールと並ぶ暗黙のトップにはなりません。 + +`$exit` は、program の `initial` 手続きのスレッドから呼ぶと、その program インスタンスの +すべての `initial` 手続きを終了し(24.7)、program の手続きが残らなければシミュレーションも +終了します。それ以外からの呼び出しは 24.7 の規定どおり無視し、 +その呼び出し位置でコンパイル警告(`Simulator::warnings()`)を出します。モジュールの定数関数内の呼び出しも同様です。 関数宣言内の呼び出しは、その関数を使わなくても警告します。定数評価が実行したかどうかには依存しません。 ### 実行時 I/O と plusargs From 7d1dbebe3c07bcad3cef243dd3dfb11093dfa52e Mon Sep 17 00:00:00 2001 From: tignear Date: Sun, 25 Oct 2026 05:28:09 +0900 Subject: [PATCH 3/9] ci: measure compilation benchmarks with CodSpeed walltime Change-Id: I99da4b4abb1f9113e2e89fa9cbe3bb0ea9a06b0b --- .github/workflows/codspeed.yml | 10 ++++++---- CONTRIBUTING.md | 10 ++++++++-- crates/celox/benches/compilation.rs | 2 +- scripts/benchmark-workflows.test.mjs | 14 +++++++++++++- 4 files changed, 28 insertions(+), 8 deletions(-) diff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.yml index c7afb638c3f..0830b896d1b 100644 --- a/.github/workflows/codspeed.yml +++ b/.github/workflows/codspeed.yml @@ -18,7 +18,8 @@ permissions: {} jobs: codspeed: name: CodSpeed - runs-on: ubuntu-latest + timeout-minutes: 60 + runs-on: codspeed-macro-x64-ryzen-9950x-ubuntu-24-04 outputs: run-id: ${{ steps.benchmarks.outputs.run-id }} permissions: @@ -39,14 +40,15 @@ jobs: tool: cargo-codspeed@5.0.1 - name: Build compile-time benchmarks - run: cargo codspeed build --locked -p celox --bench compilation + run: cargo codspeed build --locked --measurement-mode walltime -p celox --bench compilation - name: Run compile-time benchmarks id: benchmarks + timeout-minutes: 15 uses: CodSpeedHQ/action@v5 with: - mode: simulation - run: cargo codspeed run -p celox + mode: walltime + run: cargo codspeed run --measurement-mode walltime -p celox --bench compilation report: name: Report CodSpeed diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b178404a8a2..ef4e1632899 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -107,6 +107,12 @@ interpreter, native and Cranelift backends in both two-state and four-state mode wide-value latch checks, and a small sorter compilation smoke test. The 257/512-bit per-bit graph cases and sorter sizes 4/8/16/32 are measured by `benches/compilation.rs` in the existing daily/manual CodSpeed workflow. +Compilation benchmarks use CodSpeed walltime measurement on its x64 Ryzen +Macro Runner: CPU simulation made +a single 512-bit case take tens of minutes. The benchmark step has a 15-minute +timeout and the complete job a 60-minute limit; a timeout is reported as failure. +The organization runner group must allow this public repository to use CodSpeed +Macro Runners. Simulation and walltime measurements have separate baselines. Nested-write benchmarks reuse the same semantic assertions as the small tests. Scaling cases use one iteration without per-case warmups or adaptive sampling; a small counter warms process-global analyzer state before measurement. @@ -117,8 +123,8 @@ CodSpeed reporting workflow. Build and run them with the same CodSpeed harness as CI: ```sh -cargo codspeed build --locked -p celox --bench compilation -cargo codspeed run -p celox +cargo codspeed build --locked --measurement-mode walltime -p celox --bench compilation +cargo codspeed run --measurement-mode walltime -p celox --bench compilation ``` ## Finish validation diff --git a/crates/celox/benches/compilation.rs b/crates/celox/benches/compilation.rs index d99104ba6c7..984d896b73d 100644 --- a/crates/celox/benches/compilation.rs +++ b/crates/celox/benches/compilation.rs @@ -58,7 +58,7 @@ fn benchmark_scaling(c: &mut Criterion) { // Warm analyzer state before any measured span, including filtered runs. compile_default(COUNTER, "Top", Some(("N", 1))); // Each large design runs once: no five-run warmup or adaptive resampling. - // CodSpeed simulation measures one iteration; walltime uses the same schedule. + // Walltime uses this fixed schedule even for the largest graphs. for n in [4, 8, 16, 32] { c.bench_function(&format!("compile/sorter_tree/n{n}"), |b| { b.iter_manual_unstable(IterManualOptions::new(), || { diff --git a/scripts/benchmark-workflows.test.mjs b/scripts/benchmark-workflows.test.mjs index 5f58b398e90..f0ccd37de28 100644 --- a/scripts/benchmark-workflows.test.mjs +++ b/scripts/benchmark-workflows.test.mjs @@ -50,7 +50,7 @@ test("CodSpeed reports the current upload even after failure or cancellation", ( const benchmark = job(codspeed, "codspeed"); const report = job(codspeed, "report"); assert.match(benchmark, /run-id: \$\{\{ steps\.benchmarks\.outputs\.run-id \}\}/); - assert.match(benchmark, /id: benchmarks\n\s+uses: CodSpeedHQ\/action@v5/); + assert.match(benchmark, /id: benchmarks\n\s+timeout-minutes: 15\n\s+uses: CodSpeedHQ\/action@v5/); assert.match(report, /needs: codspeed/); assert.match(report, /checks: read/); assert.match(report, /issues: write/); @@ -165,3 +165,15 @@ test("profiling reuse rejects pre-CLI artifacts before capture", () => { assert.match(check, /predates the celox run CLI/); assert.match(check, /exit 1/); }); + + +test("compilation scaling uses walltime consistently and has a bounded execution", () => { + const benchmark = job(codspeed, "codspeed"); + assert.match(benchmark, /runs-on: codspeed-macro-x64-ryzen-9950x-ubuntu-24-04/); + assert.match(benchmark, /timeout-minutes: 60/); + assert.match(benchmark, /cargo codspeed build --locked --measurement-mode walltime -p celox --bench compilation/); + assert.match(benchmark, /id: benchmarks\n timeout-minutes: 15\n uses: CodSpeedHQ\/action@v5/); + assert.match(benchmark, /mode: walltime/); + assert.match(benchmark, /run: cargo codspeed run --measurement-mode walltime -p celox --bench compilation/); + assert.doesNotMatch(benchmark, /simulation|continue-on-error/); +}); From 8f35ef1974aac1ead77feadf1951d0db354fc7d9 Mon Sep 17 00:00:00 2001 From: tignear Date: Sun, 25 Oct 2026 05:30:48 +0900 Subject: [PATCH 4/9] ci: add a build-free CodSpeed runner probe Change-Id: I34c27f4234479a98dd5a1f2e45826759af799672 --- .github/workflows/codspeed.yml | 17 ++++++++++++++++- scripts/benchmark-workflows.test.mjs | 23 +++++++++++++++++++++-- 2 files changed, 37 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.yml index 0830b896d1b..b2e70046aa3 100644 --- a/.github/workflows/codspeed.yml +++ b/.github/workflows/codspeed.yml @@ -4,6 +4,11 @@ on: schedule: - cron: "17 2 * * *" workflow_dispatch: + inputs: + runner_probe: + description: Check Macro Runner availability without building or benchmarking + type: boolean + default: false concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -16,8 +21,18 @@ env: permissions: {} jobs: + runner-probe: + name: Probe CodSpeed runner + if: github.event_name == 'workflow_dispatch' && inputs.runner_probe + runs-on: codspeed-macro-x64-ryzen-9950x-ubuntu-24-04 + timeout-minutes: 2 + steps: + - name: Verify the x64 runner is available + run: test "$(uname -m)" = x86_64 + codspeed: name: CodSpeed + if: inputs.runner_probe != true timeout-minutes: 60 runs-on: codspeed-macro-x64-ryzen-9950x-ubuntu-24-04 outputs: @@ -53,7 +68,7 @@ jobs: report: name: Report CodSpeed needs: codspeed - if: always() && (github.ref_name == 'master' || github.ref_name == 'develop') + if: always() && inputs.runner_probe != true && (github.ref_name == 'master' || github.ref_name == 'develop') runs-on: ubuntu-latest timeout-minutes: 10 permissions: diff --git a/scripts/benchmark-workflows.test.mjs b/scripts/benchmark-workflows.test.mjs index f0ccd37de28..cc3e564932a 100644 --- a/scripts/benchmark-workflows.test.mjs +++ b/scripts/benchmark-workflows.test.mjs @@ -59,9 +59,9 @@ test("CodSpeed reports the current upload even after failure or cancellation", ( assert.match(report, /run: node scripts\/report-codspeed\.mjs/); assert.doesNotMatch(codspeed, /continue-on-error:/); assert.match(codspeed, /cancel-in-progress: false/); - const condition = new Function("github", "always", `return (${expression(report, "if")});`); + const condition = new Function("github", "always", "inputs", `return (${expression(report, "if")});`); for (const branch of ["master", "develop", "feature"]) { - assert.equal(condition({ ref_name: branch }, () => true), branch !== "feature"); + assert.equal(condition({ ref_name: branch }, () => true, { runner_probe: false }), branch !== "feature"); } }); @@ -177,3 +177,22 @@ test("compilation scaling uses walltime consistently and has a bounded execution assert.match(benchmark, /run: cargo codspeed run --measurement-mode walltime -p celox --bench compilation/); assert.doesNotMatch(benchmark, /simulation|continue-on-error/); }); + + +test("runner probe cannot build or benchmark and does not report a skipped benchmark as failure", () => { + const probe = job(codspeed, "runner-probe"); + const runner = block => block.match(/runs-on: (\S+)/)[1]; + assert.equal(runner(probe), runner(job(codspeed, "codspeed"))); + assert.doesNotMatch(probe, /checkout|cargo|CodSpeedHQ\/action/); + assert.match(probe, /timeout-minutes: 2/); + const probeCondition = new Function("github", "inputs", `return (${expression(probe, "if")});`); + const benchCondition = new Function("inputs", `return (${expression(job(codspeed, "codspeed"), "if")});`); + const reportCondition = new Function("github", "inputs", "always", `return (${expression(job(codspeed, "report"), "if")});`); + for (const runner_probe of [true, false]) { + const inputs = { runner_probe }; + assert.equal(Boolean(probeCondition({ event_name: "workflow_dispatch" }, inputs)), runner_probe); + assert.equal(benchCondition(inputs), !runner_probe); + assert.equal(reportCondition({ ref_name: "master" }, inputs, () => true), !runner_probe); + } + assert.equal(benchCondition({}), true); +}); From eb08d878c884902151fcc4f4173a044049fbf32f Mon Sep 17 00:00:00 2001 From: tignear Date: Sun, 25 Oct 2026 05:33:32 +0900 Subject: [PATCH 5/9] ci: use the standard Graviton CodSpeed macro runner Change-Id: Ibcbf8e2b9f1a510006e52d7d3a26fed166f30bae --- .github/workflows/codspeed.yml | 8 ++++---- CONTRIBUTING.md | 2 +- scripts/benchmark-workflows.test.mjs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.yml index b2e70046aa3..a5509aebf40 100644 --- a/.github/workflows/codspeed.yml +++ b/.github/workflows/codspeed.yml @@ -24,17 +24,17 @@ jobs: runner-probe: name: Probe CodSpeed runner if: github.event_name == 'workflow_dispatch' && inputs.runner_probe - runs-on: codspeed-macro-x64-ryzen-9950x-ubuntu-24-04 + runs-on: codspeed-macro-arm64-graviton-ubuntu-22-04 timeout-minutes: 2 steps: - - name: Verify the x64 runner is available - run: test "$(uname -m)" = x86_64 + - name: Verify the ARM64 runner is available + run: test "$(uname -m)" = aarch64 codspeed: name: CodSpeed if: inputs.runner_probe != true timeout-minutes: 60 - runs-on: codspeed-macro-x64-ryzen-9950x-ubuntu-24-04 + runs-on: codspeed-macro-arm64-graviton-ubuntu-22-04 outputs: run-id: ${{ steps.benchmarks.outputs.run-id }} permissions: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ef4e1632899..1eac4e7021c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -107,7 +107,7 @@ interpreter, native and Cranelift backends in both two-state and four-state mode wide-value latch checks, and a small sorter compilation smoke test. The 257/512-bit per-bit graph cases and sorter sizes 4/8/16/32 are measured by `benches/compilation.rs` in the existing daily/manual CodSpeed workflow. -Compilation benchmarks use CodSpeed walltime measurement on its x64 Ryzen +Compilation benchmarks use CodSpeed walltime measurement on its ARM64 Graviton Macro Runner: CPU simulation made a single 512-bit case take tens of minutes. The benchmark step has a 15-minute timeout and the complete job a 60-minute limit; a timeout is reported as failure. diff --git a/scripts/benchmark-workflows.test.mjs b/scripts/benchmark-workflows.test.mjs index cc3e564932a..5237aaedbb1 100644 --- a/scripts/benchmark-workflows.test.mjs +++ b/scripts/benchmark-workflows.test.mjs @@ -169,7 +169,7 @@ test("profiling reuse rejects pre-CLI artifacts before capture", () => { test("compilation scaling uses walltime consistently and has a bounded execution", () => { const benchmark = job(codspeed, "codspeed"); - assert.match(benchmark, /runs-on: codspeed-macro-x64-ryzen-9950x-ubuntu-24-04/); + assert.match(benchmark, /runs-on: codspeed-macro-arm64-graviton-ubuntu-22-04/); assert.match(benchmark, /timeout-minutes: 60/); assert.match(benchmark, /cargo codspeed build --locked --measurement-mode walltime -p celox --bench compilation/); assert.match(benchmark, /id: benchmarks\n timeout-minutes: 15\n uses: CodSpeedHQ\/action@v5/); From 8a2f25f96544a35aa027dea14a5da95d7d7b5246 Mon Sep 17 00:00:00 2001 From: tignear Date: Sun, 25 Oct 2026 06:06:27 +0900 Subject: [PATCH 6/9] feat(sim)!: show the regions of a time slot to a slot observer A host such as a VPI driver needs to see an edge before the flip-flop domains commit, and every settled slot. Simulation::observe_slots installs a SlotObserver: before_domains runs in every round once its processes and scheduled values have run and before its domains evaluate, end_of_slot once the slot has settled. Writes there are blocking host writes at the slot's time; the round settles them before the domains read them, and those at the end of a slot are settled at that time before the simulation advances. The compiled scheduler keeps every kernel it can. SchedulerSchema records, per kernel, the event signals it writes: the slots of the kernels and host clocks that may change an observed event signal run in the reference loop, the others stay compiled, one slot per run while an observer is installed. A differential simulation stops checking, as its shadow does not see the observer's writes. BREAKING CHANGE: native image containers are version 35; images of earlier versions no longer load. SchedulerSchema has a new public field, kernel_events. Part of #1730 Change-Id: I4ffaef0e5b3b716ec5185ff0250aeb33114fb496 --- crates/celox-design/src/lib.rs | 4 + .../src/symbolic/assembly.rs | 1 + crates/celox-runtime/src/schedule.rs | 22 ++ .../celox-runtime/src/simulation/compiled.rs | 31 ++- crates/celox-runtime/src/simulation/host.rs | 17 ++ crates/celox-runtime/src/simulation/mod.rs | 23 +- crates/celox-runtime/src/simulation/round.rs | 9 + crates/celox-runtime/src/simulation/time.rs | 4 + crates/celox/src/backend/native/image_file.rs | 2 +- crates/celox/src/lib.rs | 50 +++- crates/celox/src/scheduler.rs | 32 ++- crates/celox/src/simulation.rs | 99 +++++++- crates/celox/src/simulator.rs | 6 + crates/celox/tests/slot_observer.rs | 217 ++++++++++++++++++ 14 files changed, 499 insertions(+), 18 deletions(-) create mode 100644 crates/celox/tests/slot_observer.rs diff --git a/crates/celox-design/src/lib.rs b/crates/celox-design/src/lib.rs index 5e45cf13916..9a6ccd0d0c6 100644 --- a/crates/celox-design/src/lib.rs +++ b/crates/celox-design/src/lib.rs @@ -1058,6 +1058,9 @@ pub struct SchedulerSchema { /// The event signals a host periodic clock may drive inside the /// scheduler's slots, in the order of its clock slots. pub clocks: Vec, + /// Per process kernel, the event signals it writes, as indices into + /// [`Self::events`]; empty for a kernel the scheduler does not run. + pub kernel_events: Vec>, } impl SchedulerSchema { @@ -1069,6 +1072,7 @@ impl SchedulerSchema { fallback: self.fallback, events: self.events.into_iter().map(&mut map).collect(), clocks: self.clocks.into_iter().map(map).collect(), + kernel_events: self.kernel_events, } } } diff --git a/crates/celox-frontend-core/src/symbolic/assembly.rs b/crates/celox-frontend-core/src/symbolic/assembly.rs index 7682ec5627d..aab80fca1fd 100644 --- a/crates/celox-frontend-core/src/symbolic/assembly.rs +++ b/crates/celox-frontend-core/src/symbolic/assembly.rs @@ -2072,6 +2072,7 @@ pub fn schedule_symbolic_rtl_reporting_loops( fallback: Vec::new(), events: Vec::new(), clocks: Vec::new(), + kernel_events: Vec::new(), }); // The runtime reads counters, the signals waits watch and staged // nonblocking values directly; no unit loads a wait's signal. diff --git a/crates/celox-runtime/src/schedule.rs b/crates/celox-runtime/src/schedule.rs index b9a0e39311b..4d8e7f255e0 100644 --- a/crates/celox-runtime/src/schedule.rs +++ b/crates/celox-runtime/src/schedule.rs @@ -77,6 +77,10 @@ pub(crate) struct SchedulerRefs { /// The event id and signal of each host clock the scheduler may run, /// in the order of its clock slots. pub(crate) clocks: Vec<(usize, SignalRef)>, + /// Per process kernel, the bits of `levels` of the events it writes. + pub(crate) kernel_events: Vec, + /// Per clock slot, the bit of `levels` of its event. + pub(crate) clock_events: Vec, pub(crate) clock_next: SignalRef, pub(crate) clock_period: SignalRef, pub(crate) clock_value: SignalRef, @@ -365,6 +369,24 @@ impl ResolvedSchedule { .iter() .map(|event| backend.resolve_event_opt(event).map(|event| event.id())) .collect::>()?, + kernel_events: (0..scheduler.fallback.len()) + .map(|index| { + scheduler + .kernel_events + .get(index) + .into_iter() + .flatten() + .fold(0, |mask, &bit| mask | 1 << bit) + }) + .collect(), + clock_events: scheduler + .clocks + .iter() + .map(|clock| { + let bit = scheduler.events.iter().position(|event| event == clock)?; + Some(1 << bit) + }) + .collect::>()?, clocks: scheduler .clocks .iter() diff --git a/crates/celox-runtime/src/simulation/compiled.rs b/crates/celox-runtime/src/simulation/compiled.rs index aa78df40bca..5fff1ceb3e2 100644 --- a/crates/celox-runtime/src/simulation/compiled.rs +++ b/crates/celox-runtime/src/simulation/compiled.rs @@ -75,17 +75,19 @@ impl SimulationState { || !pending.ready.is_empty() || !pending.inactive.is_empty() || !pending.nba_queue.is_empty() - || pending - .waiters - .iter() - .any(|(process, _)| scheduler.waits.get(process).is_none_or(Option::is_none)) + || pending.waiters.iter().any(|(process, _)| { + scheduler.waits.get(process).is_none_or(Option::is_none) + || self.writes_observed(scheduler, process) + }) { return None; } let mut first = u64::MAX; let mut other = u64::MAX; for &Reverse((time, process)) in self.process_wakeups.iter() { - if scheduler.wake.get(process).is_some_and(Option::is_some) { + if scheduler.wake.get(process).is_some_and(Option::is_some) + && !self.writes_observed(scheduler, process) + { first = first.min(time); } else { other = other.min(time); @@ -100,8 +102,10 @@ impl SimulationState { let clocks = &self.scheduler.clocks; let compiled = compiled_clocks(scheduler, queue, clocks); for event in queue { - if clock_slot(scheduler, event, clocks).is_some_and(|bit| compiled >> bit & 1 != 0) - { + if clock_slot(scheduler, event, clocks).is_some_and(|bit| { + compiled >> bit & 1 != 0 + && scheduler.clock_events[bit] & self.observed_events == 0 + }) { first = first.min(event.time); } else { other = other.min(event.time); @@ -126,6 +130,15 @@ impl SimulationState { }) } + /// Whether `process` may change an event the host observes, so that + /// its slots run in the reference loop. + fn writes_observed(&self, scheduler: &SchedulerRefs, process: usize) -> bool { + scheduler + .kernel_events + .get(process) + .is_some_and(|&events| events & self.observed_events != 0) + } + /// Run the compiled scheduler for the slots up to `limit`. Returns, like /// [`Self::step_until`], the time of the last slot run. pub(super) fn run_compiled( @@ -393,6 +406,10 @@ impl SimulationState { } } executor.try_finish_timed_step(now)?; + // What the host writes after the slot is an update of its time. + if executor.take_slot_writes() { + self.host_pending = true; + } Ok(now) } } diff --git a/crates/celox-runtime/src/simulation/host.rs b/crates/celox-runtime/src/simulation/host.rs index e2dca455e4c..206b2f1cdd0 100644 --- a/crates/celox-runtime/src/simulation/host.rs +++ b/crates/celox-runtime/src/simulation/host.rs @@ -81,6 +81,23 @@ pub trait HostBoundary: UnitExecutor { output } + /// Called in every round when its processes and scheduled values have + /// run and its flip-flop domains are about to evaluate: the round's + /// edges are in state, and no domain has committed. Returns whether the + /// host wrote state; the round then settles it before the domains read + /// it. Writes to signals a wait watches are logged as in + /// [`Self::take_host_writes`]. + fn before_domains(&mut self, _timestamp: u64) -> Result { + Ok(false) + } + + /// Whether the host wrote state in [`Self::try_finish_timed_step`] + /// since the last call. The writes are updates of that slot's time: the + /// next step settles them there. + fn take_slot_writes(&mut self) -> bool { + false + } + /// Snapshot external-component inputs immediately before an event domain /// evaluates its sequential logic. fn stage_external_event( diff --git a/crates/celox-runtime/src/simulation/mod.rs b/crates/celox-runtime/src/simulation/mod.rs index 7523e231da0..05d3f8e0ecb 100644 --- a/crates/celox-runtime/src/simulation/mod.rs +++ b/crates/celox-runtime/src/simulation/mod.rs @@ -27,7 +27,7 @@ pub use wait::{Baseline, Waiter, Waiters}; use self::round::Round; use crate::{ - SimulatorErrorCode, + SignalRef, SimulatorErrorCode, backend::SimBackend, schedule::ResolvedSchedule, scheduler::{Scheduler, SimEvent}, @@ -161,6 +161,10 @@ pub struct SimulationState { slot_passes: u64, /// The loop that runs time slots, and the slots each loop ran. stats: SchedulerStats, + /// The bits of the compiled scheduler's events whose changes the host + /// observes inside a slot: the kernels and host clocks that write them + /// run in the reference loop. + observed_events: u64, } impl SimulationState { @@ -213,6 +217,7 @@ impl SimulationState { return_budget: SLOT_RETURN_BUDGET, slot_passes: 0, stats: SchedulerStats::default(), + observed_events: 0, }; state.stats.kernels = (0..state.model.processes.len()) .map(|index| match state.model.kernel_fallback.get(index) { @@ -341,6 +346,22 @@ impl SimulationState { &self.stats } + /// The signals whose changes the host observes inside a time slot (see + /// [`HostBoundary::before_domains`]). The slots in which a kernel or + /// host clock of the compiled scheduler may change an observed event + /// signal run in the reference loop, where the host sees the change + /// before any domain commits; the other kernels' slots stay compiled. + pub fn set_observed_signals(&mut self, signals: impl IntoIterator) { + let Some(scheduler) = &self.model.scheduler else { + return; + }; + self.observed_events = signals + .into_iter() + .filter_map(|signal| self.model.signal_to_id.get(&signal)) + .filter_map(|event| scheduler.events.iter().position(|id| id == event)) + .fold(0, |mask, bit| mask | 1 << bit); + } + /// [`Self::step_until`], showing the step to `observer`. An error of /// the observer replaces the step's result. pub fn step_until_observed( diff --git a/crates/celox-runtime/src/simulation/round.rs b/crates/celox-runtime/src/simulation/round.rs index 813b446c1a2..630f3fdd904 100644 --- a/crates/celox-runtime/src/simulation/round.rs +++ b/crates/celox-runtime/src/simulation/round.rs @@ -536,6 +536,15 @@ impl SimulationState { loop { let mut any_new_outer_loop_trigger = false; let mut newly_triggered = Vec::new(); + // The host sees the wave's edges before its domains commit, and + // its writes are in state before they evaluate. + if executor.before_domains(current_time)? { + for (signal, value) in executor.take_host_writes() { + self.observe_host_write(signal, &value); + } + executor.eval_comb()?; + self.observe_driven(executor.backend()); + } loop { let mut any_new_sequential_trigger = false; diff --git a/crates/celox-runtime/src/simulation/time.rs b/crates/celox-runtime/src/simulation/time.rs index f5e2bde7145..a6fee8795ab 100644 --- a/crates/celox-runtime/src/simulation/time.rs +++ b/crates/celox-runtime/src/simulation/time.rs @@ -191,6 +191,10 @@ impl SimulationState { self.step_round(executor, current_time, Vec::new(), ready, false)?; } executor.try_finish_timed_step(current_time)?; + // What the host writes after the slot is an update of its time. + if executor.take_slot_writes() { + self.host_pending = true; + } Ok(()) } diff --git a/crates/celox/src/backend/native/image_file.rs b/crates/celox/src/backend/native/image_file.rs index 0c95b249cc8..7278978181c 100644 --- a/crates/celox/src/backend/native/image_file.rs +++ b/crates/celox/src/backend/native/image_file.rs @@ -6,7 +6,7 @@ use std::{fmt, path::Path}; use super::backend::NativeProgramImage; const TRAILER_MAGIC: &[u8; 8] = b"CELOXNPI"; -const CONTAINER_VERSION: u16 = 34; +const CONTAINER_VERSION: u16 = 35; const TRAILER_SIZE: usize = 32; const FNV_OFFSET_BASIS: u64 = 0xcbf2_9ce4_8422_2325; const FNV_PRIME: u64 = 0x0000_0100_0000_01b3; diff --git a/crates/celox/src/lib.rs b/crates/celox/src/lib.rs index 28c216b193e..2ccf09b621e 100644 --- a/crates/celox/src/lib.rs +++ b/crates/celox/src/lib.rs @@ -108,7 +108,7 @@ mod host_api { }; pub use crate::debug::CompilationTraceResult; pub use crate::diagnostics::DiagnosticsOptions; - pub use crate::simulation::{Simulation, SimulationCheckpoint}; + pub use crate::simulation::{Simulation, SimulationCheckpoint, SlotObserver}; #[cfg(any( target_arch = "x86_64", feature = "arm64-codegen", @@ -169,6 +169,54 @@ mod host_api { } } + /// State access of a [`SlotObserver`] inside a time slot: reads see + /// the slot's state so far, writes are blocking writes of the host at + /// the slot's time. + pub struct SlotIo<'a, B: SimBackend = DefaultBackend> { + io: IOContext<'a, B>, + wrote: bool, + } + + impl<'a, B: SimBackend> SlotIo<'a, B> { + pub(crate) fn new(io: IOContext<'a, B>) -> Self { + Self { io, wrote: false } + } + + pub(crate) fn wrote(&self) -> bool { + self.wrote + } + + /// The stored value, with X/Z bits as their payload. + pub fn get(&self, signal: crate::SignalRef) -> crate::BigUint { + self.io.backend.get(signal) + } + + /// The stored payload and X/Z mask. + pub fn get_four_state(&self, signal: crate::SignalRef) -> (crate::BigUint, crate::BigUint) { + self.io.get_four_state(signal) + } + + pub fn set(&mut self, signal: crate::SignalRef, val: T) { + self.wrote = true; + self.io.set(signal, val); + } + + pub fn set_wide(&mut self, signal: crate::SignalRef, val: crate::BigUint) { + self.wrote = true; + self.io.set_wide(signal, val); + } + + pub fn set_four_state( + &mut self, + signal: crate::SignalRef, + val: crate::BigUint, + mask: crate::BigUint, + ) { + self.wrote = true; + self.io.set_four_state(signal, val, mask); + } + } + #[cfg(any( target_arch = "x86_64", feature = "arm64-codegen", diff --git a/crates/celox/src/scheduler.rs b/crates/celox/src/scheduler.rs index 6287e96a9ee..ad39a81df2e 100644 --- a/crates/celox/src/scheduler.rs +++ b/crates/celox/src/scheduler.rs @@ -71,15 +71,36 @@ pub(crate) fn attach(program: &mut LaidOutProgram) { return; }; let kernels = program.runtime.runtime_schema.processes.len(); - let (fallback, unit, events, clocks) = match Plan::new(program, &schema.slots) { - Err(reason) => (vec![Some(reason); kernels], None, Vec::new(), Vec::new()), + let (fallback, unit, events, clocks, kernel_events) = match Plan::new(program, &schema.slots) { + Err(reason) => ( + vec![Some(reason); kernels], + None, + Vec::new(), + Vec::new(), + vec![Vec::new(); kernels], + ), Ok(plan) => { let fallback = plan.fallback.clone(); // Without kernels, slots of host clocks alone. let unit = (plan.kernels.iter().any(Option::is_some) || !plan.clocks.is_empty()) .then(|| plan.generate(program, &schema.slots)); - let events = plan - .edged() + let edged = plan.edged(); + let kernel_events = plan + .kernels + .iter() + .map(|kernel| { + kernel + .iter() + .flat_map(|kernel| &kernel.writes) + .map(|event| { + edged + .binary_search(event) + .expect("the scheduler's kernels write edged events") + }) + .collect() + }) + .collect(); + let events = edged .into_iter() .map(|event| plan.events[event].signal) .collect(); @@ -88,7 +109,7 @@ pub(crate) fn attach(program: &mut LaidOutProgram) { .iter() .map(|&event| plan.events[event].signal) .collect(); - (fallback, unit, events, clocks) + (fallback, unit, events, clocks, kernel_events) } }; let scheduler = program @@ -100,6 +121,7 @@ pub(crate) fn attach(program: &mut LaidOutProgram) { scheduler.fallback = fallback; scheduler.events = events; scheduler.clocks = clocks; + scheduler.kernel_events = kernel_events; if let Some(unit) = unit { scheduler.unit = Some(program.sir.processes.len()); program.sir.processes.push(unit); diff --git a/crates/celox/src/simulation.rs b/crates/celox/src/simulation.rs index fa8d71e731d..4023e326033 100644 --- a/crates/celox/src/simulation.rs +++ b/crates/celox/src/simulation.rs @@ -57,6 +57,33 @@ impl std::fmt::Debug for SimulationCheckpoint { /// A timed simulation wrapper around the core logic engine. /// +/// What a host observes inside the time slots of a [`Simulation`], in +/// addition to the state between steps: changes of its signals before the +/// flip-flop domains commit, and the settled slot. +/// +/// A slot observer is how a host such as a VPI driver keeps the regions of +/// IEEE 1800-2023 4.4 inside one time slot. Its writes are blocking writes +/// of the host at the slot's time, like [`Simulation::modify`]. +pub trait SlotObserver { + /// A round of the slot has run its processes and scheduled values and + /// is about to evaluate its flip-flop domains: the round's edges are in + /// state and no nonblocking update has been made. Writes are in state + /// before the domains evaluate. + fn before_domains(&mut self, io: &mut crate::SlotIo<'_, B>, time: u64); + + /// The slot has settled: every region is empty. Writes are updates of + /// `time`, which the simulation settles there before it advances. + /// + /// This is where an observer finds the changes of signals that are not + /// among the event signals it watches: after the nonblocking updates of + /// the slot and the combinational settle that follows them. That is an + /// implementation choice, not an order the standard fixes: the observer's + /// callback and the updates the settle makes are active events of the + /// same region, which a simulator may process in any order (IEEE + /// 1800-2023 4.7). + fn end_of_slot(&mut self, io: &mut crate::SlotIo<'_, B>, time: u64); +} + /// Manages simulation time, periodic clocks, and an event queue. /// /// The default type parameter uses the host's [`crate::DefaultBackend`]. @@ -218,14 +245,27 @@ impl HostBoundary for Simulator { Ok(()) } + fn before_domains(&mut self, timestamp: u64) -> Result { + Ok(!self.frozen + && self.show_slot(timestamp, |observer, io, time| { + observer.before_domains(io, time) + })) + } + + fn take_slot_writes(&mut self) -> bool { + std::mem::take(&mut self.slot_writes) + } + fn compiled_slots(&self) -> celox_runtime::CompiledSlots { use celox_runtime::CompiledSlots; if self.frozen || !self.components.is_empty() || !self.backend.runs_compiled_scheduler() { return CompiledSlots::None; } - // Waveforms record, and the heap collects, at every slot boundary. + // Waveforms record, the heap collects and a slot observer looks at + // every slot boundary. let vcd = &self.sv_vcd; - if self.vcd_writer.is_some() + if self.slot_observer.is_some() + || self.vcd_writer.is_some() || vcd.path.is_some() || vcd.started.is_some() || vcd.pending @@ -254,7 +294,35 @@ impl HostBoundary for Simulator { })?; self.dirty = false; self.try_dump_unless_rewound(timestamp) - .map_err(|error| Halt::Error(vcd_dump_runtime_error(error))) + .map_err(|error| Halt::Error(vcd_dump_runtime_error(error)))?; + if !self.frozen { + self.slot_writes |= self.show_slot(timestamp, |observer, io, time| { + observer.end_of_slot(io, time) + }); + } + Ok(()) + } +} + +impl Simulator { + /// Show the slot observer, if any, the state at `time`. Returns whether + /// it wrote. + fn show_slot( + &mut self, + time: u64, + show: impl FnOnce(&mut dyn SlotObserver, &mut crate::SlotIo<'_, B>, u64), + ) -> bool { + let Some(observer) = self.slot_observer.as_deref_mut() else { + return false; + }; + let mut io = crate::SlotIo::new(crate::IOContext { + backend: &mut self.backend, + watch: &mut self.host_watch, + }); + show(observer, &mut io, time); + let wrote = io.wrote(); + self.dirty |= wrote; + wrote } } @@ -528,6 +596,31 @@ impl Simulation { Ok(()) } + /// Show every time slot to `observer`, which watches `signals`. + /// + /// The slots in which a compiled process kernel or host clock may change + /// an event signal among `signals` run in the reference loop, where + /// [`SlotObserver::before_domains`] sees the change before any domain + /// commits; the other kernels' slots stay compiled, one slot per run so + /// that [`SlotObserver::end_of_slot`] sees each of them. Changes of other + /// signals are the observer's to find, at either point. A differential + /// simulation stops checking: the shadow does not see the observer's + /// writes. + pub fn observe_slots(&mut self, observer: Box>, signals: &[SignalRef]) { + self.simulator.slot_observer = Some(observer); + self.state.set_observed_signals(signals.iter().copied()); + if self.shadow.take().is_some() { + self.unchecked = Some("a slot observer writes state the shadow does not see"); + } + } + + /// Stop showing the time slots to the observer of + /// [`Self::observe_slots`], and return it. + pub fn stop_observing_slots(&mut self) -> Option>> { + self.state.set_observed_signals([]); + self.simulator.slot_observer.take() + } + /// Register a clock signal and its period, enqueuing the first edge. /// Odd periods alternate floor/ceil half periods. Periods below two /// time units use a two-unit period so both phases advance time. diff --git a/crates/celox/src/simulator.rs b/crates/celox/src/simulator.rs index ffccc1394d2..3d73eee6348 100644 --- a/crates/celox/src/simulator.rs +++ b/crates/celox/src/simulator.rs @@ -174,6 +174,10 @@ mod host { pub(crate) frozen: bool, /// Host writes a timed simulation observes one at a time. pub(crate) host_watch: celox_runtime::HostWatch, + /// What a timed simulation's host observes inside its time slots. + pub(crate) slot_observer: Option>>, + /// The slot observer wrote at the end of the last time slot. + pub(crate) slot_writes: bool, /// Runtime-event sequence up to which a timed simulation looked for /// `$finish` records. pub(crate) finish_scan_seq: u64, @@ -896,6 +900,8 @@ mod host { derived_settle, frozen: false, host_watch: Default::default(), + slot_observer: None, + slot_writes: false, finish_scan_seq: 0, finish_sites: false, event_edges, diff --git a/crates/celox/tests/slot_observer.rs b/crates/celox/tests/slot_observer.rs new file mode 100644 index 00000000000..0731e515e57 --- /dev/null +++ b/crates/celox/tests/slot_observer.rs @@ -0,0 +1,217 @@ +//! A host that observes the regions inside a time slot, as a VPI driver +//! does (#1730): edges before the flip-flop domains commit, and settled +//! slots. +#![cfg(feature = "systemverilog")] + +use std::cell::RefCell; +use std::path::Path; +use std::rc::Rc; + +use celox::{SignalRef, SimBackend, Simulation, SlotIo, SlotObserver}; + +fn simulation(source: &str) -> Simulation { + Simulation::from_sv_sources(vec![(source, Path::new("top.sv"))], "Top") + .build() + .unwrap() +} + +const COUNTER: &str = r#"`timescale 1ns/1ns +module Top; + logic clk = 0; + logic [7:0] q = 0; + logic [7:0] d = 0; + logic [7:0] ticks = 0; + always #5 clk = ~clk; + always #7 ticks = ticks + 1; + always_ff @(posedge clk) q <= q + 1; +endmodule +"#; + +/// Records `watched` at every rise of `clk` before the domains commit, and +/// writes `write` there if set. +struct Edges { + clk: SignalRef, + watched: SignalRef, + write: Option, + level: u8, + seen: Rc>>, +} + +impl SlotObserver for Edges { + fn before_domains(&mut self, io: &mut SlotIo<'_, B>, time: u64) { + let level = u8::try_from(io.get(self.clk)).unwrap(); + if level == 1 && self.level == 0 { + let value = u64::try_from(io.get(self.watched)).unwrap(); + self.seen.borrow_mut().push((time, value)); + if let Some(write) = self.write { + io.set(write, time as u8); + } + } + self.level = level; + } + + fn end_of_slot(&mut self, _: &mut SlotIo<'_, B>, _: u64) {} +} + +#[test] +fn an_observed_edge_is_seen_before_the_domains_commit() { + let mut sim = simulation(COUNTER); + let seen = Rc::new(RefCell::new(Vec::new())); + let clk = sim.signal("clk"); + let observer = Edges { + clk, + watched: sim.signal("q"), + write: None, + level: 0, + seen: Rc::clone(&seen), + }; + sim.observe_slots(Box::new(observer), &[clk]); + sim.run_until(40).unwrap(); + // The rises at 5, 15, 25 and 35 see the count before their update. + assert_eq!(*seen.borrow(), vec![(5, 0), (15, 1), (25, 2), (35, 3)]); + assert_eq!(sim.get(sim.signal("q")), 4u8.into()); +} + +#[test] +fn only_the_kernels_that_write_an_observed_event_leave_compiled_slots() { + let mut plain = simulation(COUNTER); + plain.run_until(200).unwrap(); + let unobserved = plain.scheduler_stats().compiled_slots; + assert!(unobserved > 0); + + let mut sim = simulation(COUNTER); + let clk = sim.signal("clk"); + let observer = Edges { + clk, + watched: sim.signal("q"), + write: None, + level: 0, + seen: Rc::default(), + }; + sim.observe_slots(Box::new(observer), &[clk]); + sim.run_until(200).unwrap(); + let observed = sim.scheduler_stats().compiled_slots; + // The slots of `ticks` alone (7, 14, 21, ... off the clock's) stay + // compiled; those of the clock run in the reference loop. + assert!( + observed > 0 && observed < unobserved, + "{observed} of {unobserved}" + ); + assert_eq!(sim.get(sim.signal("q")), plain.get(plain.signal("q"))); + assert_eq!( + sim.get(sim.signal("ticks")), + plain.get(plain.signal("ticks")) + ); +} + +#[test] +fn a_write_before_the_domains_is_what_they_sample() { + let source = r#"`timescale 1ns/1ns +module Top; + logic clk = 0; + logic [7:0] d = 0; + logic [7:0] q = 0; + always #5 clk = ~clk; + always_ff @(posedge clk) q <= d; +endmodule +"#; + let mut sim = simulation(source); + let clk = sim.signal("clk"); + let d = sim.signal("d"); + let observer = Edges { + clk, + watched: d, + write: Some(d), + level: 0, + seen: Rc::default(), + }; + sim.observe_slots(Box::new(observer), &[clk]); + sim.run_until(16).unwrap(); + // The rise at 15 samples the 15 the host wrote at that edge. + assert_eq!(sim.get(sim.signal("q")), 15u8.into()); +} + +/// At the end of every slot, records changes of `watched` and sets `flag` +/// once `watched` reaches `at`. +struct Settled { + watched: SignalRef, + flag: SignalRef, + at: u64, + last: u64, + seen: Rc>>, +} + +impl SlotObserver for Settled { + fn before_domains(&mut self, _: &mut SlotIo<'_, B>, _: u64) {} + + fn end_of_slot(&mut self, io: &mut SlotIo<'_, B>, time: u64) { + let value = u64::try_from(io.get(self.watched)).unwrap(); + if value != self.last { + self.seen.borrow_mut().push((time, value)); + if value == self.at { + io.set(self.flag, 1u8); + } + } + self.last = value; + } +} + +#[test] +fn a_settled_slot_shows_every_change_and_its_writes_stay_in_the_slot() { + let source = r#"`timescale 1ns/1ns +module Top; + logic clk = 0; + logic [7:0] q = 0; + logic flag = 0; + always #5 clk = ~clk; + always_ff @(posedge clk) q <= q + 1; + initial begin + wait (flag); + $display("flag at %0t q=%0d", $time, q); + end +endmodule +"#; + let mut sim = simulation(source); + let seen = Rc::new(RefCell::new(Vec::new())); + let watched = sim.signal("q"); + let observer = Settled { + watched, + flag: sim.signal("flag"), + at: 2, + last: 0, + seen: Rc::clone(&seen), + }; + sim.observe_slots(Box::new(observer), &[watched]); + sim.run_until(40).unwrap(); + // Every slot of the compiled clock is seen, one per run. + assert_eq!(*seen.borrow(), vec![(5, 1), (15, 2), (25, 3), (35, 4)]); + assert!(sim.scheduler_stats().compiled_slots > 0); + // The flag written at the end of slot 15 wakes the process at 15. + assert_eq!( + sim.drain_runtime_events(), + vec![celox::RuntimeEvent::Display { + message: b"flag at 15 q=2".to_vec() + }] + ); +} + +#[test] +fn a_differential_simulation_stops_checking_an_observed_simulation() { + let mut sim = Simulation::from_sv_sources(vec![(COUNTER, Path::new("top.sv"))], "Top") + .scheduler_mode(celox::SchedulerMode::Differential) + .build() + .unwrap(); + let watched = sim.signal("q"); + let observer = Settled { + watched, + flag: sim.signal("d"), + at: u64::MAX, + last: 0, + seen: Rc::default(), + }; + sim.observe_slots(Box::new(observer), &[watched]); + sim.run_until(40).unwrap(); + let stats = sim.scheduler_stats(); + assert_eq!(stats.checked_steps, 0); + assert!(stats.unchecked.is_some()); +} From 92a858edf7b5645fa56f3472039728aa6c1c13b9 Mon Sep 17 00:00:00 2001 From: tignear Date: Sun, 25 Oct 2026 06:06:27 +0900 Subject: [PATCH 7/9] chore: observe a signal in the scheduler bench Change-Id: I5737eb89d7389cb84585ee295af57fac35d9ccc4 --- crates/celox/examples/sched_bench.rs | 54 ++++++++++++++++++++++++---- 1 file changed, 48 insertions(+), 6 deletions(-) diff --git a/crates/celox/examples/sched_bench.rs b/crates/celox/examples/sched_bench.rs index 2ca280dd104..332dccb682a 100644 --- a/crates/celox/examples/sched_bench.rs +++ b/crates/celox/examples/sched_bench.rs @@ -1,6 +1,6 @@ //! Timed-scheduler overhead benchmark for instruction-count comparisons. //! -//! Usage: `sched_bench [default|reference|compiled] [native|interp]` +//! Usage: `sched_bench [default|reference|compiled] [native|interp] [observe=]` //! //! Every variant clocks the same 64 registers `rK <= rK + (seed ^ K)`: //! @@ -17,7 +17,9 @@ //! //! The optional third argument selects the timed scheduler (hidden builder //! option), by default the library's; the fourth the backend, by default the -//! host's native one. +//! host's native one. With a fifth, `observe=`, a timed variant runs +//! with a slot observer that counts the changes of `` at the end of +//! every slot, as a VPI value-change callback does. //! //! The scheduler's cost per cycle is the difference of the whole-program //! instruction counts of two runs, which cancels compilation: @@ -138,10 +140,18 @@ fn main() { Some(other) => panic!("unknown scheduler {other}: expected reference or compiled"), }; let builder = celox::Simulation::from_sv_sources(sources, "Top").scheduler_mode(mode); + let observed = args + .get(5) + .map(|arg| arg.strip_prefix("observe=").expect("observe=")); if interpreter { - run(builder.build_interpreter().unwrap(), variant, cycles) + run( + builder.build_interpreter().unwrap(), + variant, + cycles, + observed, + ) } else { - run(builder.build().unwrap(), variant, cycles) + run(builder.build().unwrap(), variant, cycles, observed) } }; println!("{variant} {cycles} out={out:?}"); @@ -159,12 +169,42 @@ fn tick(mut sim: celox::Simulator, cycles: u64) -> celo sim.get(out) } +/// Counts the changes of one signal at the end of every slot. +struct Changes { + signal: celox::SignalRef, + last: Option, + count: std::rc::Rc>, +} + +impl celox::SlotObserver for Changes { + fn before_domains(&mut self, _: &mut celox::SlotIo<'_, B>, _: u64) {} + + fn end_of_slot(&mut self, io: &mut celox::SlotIo<'_, B>, _: u64) { + let value = io.get(self.signal); + if self.last.as_ref() != Some(&value) { + self.count.set(self.count.get() + 1); + self.last = Some(value); + } + } +} + /// The timed variants: run `cycles` clock periods. fn run( mut sim: celox::Simulation, variant: &str, cycles: u64, + observed: Option<&str>, ) -> celox::BigUint { + let changes = std::rc::Rc::new(std::cell::Cell::new(0)); + if let Some(path) = observed { + let signal = sim.signal(path); + let observer = Changes { + signal, + last: None, + count: std::rc::Rc::clone(&changes), + }; + sim.observe_slots(Box::new(observer), &[signal]); + } if variant == "ac" { let seed = sim.signal("seed"); sim.modify(|io| io.set(seed, 7u32)).unwrap(); @@ -179,8 +219,10 @@ fn run( sim.run_until(cycles * 10).unwrap(); let stats = sim.scheduler_stats(); println!( - "compiled slots {}, kernels {:?}", - stats.compiled_slots, stats.kernels + "compiled slots {}, kernels {:?}, observed changes {}", + stats.compiled_slots, + stats.kernels, + changes.get() ); let out = sim.signal("out"); sim.get(out) From a8d379a7e33f31b2e5369b374e478127476aaf3f Mon Sep 17 00:00:00 2001 From: tignear Date: Fri, 23 Oct 2026 07:42:46 +0900 Subject: [PATCH 8/9] feat(sim)!: report severity, location and assertion of severity tasks IEEE 1800-2023 20.10 has every severity task report its severity, the file and line of the call, the scope that issued it and the simulation time. Celox lost most of this: - `$info`, `$warning` and `$error` all became `RuntimeEvent::AssertContinue`, so the severity was gone; - events carried no location and no scope; - the `celox` command failed a run on `$warning` and `$info`. This is the first part of SVA stage 1 (#89). Deferred assertions and concurrent assertions will report through the same record. **`RuntimeEvent::Report`.** It replaces `AssertContinue` and `AssertFatal`. A `Report` has: - `severity`: `Info`, `Warning`, `Error` or `Fatal`; - `message`: the formatted bytes, as before; - `scope`: from the drain context, else the scope of the site; - `location`: the file and line as `` `__FILE__ `` and `` `__LINE__ `` give them, so `` `line `` directives apply; - `assertion`: for a report from an action block of an immediate assertion, its statement label (which names it in its scope, 16.3), `assert`/`assume`/`cover`, and whether the pass or the fail action issued it. The default `$error` of an `assert` or `assume` without a fail action has the location of the assertion. Severity tasks in subroutines the action block calls are not attributed; - `time`: the time of the drain context. The VPI host drains at each callback, so its times are exact. A later change stamps events at the end of their time slot for every host. `Report::render` formats a report as `Error: file:line: message`, then the time and the scope. The VPI host and the `celox` command print reports this way. **Design metadata.** `RuntimeEventKind::Report(Severity)` replaces `AssertContinue` and `AssertFatal`. Veryl's `$assert` is a fatal report and `$assert_continue` an error. `RuntimeEventSite` has `location` and `assertion` (serde default: none). The SV analyzer records the logical file and line in `SourceSpan` and attributes severity tasks to their assertion in `Stmt::SystemTask::assertion`. A task of a nested assertion keeps the attribution of the inner one. The native image container version is 35. **Failures.** - The `celox` command fails a run only on `$error` and `$fatal`. - The Veryl native testbench and the SV suite harness count only errors and fatal reports as failures. They print info and warning reports like `$display`. - `$fatal` still ends the simulation with an error. - lydite's proof backend (`lydite/conformance/veryl-proof`) accepts reports below `Fatal` where it accepted `AssertContinue`, and still fails closed on fatal ones. - New `crates/celox/tests/sv_reports.rs` on the interpreter, cranelift, native and wasm backends: - `$info`, `$warning` and `$error` give their severity, message, line and scope; - action blocks of a labeled `assert` (with a `$warning` fail action and with the default `$error`), a labeled `cover` and an unlabeled `assume` name their assertion and outcome; - an `always_comb` report keeps its location; - a `` `line `` directive sets the file and line; - a failing assertion in the action block of another reports the inner one; - plus a unit test of `Report::render`. - New lydite unit test `test_events.test_only_nonfatal_runtime_events_are_observed`: `Display`, `Write` and reports up to `Error` are observed, and `Fatal`, `Finish` and `Stop` fail closed. The `bridge` job's veryl-proof gate rejected `flip_flop::test_ff_assert_message_output_argument_is_eager` without it. - New `celox` command test: a run fails on `$error` but not on `$info` or `$warning`, and each is printed with its severity and location. - Existing tests that compare drained events now compare them without the report context, which they do not check. Their messages and severities are unchanged. - `cargo nextest run` with CI's features (`celox/systemverilog,celox-test-suite/verilator,celox-test-suite/icarus`): - celox and celox-vpi: 13,548 passed; - celox-frontend-{core,sv,veryl}, celox-sv-analyzer, celox-runtime, celox-design, celox-slt, celox-test-suite and celox-napi: 1,294 passed. - sv-tests conformance (`conformance/sv-tests/run.py`): unchanged from `expected.tsv`. - `cargo clippy --workspace --all-targets` with CI's features and `-D warnings`; clippy of `celox` without default features; `cargo fmt --check`. - `celox::RuntimeEvent::AssertContinue` and `AssertFatal` are replaced by `RuntimeEvent::Report(Report)`. - `celox_design::RuntimeEventKind::AssertContinue` and `AssertFatal` are replaced by `RuntimeEventKind::Report(Severity)`. - `celox_design::RuntimeEventSite` has the new fields `location` and `assertion`. - `celox_sv_analyzer::ir::SourceSpan` has the new fields `logical_path` and `line`, and `Stmt::SystemTask` has `assertion`. - The `celox` command no longer fails a run on `$info` or `$warning`, and prints reports with their severity and location. Change-Id: I4abb3cc497c11a31008ec8429fedaf365b4689a1 --- crates/celox-design/src/lib.rs | 83 ++- .../src/symbolic/assembly.rs | 20 +- crates/celox-frontend-sv/src/lowering.rs | 6 +- crates/celox-frontend-sv/src/lowering/comb.rs | 33 +- crates/celox-frontend-sv/src/lowering/ff.rs | 22 +- .../src/lowering/procedural.rs | 35 +- .../celox-frontend-veryl/src/lowering/ff.rs | 9 +- .../src/lowering/logic_tree/effect.rs | 26 +- crates/celox-frontend-veryl/src/testbench.rs | 8 +- .../celox-sv-analyzer/src/ast/procedural.rs | 38 +- .../src/ast/procedural/control.rs | 42 +- crates/celox-sv-analyzer/src/procedural.rs | 52 +- crates/celox-vpi/src/bin/celox.rs | 43 +- crates/celox-vpi/src/lib.rs | 17 +- crates/celox/examples/sv_tests.rs | 18 +- crates/celox/src/backend/native/image_file.rs | 2 +- .../celox/src/backend/native/runtime_image.rs | 6 +- crates/celox/src/lib.rs | 7 +- crates/celox/src/simulator.rs | 89 ++- crates/celox/src/simulator/host/file_io.rs | 2 + crates/celox/src/testbench.rs | 16 +- crates/celox/tests/comb_observer.rs | 554 +++++++++--------- crates/celox/tests/flip_flop.rs | 224 +++---- crates/celox/tests/floating_point_display.rs | 42 +- .../tests/four_state_expression_semantics.rs | 32 +- .../frontends/systemverilog/floating_point.rs | 20 +- .../tests/frontends/systemverilog/suite.rs | 15 +- .../systemverilog/system_functions.rs | 195 +++--- .../frontends/systemverilog/tagged_unions.rs | 45 +- crates/celox/tests/runtime_api.rs | 68 ++- crates/celox/tests/shared_jit_cache.rs | 56 +- crates/celox/tests/sv_reports.rs | 193 ++++++ crates/celox/tests/sv_update_events.rs | 2 +- docs/guide/systemverilog-reference.md | 15 + docs/guide/writing-tests.md | 2 +- docs/ja/guide/systemverilog-reference.md | 12 + docs/ja/guide/writing-tests.md | 2 +- lydite/conformance/veryl-proof/README.md | 5 +- .../conformance/veryl-proof/proof_backend.py | 4 +- .../veryl-proof/tests/test_events.py | 13 + 40 files changed, 1373 insertions(+), 700 deletions(-) create mode 100644 crates/celox/tests/sv_reports.rs diff --git a/crates/celox-design/src/lib.rs b/crates/celox-design/src/lib.rs index 5e45cf13916..5af0b9b685c 100644 --- a/crates/celox-design/src/lib.rs +++ b/crates/celox-design/src/lib.rs @@ -86,18 +86,86 @@ pub struct TriggerSet { pub resets: Vec, } -#[derive(Clone, Copy, Debug, Serialize, Deserialize)] +#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] pub enum RuntimeEventKind { Display, Write, - AssertContinue, - AssertFatal, + /// A message of a severity task, or of a Veryl assertion + /// (IEEE 1800-2023 20.10). [`Severity::Fatal`] ends the simulation with + /// an error. + Report(Severity), /// `$finish` executed by the design (IEEE 1800-2023 20.2). Finish, /// `$stop` executed by the design (IEEE 1800-2023 20.2). Stop, } +impl RuntimeEventKind { + /// A report that ends the simulation with an error. + pub fn is_fatal(self) -> bool { + self == Self::Report(Severity::Fatal) + } +} + +/// The severity of a report (IEEE 1800-2023 20.10). +#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize)] +pub enum Severity { + /// `$info`: a message of no specific severity. + Info, + /// `$warning`. + Warning, + /// `$error`, and the default action of a failed `assert` or `assume`. + Error, + /// `$fatal`. + Fatal, +} + +/// Where a report is written: the file and line of `__FILE__` and +/// `__LINE__` at the task call (IEEE 1800-2023 20.10). +#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)] +pub struct ReportLocation { + pub file: String, + pub line: usize, +} + +/// The assertion whose action block issues a report. +#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)] +pub struct AssertionSite { + /// The statement label, which names the assertion within its scope + /// (IEEE 1800-2023 16.3). + pub label: Option, + pub directive: AssertionDirective, + pub deferral: AssertionDeferral, + pub outcome: AssertionOutcome, +} + +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)] +pub enum AssertionDirective { + Assert, + Assume, + Cover, +} + +/// When an assertion reports (IEEE 1800-2023 16.4). +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)] +pub enum AssertionDeferral { + /// A simple immediate assertion: at once. + None, + /// `#0`: in the Reactive region. + Observed, + /// `final`: in the Postponed region. + Final, +} + +/// Which action block of an assertion issues a report. +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)] +pub enum AssertionOutcome { + /// The pass action, or the statement of a `cover`. + Pass, + /// The fail action. + Fail, +} + /// How a runtime event site sizes its formatted arguments. #[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Serialize, Deserialize)] pub enum DisplaySizing { @@ -118,6 +186,11 @@ pub struct RuntimeEventSite { pub sizing: DisplaySizing, /// Fully elaborated module-instance scope that emitted this event. pub scope: Option, + #[serde(default)] + pub location: Option, + /// The assertion whose action issues this report. + #[serde(default)] + pub assertion: Option, pub arg_widths: Vec, pub arg_signed: Vec, pub arg_is_string: Vec, @@ -1883,10 +1956,12 @@ mod tests { let mut runtime = RuntimeSchema::default(); runtime.runtime_errors.insert(1, error.clone()); runtime.runtime_event_sites.push(RuntimeEventSite { - kind: RuntimeEventKind::AssertFatal, + kind: RuntimeEventKind::Report(Severity::Fatal), template: Some("failed".to_string()), sizing: DisplaySizing::Veryl, scope: None, + location: None, + assertion: None, arg_widths: Vec::new(), arg_signed: Vec::new(), arg_is_string: Vec::new(), diff --git a/crates/celox-frontend-core/src/symbolic/assembly.rs b/crates/celox-frontend-core/src/symbolic/assembly.rs index 7682ec5627d..de8a356d78a 100644 --- a/crates/celox-frontend-core/src/symbolic/assembly.rs +++ b/crates/celox-frontend-core/src/symbolic/assembly.rs @@ -1085,7 +1085,7 @@ pub fn schedule_symbolic_rtl_reporting_loops( &unpacked_element_widths, )?; for (site_id, site) in runtime_event_sites.iter().enumerate() { - if !matches!(site.kind, RuntimeEventKind::AssertFatal) { + if !site.kind.is_fatal() { continue; } runtime_errors @@ -4224,11 +4224,10 @@ fn build_comb_observer_capture_paths( | RuntimeEventKind::Finish | RuntimeEventKind::Stop ); - let fatal_error_code = matches!( - sites[observer.site_id as usize].kind, - RuntimeEventKind::AssertFatal - ) - .then_some(observer.site_id as i64); + let fatal_error_code = sites[observer.site_id as usize] + .kind + .is_fatal() + .then_some(observer.site_id as i64); let pre_lower_nodes = observer_pre_lower_nodes(observer, arena); for idx in &order_after { comb_blocks[idx.0] @@ -4281,11 +4280,10 @@ fn build_comb_observer_capture_paths( | RuntimeEventKind::Finish | RuntimeEventKind::Stop ); - let member_fatal_error_code = matches!( - sites[member.site_id as usize].kind, - RuntimeEventKind::AssertFatal - ) - .then_some(member.site_id as i64); + let member_fatal_error_code = sites[member.site_id as usize] + .kind + .is_fatal() + .then_some(member.site_id as i64); let member_expr = match member .loop_runner .or(member.guard) diff --git a/crates/celox-frontend-sv/src/lowering.rs b/crates/celox-frontend-sv/src/lowering.rs index 8cf8c077ad4..37b7d1f199f 100644 --- a/crates/celox-frontend-sv/src/lowering.rs +++ b/crates/celox-frontend-sv/src/lowering.rs @@ -12,9 +12,9 @@ use std::path::Path; use celox_design::{ BinaryOp, BitAccess, DisplaySizing, DomainKind, ExternFunction, ExternSignature, ExternType, InitialStateData, InitialStateValue, ModuleId, NbaSite, PROCESS_DELAY_WIDTH, - PROCESS_STATUS_WIDTH, PortTypeKind, ProcessSlots, RegionedVarAddrBase, RuntimeErrorInfo, - RuntimeEventKind, RuntimeEventSite, STABLE_REGION, TIME_SLOT_WIDTH, TriggerSet, UnaryOp, - VarAtomBase, WORKING_REGION, WaitSite, + PROCESS_STATUS_WIDTH, PortTypeKind, ProcessSlots, RegionedVarAddrBase, ReportLocation, + RuntimeErrorInfo, RuntimeEventKind, RuntimeEventSite, STABLE_REGION, Severity, TIME_SLOT_WIDTH, + TriggerSet, UnaryOp, VarAtomBase, WORKING_REGION, WaitSite, }; use celox_frontend_core::process::PROCESS_RESUME_WIDTH; use celox_frontend_core::symbolic::artifact::{ diff --git a/crates/celox-frontend-sv/src/lowering/comb.rs b/crates/celox-frontend-sv/src/lowering/comb.rs index c9117dac590..ecaee3626b9 100644 --- a/crates/celox-frontend-sv/src/lowering/comb.rs +++ b/crates/celox-frontend-sv/src/lowering/comb.rs @@ -2183,6 +2183,7 @@ impl<'p, 'a> Comb<'p, 'a> { task: sv::ir::SystemTask::Readmem(format), args, site, + .. } => { self.readmem(&mut store, frames, *format, args, site.as_ref())?; Ok(store) @@ -2203,8 +2204,20 @@ impl<'p, 'a> Comb<'p, 'a> { sv::ir::Stmt::SystemTask { task, .. } if self.initial => Err(unsupported(format!( "system task `{task}` inside an initial block" ))), - sv::ir::Stmt::SystemTask { task, args, .. } => { - self.system_task(&mut store, frames, *task, args)?; + sv::ir::Stmt::SystemTask { + task, + args, + site, + assertion, + } => { + self.system_task( + &mut store, + frames, + *task, + args, + site.as_ref(), + assertion.as_ref(), + )?; Ok(store) } } @@ -3456,6 +3469,8 @@ impl<'p, 'a> Comb<'p, 'a> { frames: &[Frame], task: sv::ir::SystemTask, args: &[sv::ir::SystemTaskArg], + site: Option<&sv::ir::SourceSpan>, + assertion_site: Option<&celox_design::AssertionSite>, ) -> Result<(), sv::AnalyzerError> { let kind = system_task_kind(task).ok_or_else(|| unsupported(format!("system task `{task}`")))?; @@ -3529,13 +3544,7 @@ impl<'p, 'a> Comb<'p, 'a> { arg_widths.push(self.width(node)); captured.push(self.capture(node)?); } - let event_kind = match &kind { - SystemTaskKind::Print(kind, _) => *kind, - SystemTaskKind::Control(kind) => *kind, - SystemTaskKind::Message => RuntimeEventKind::AssertContinue, - SystemTaskKind::Fatal => RuntimeEventKind::AssertFatal, - SystemTaskKind::Assertion(kind) => *kind, - }; + let event_kind = kind.event_kind(); let condition = self.path_condition()?; let guard = if let Some(passed) = assertion { // An assertion fires only on failure and only on the active path. @@ -3554,10 +3563,10 @@ impl<'p, 'a> Comb<'p, 'a> { Some(node) } // Assertion sites fire when their guard is false. - (SystemTaskKind::Message | SystemTaskKind::Fatal, None) => { + (SystemTaskKind::Message(_) | SystemTaskKind::Fatal, None) => { Some(self.constant(0, 1)?) } - (SystemTaskKind::Message | SystemTaskKind::Fatal, Some((node, sources))) => { + (SystemTaskKind::Message(_) | SystemTaskKind::Fatal, Some((node, sources))) => { observed.extend(sources); Some(slt_not(self.arena, &mut self.consts, node)?) } @@ -3594,6 +3603,8 @@ impl<'p, 'a> Comb<'p, 'a> { template, sizing: DisplaySizing::Ieee, scope: None, + location: report_location(site), + assertion: assertion_site.cloned(), arg_widths, arg_signed, arg_is_string, diff --git a/crates/celox-frontend-sv/src/lowering/ff.rs b/crates/celox-frontend-sv/src/lowering/ff.rs index 5a8236e21a8..1b1801667a5 100644 --- a/crates/celox-frontend-sv/src/lowering/ff.rs +++ b/crates/celox-frontend-sv/src/lowering/ff.rs @@ -957,6 +957,7 @@ impl<'p, 'a> Ff<'p, 'a> { ), ], None, + None, )?; let (_, name) = self.m.temp("tagged_member", *width, *signed, true); self.assign(&sv::ir::LValue::Ident(name.clone()), value)?; @@ -2023,6 +2024,7 @@ impl<'p, 'a> Ff<'p, 'a> { ), ], None, + None, )?; } Ok(()) @@ -2990,9 +2992,12 @@ impl<'p, 'a> Ff<'p, 'a> { self.eval(expr, None)?; Ok(true) } - sv::ir::Stmt::SystemTask { task, args, site } => { - self.system_task(*task, args, site.as_ref()) - } + sv::ir::Stmt::SystemTask { + task, + args, + site, + assertion, + } => self.system_task(*task, args, site.as_ref(), assertion.as_ref()), } } @@ -3003,6 +3008,7 @@ impl<'p, 'a> Ff<'p, 'a> { task: sv::ir::SystemTask, args: &[sv::ir::SystemTaskArg], site: Option<&sv::ir::SourceSpan>, + assertion_site: Option<&celox_design::AssertionSite>, ) -> Result { if let sv::ir::SystemTask::Vcd(operation) = task { self.vcd_task(operation, args)?; @@ -3161,18 +3167,14 @@ impl<'p, 'a> Ff<'p, 'a> { } _ => None, }; - let event_kind = match &kind { - SystemTaskKind::Print(kind, _) => *kind, - SystemTaskKind::Control(kind) => *kind, - SystemTaskKind::Message => RuntimeEventKind::AssertContinue, - SystemTaskKind::Fatal => RuntimeEventKind::AssertFatal, - SystemTaskKind::Assertion(kind) => *kind, - }; + let event_kind = kind.event_kind(); let site_id = self.m.event_site(RuntimeEventSite { kind: event_kind, template: template.clone(), sizing: DisplaySizing::Ieee, scope: None, + location: report_location(site), + assertion: assertion_site.cloned(), arg_widths, arg_signed, arg_is_string, diff --git a/crates/celox-frontend-sv/src/lowering/procedural.rs b/crates/celox-frontend-sv/src/lowering/procedural.rs index 3b750498bf7..c9667da65bc 100644 --- a/crates/celox-frontend-sv/src/lowering/procedural.rs +++ b/crates/celox-frontend-sv/src/lowering/procedural.rs @@ -1232,7 +1232,7 @@ pub(super) enum SystemTaskKind { /// `$finish` and `$stop`, with their event kind. Control(RuntimeEventKind), /// `$error`, `$warning`, `$info`: a message, then execution continues. - Message, + Message(Severity), /// `$fatal`: a message, then the simulation ends with an error. Fatal, /// Veryl's assertion calls: eagerly evaluate every argument, then report @@ -1242,13 +1242,26 @@ pub(super) enum SystemTaskKind { impl SystemTaskKind { pub(super) fn is_fatal(&self) -> bool { - matches!( - self, - Self::Fatal | Self::Assertion(RuntimeEventKind::AssertFatal) - ) + self.event_kind().is_fatal() + } + + pub(super) fn event_kind(&self) -> RuntimeEventKind { + match *self { + Self::Print(kind, _) | Self::Control(kind) | Self::Assertion(kind) => kind, + Self::Message(severity) => RuntimeEventKind::Report(severity), + Self::Fatal => RuntimeEventKind::Report(Severity::Fatal), + } } } +/// Where a report is written, from the span of its task call. +pub(super) fn report_location(site: Option<&sv::ir::SourceSpan>) -> Option { + site.map(|site| ReportLocation { + file: site.logical_path.display().to_string(), + line: site.line, + }) +} + /// How a task reports, for the tasks that report: `$readmemh`/`$readmemb` /// load memory instead, the analyzer rewrites `$printtimescale` into a /// `$display`, and `$exit` outside a program block does nothing. @@ -1261,10 +1274,16 @@ pub(super) fn system_task_kind(task: sv::ir::SystemTask) -> Option SystemTaskKind::Print(RuntimeEventKind::Write, radix.letter()), SystemTask::Finish => SystemTaskKind::Control(RuntimeEventKind::Finish), SystemTask::Stop => SystemTaskKind::Control(RuntimeEventKind::Stop), - SystemTask::Severity(_) => SystemTaskKind::Message, + SystemTask::Severity(severity) => SystemTaskKind::Message(match severity { + sv::ir::Severity::Error => Severity::Error, + sv::ir::Severity::Warning => Severity::Warning, + sv::ir::Severity::Info => Severity::Info, + }), SystemTask::Fatal => SystemTaskKind::Fatal, - SystemTask::Assert => SystemTaskKind::Assertion(RuntimeEventKind::AssertFatal), - SystemTask::AssertContinue => SystemTaskKind::Assertion(RuntimeEventKind::AssertContinue), + SystemTask::Assert => SystemTaskKind::Assertion(RuntimeEventKind::Report(Severity::Fatal)), + SystemTask::AssertContinue => { + SystemTaskKind::Assertion(RuntimeEventKind::Report(Severity::Error)) + } SystemTask::Readmem(_) | SystemTask::Writemem(_) | SystemTask::Fclose diff --git a/crates/celox-frontend-veryl/src/lowering/ff.rs b/crates/celox-frontend-veryl/src/lowering/ff.rs index f6a42d62974..4570dde39a2 100644 --- a/crates/celox-frontend-veryl/src/lowering/ff.rs +++ b/crates/celox-frontend-veryl/src/lowering/ff.rs @@ -9,7 +9,8 @@ use crate::{ use bit_set::BitSet; use celox_design::{ BinaryOp, BitAccess, DisplaySizing, RuntimeErrorInfo, RuntimeEventKind, RuntimeEventSite, - SPARSE_WORKING_REGION, STABLE_REGION, TriggerSet, UnaryOp, VarAtomBase, WORKING_REGION, + SPARSE_WORKING_REGION, STABLE_REGION, Severity, TriggerSet, UnaryOp, VarAtomBase, + WORKING_REGION, }; use celox_sir::{ BlockId, RegisterId, RegisterType, SIRBuilder, SIRInstruction, SIROffset, SIRTerminator, @@ -552,6 +553,8 @@ impl<'a> FfParser<'a> { template, sizing: DisplaySizing::Veryl, scope: None, + location: None, + assertion: None, arg_widths: value_args .iter() .map(|arg| self.get_expression_width(&arg.0)) @@ -769,8 +772,8 @@ impl<'a> FfParser<'a> { let pass_bb = ir_builder.new_block(); let fail_bb = ir_builder.new_block(); let event_kind = match kind { - AssertKind::Fatal => RuntimeEventKind::AssertFatal, - AssertKind::Continue => RuntimeEventKind::AssertContinue, + AssertKind::Fatal => RuntimeEventKind::Report(Severity::Fatal), + AssertKind::Continue => RuntimeEventKind::Report(Severity::Error), }; let site_id = self.register_runtime_event_site(event_kind, args); // Assertion message arguments are observationally eager: any diff --git a/crates/celox-frontend-veryl/src/lowering/logic_tree/effect.rs b/crates/celox-frontend-veryl/src/lowering/logic_tree/effect.rs index c4623e4f940..f77095b9bd8 100644 --- a/crates/celox-frontend-veryl/src/lowering/logic_tree/effect.rs +++ b/crates/celox-frontend-veryl/src/lowering/logic_tree/effect.rs @@ -1,5 +1,6 @@ use super::state::FunctionLoopControlState; use super::*; +use celox_design::Severity; pub(crate) fn subtract_written_sensitivity( atoms: impl IntoIterator>, @@ -100,6 +101,8 @@ fn register_comb_runtime_event_site<'a>( template, sizing: DisplaySizing::Veryl, scope: None, + location: None, + assertion: None, arg_widths: value_args .iter() .map(|arg| arg.0.comptime().r#type.total_width().unwrap_or(1)) @@ -156,8 +159,10 @@ fn collect_system_function_effect( SystemFunctionKind::Finish => (RuntimeEventKind::Finish, None, [].as_slice()), SystemFunctionKind::Assert { kind, cond, args } => { let event_kind = match kind { - veryl_analyzer::ir::AssertKind::Fatal => RuntimeEventKind::AssertFatal, - veryl_analyzer::ir::AssertKind::Continue => RuntimeEventKind::AssertContinue, + veryl_analyzer::ir::AssertKind::Fatal => RuntimeEventKind::Report(Severity::Fatal), + veryl_analyzer::ir::AssertKind::Continue => { + RuntimeEventKind::Report(Severity::Error) + } }; (event_kind, Some(&cond.0), args.as_slice()) } @@ -220,20 +225,12 @@ fn collect_system_function_effect( active, None, ) => active, - (RuntimeEventKind::AssertContinue | RuntimeEventKind::AssertFatal, None, explicit) => { - explicit - } - ( - RuntimeEventKind::AssertContinue | RuntimeEventKind::AssertFatal, - Some(active), - Some(explicit), - ) => { + (RuntimeEventKind::Report(_), None, explicit) => explicit, + (RuntimeEventKind::Report(_), Some(active), Some(explicit)) => { let inactive = arena.alloc(SLTNode::Unary(UnaryOp::LogicNot, active))?; Some(arena.alloc(SLTNode::Binary(inactive, BinaryOp::LogicOr, explicit))?) } - (RuntimeEventKind::AssertContinue | RuntimeEventKind::AssertFatal, Some(active), None) => { - Some(active) - } + (RuntimeEventKind::Report(_), Some(active), None) => Some(active), ( RuntimeEventKind::Display | RuntimeEventKind::Write @@ -266,8 +263,7 @@ fn collect_system_function_effect( | RuntimeEventKind::Stop ), args: observer_args.clone(), - fatal_error_code: matches!(kind, RuntimeEventKind::AssertFatal) - .then_some(1_000_000 + site_id as i64), + fatal_error_code: kind.is_fatal().then_some(1_000_000 + site_id as i64), }); let observed_ids: HashSet<_> = observed_inputs.iter().map(|atom| atom.id).collect(); let position_ids: HashSet<_> = position_inputs.iter().map(|atom| atom.id).collect(); diff --git a/crates/celox-frontend-veryl/src/testbench.rs b/crates/celox-frontend-veryl/src/testbench.rs index 3ed5e6c4d11..e0a5971e020 100644 --- a/crates/celox-frontend-veryl/src/testbench.rs +++ b/crates/celox-frontend-veryl/src/testbench.rs @@ -1,6 +1,6 @@ use celox_design::{ BitAccess, DisplaySizing, InstanceId, PortTypeKind, RuntimeEventKind, RuntimeEventSite, - StateAddr, + Severity, StateAddr, }; use celox_testbench::{ AssertMessage as GenericAssertMessage, ClockCount as GenericClockCount, ExprBytecode, @@ -103,12 +103,14 @@ fn runtime_event_site_for_assert( }; RuntimeEventSite { kind: match kind { - AssertKind::Fatal => RuntimeEventKind::AssertFatal, - AssertKind::Continue => RuntimeEventKind::AssertContinue, + AssertKind::Fatal => RuntimeEventKind::Report(Severity::Fatal), + AssertKind::Continue => RuntimeEventKind::Report(Severity::Error), }, template, sizing: DisplaySizing::Veryl, scope: None, + location: None, + assertion: None, arg_widths: value_args.iter().map(assert_arg_width).collect(), arg_signed: value_args .iter() diff --git a/crates/celox-sv-analyzer/src/ast/procedural.rs b/crates/celox-sv-analyzer/src/ast/procedural.rs index d47ebdb5f70..adbf305d7f8 100644 --- a/crates/celox-sv-analyzer/src/ast/procedural.rs +++ b/crates/celox-sv-analyzer/src/ast/procedural.rs @@ -1297,6 +1297,7 @@ impl<'s, 't, 'a> BodyBuilder<'s, 't, 'a> { let error = Stmt::SystemTask { task: SystemTask::Severity(system_functions::Severity::Error), site: source_span(declarations.expression(root).tokens, self.tree), + assertion: None, args: vec![SystemTaskArg::Str( "$cast of a class handle to an incompatible class".into(), )], @@ -1337,6 +1338,7 @@ impl<'s, 't, 'a> BodyBuilder<'s, 't, 'a> { return Ok(vec![Stmt::SystemTask { task: SystemTask::Display(system_functions::Radix::Decimal), site: source_span(declarations.expression(root).tokens, self.tree), + assertion: None, args: vec![SystemTaskArg::Str(timescales::print_message( root, self.tree, @@ -1408,6 +1410,7 @@ impl<'s, 't, 'a> BodyBuilder<'s, 't, 'a> { task, args, site: source_span(declarations.expression(root).tokens, self.tree), + assertion: None, }]) } @@ -1609,14 +1612,42 @@ impl<'s, 't, 'a> BodyBuilder<'s, 't, 'a> { } /// The default failure action of a native immediate assertion. -fn assertion_failure(keyword: &str) -> Vec { +/// The default fail action of an `assert` or `assume`: a call to `$error` +/// at the assertion (IEEE 1800-2023 20.10). +fn assertion_failure(keyword: &str, site: Option) -> Vec { vec![Stmt::SystemTask { task: SystemTask::Severity(system_functions::Severity::Error), args: vec![SystemTaskArg::Str(format!("{keyword} failed"))], - site: None, + site, + assertion: None, }] } +/// Attribute the severity tasks of an assertion's action block to it. Tasks +/// in subroutines the block calls are not attributed, and the tasks of a +/// nested assertion keep its own attribution. +fn attribute_reports( + body: &mut [Stmt], + assertion: &celox_design::AssertionSite, + outcome: celox_design::AssertionOutcome, +) { + for stmt in body { + stmt.walk_mut(&mut |stmt| { + if let Stmt::SystemTask { + task: SystemTask::Severity(_) | SystemTask::Fatal, + assertion: attributed @ None, + .. + } = stmt + { + *attributed = Some(celox_design::AssertionSite { + outcome, + ..assertion.clone() + }); + } + }); + } +} + /// The declared arguments of a task or function: `(name, direction, type, /// default)`. An argument without a direction takes the previous one's, and /// one without a type the previous one's type (IEEE 1800-2023 13.3). @@ -3046,7 +3077,10 @@ pub(super) fn source_span( current.start = current.start.min(span.start); current.end = current.end.max(span.end); } else { + let (logical_path, line, _) = native.sources.logical_location(span); result = Some(crate::procedural::SourceSpan { + logical_path: logical_path.to_owned(), + line, path, start: span.start, end: span.end, diff --git a/crates/celox-sv-analyzer/src/ast/procedural/control.rs b/crates/celox-sv-analyzer/src/ast/procedural/control.rs index 44d2400f926..a2f7748bf8b 100644 --- a/crates/celox-sv-analyzer/src/ast/procedural/control.rs +++ b/crates/celox-sv-analyzer/src/ast/procedural/control.rs @@ -63,13 +63,16 @@ enum Job { AssertionThen { condition: Expr, keyword: String, + assertion: celox_design::AssertionSite, + span: Option, failure: Option, start: usize, }, AssertionFinish { condition: Expr, then_body: Vec, - default_failure: Option, + assertion: celox_design::AssertionSite, + default_failure: Option<(String, Option)>, start: usize, }, } @@ -238,9 +241,24 @@ impl BodyBuilder<'_, '_, '_> { failure, } => { let condition = self.native_assertion_condition(keyword, header)?; + let statement = native.statement(id); jobs.push(Job::AssertionThen { condition, keyword: keyword.clone(), + assertion: celox_design::AssertionSite { + label: statement + .label + .as_ref() + .map(|label| label.value().to_owned()), + directive: match keyword.as_str() { + "assume" => celox_design::AssertionDirective::Assume, + "cover" => celox_design::AssertionDirective::Cover, + _ => celox_design::AssertionDirective::Assert, + }, + deferral: celox_design::AssertionDeferral::None, + outcome: celox_design::AssertionOutcome::Fail, + }, + span: super::source_span(statement.tokens, self.tree), failure: *failure, start: output.len(), }); @@ -279,6 +297,8 @@ impl BodyBuilder<'_, '_, '_> { Job::AssertionThen { condition, keyword, + assertion, + span, failure, start, } => { @@ -286,8 +306,9 @@ impl BodyBuilder<'_, '_, '_> { jobs.push(Job::AssertionFinish { condition, then_body, + assertion, default_failure: if failure.is_none() && keyword != "cover" { - Some(keyword) + Some((keyword, span)) } else { None }, @@ -299,14 +320,25 @@ impl BodyBuilder<'_, '_, '_> { } Job::AssertionFinish { condition, - then_body, + mut then_body, + assertion, default_failure, start, } => { let mut else_body = output.split_off(start); - if let Some(keyword) = default_failure { - else_body = assertion_failure(&keyword); + if let Some((keyword, span)) = default_failure { + else_body = assertion_failure(&keyword, span); } + attribute_reports( + &mut then_body, + &assertion, + celox_design::AssertionOutcome::Pass, + ); + attribute_reports( + &mut else_body, + &assertion, + celox_design::AssertionOutcome::Fail, + ); output.push(Stmt::If { condition, then_body, diff --git a/crates/celox-sv-analyzer/src/procedural.rs b/crates/celox-sv-analyzer/src/procedural.rs index 16d579a9d31..2da16383d4f 100644 --- a/crates/celox-sv-analyzer/src/procedural.rs +++ b/crates/celox-sv-analyzer/src/procedural.rs @@ -16,6 +16,11 @@ pub struct SourceSpan { pub path: std::path::PathBuf, pub start: usize, pub end: usize, + /// The file and one-based line of the start as `__FILE__` and + /// `__LINE__` give them, after `` `line `` directives (IEEE 1800-2023 + /// 22.12, 22.13). + pub logical_path: std::path::PathBuf, + pub line: usize, } /// Where a process is written, for diagnostics about the process as a @@ -94,6 +99,9 @@ pub enum StmtBase { task: SystemTask, args: Vec>, site: Option, + /// For a severity task in an action block of an assertion, that + /// assertion (IEEE 1800-2023 16.3, 20.10). + assertion: Option, }, /// The declaration point of a local variable: it is (re)initialized here, /// to `init` or to the default value of its type. @@ -314,9 +322,15 @@ impl StmtBase { args: args.into_iter().map(|arg| arg.map(&mut *fe)).collect(), }, StmtBase::Eval(expr) => StmtBase::Eval(fe(expr)), - StmtBase::SystemTask { task, args, site } => StmtBase::SystemTask { + StmtBase::SystemTask { task, + args, site, + assertion, + } => StmtBase::SystemTask { + task, + site, + assertion, args: args .into_iter() .map(|arg| match arg { @@ -466,6 +480,42 @@ impl StmtBase { } } + /// Visit every statement of this tree in place, outermost first. + pub fn walk_mut(&mut self, f: &mut impl FnMut(&mut StmtBase)) { + f(self); + let mut visit = |stmts: &mut [StmtBase]| { + for stmt in stmts { + stmt.walk_mut(f); + } + }; + match self { + StmtBase::If { + then_body, + else_body, + .. + } => { + visit(then_body); + visit(else_body); + } + StmtBase::Case { items, default, .. } => { + for item in items { + visit(&mut item.body); + } + if let Some(default) = default { + visit(default); + } + } + StmtBase::Loop { + init, step, body, .. + } => { + visit(init); + visit(step); + visit(body); + } + _ => {} + } + } + /// Visit every statement of this tree, outermost first. pub fn walk<'a>(&'a self, f: &mut impl FnMut(&'a StmtBase)) { f(self); diff --git a/crates/celox-vpi/src/bin/celox.rs b/crates/celox-vpi/src/bin/celox.rs index 78161e8e44f..3ac3ac1a18e 100644 --- a/crates/celox-vpi/src/bin/celox.rs +++ b/crates/celox-vpi/src/bin/celox.rs @@ -227,13 +227,14 @@ fn drain_sv_output( let (message, newline) = match event { celox::RuntimeEvent::Display { message } => (message, true), celox::RuntimeEvent::Write { message } => (message, false), - celox::RuntimeEvent::AssertContinue { message } => { - *failed = true; - (message, true) - } - celox::RuntimeEvent::AssertFatal { message } => { - fatal = true; - (message, true) + // Only errors fail the run (IEEE 1800-2023 20.10). + celox::RuntimeEvent::Report(report) => { + match report.severity { + celox::Severity::Fatal => fatal = true, + celox::Severity::Error => *failed = true, + celox::Severity::Warning | celox::Severity::Info => {} + } + (report.render(), true) } celox::RuntimeEvent::Finish => continue, celox::RuntimeEvent::Stop => { @@ -926,6 +927,34 @@ mod tests { assert!(String::from_utf8(output).unwrap().contains("tick")); } + /// Only `$error` and `$fatal` fail a run; every report is printed with + /// its severity and location (IEEE 1800-2023 20.10). + #[cfg(feature = "systemverilog")] + #[test] + fn sv_reports_fail_the_run_only_from_errors() { + let run = |task: &str| { + let source = format!("module Top; initial {task}(\"note\"); endmodule"); + let simulation = celox::Simulation::from_sv_sources( + vec![(source.as_str(), Path::new("top.sv"))], + "Top", + ) + .build() + .unwrap(); + let mut output = Vec::new(); + let result = simulate_sv(simulation, 10, &mut output); + (result, String::from_utf8(output).unwrap()) + }; + let (result, output) = run("$info"); + assert!(result.is_ok()); + assert!(output.starts_with("Info: top.sv:1: note"), "{output}"); + let (result, output) = run("$warning"); + assert!(result.is_ok()); + assert!(output.starts_with("Warning: top.sv:1: note"), "{output}"); + let (result, output) = run("$error"); + assert!(result.is_err()); + assert!(output.starts_with("Error: top.sv:1: note"), "{output}"); + } + fn state_file(count: u8, stale: u8) -> StateFile { let object = |path: &str, role, value: u8, mask: u8| StateObject { path: path.into(), diff --git a/crates/celox-vpi/src/lib.rs b/crates/celox-vpi/src/lib.rs index 157fd95dcb2..39fe402c1c4 100644 --- a/crates/celox-vpi/src/lib.rs +++ b/crates/celox-vpi/src/lib.rs @@ -21,7 +21,7 @@ use std::{ use celox::{ BigUint, DomainKind, NativeProgramInstance, NativeSignalIdentity, ReflectionScopeId, - ReflectionSignalId, RuntimeEvent, RuntimeFormatContext, SignalDirection, SimBackend, + ReflectionSignalId, RuntimeEvent, RuntimeFormatContext, Severity, SignalDirection, SimBackend, }; use fxhash::{FxHashMap as HashMap, FxHashSet as HashSet}; @@ -1851,18 +1851,13 @@ fn process_runtime_events() { RuntimeEvent::Write { message } => { let _ = std::io::stdout().lock().write_all(&message); } - RuntimeEvent::AssertContinue { message } => { + RuntimeEvent::Report(report) => { let mut output = std::io::stderr().lock(); - let _ = output.write_all(b"assertion failed: "); - let _ = output.write_all(&message); - let _ = output.write_all(b"\n"); - } - RuntimeEvent::AssertFatal { message } => { - let mut output = std::io::stderr().lock(); - let _ = output.write_all(b"fatal assertion failed: "); - let _ = output.write_all(&message); + let _ = output.write_all(&report.render()); let _ = output.write_all(b"\n"); - callbacks::fail(celox_message_diagnostic(&message)); + if report.severity == Severity::Fatal { + callbacks::fail(celox_message_diagnostic(&report.message)); + } } // Like `vpiStop` in `vpi_control`, `$stop` ends a run that has // no interactive mode. diff --git a/crates/celox/examples/sv_tests.rs b/crates/celox/examples/sv_tests.rs index 9d53159778a..8ff75d497fd 100644 --- a/crates/celox/examples/sv_tests.rs +++ b/crates/celox/examples/sv_tests.rs @@ -188,13 +188,11 @@ fn simulate(mut sim: celox::Simulation) -> Result<(), String> { let mut output = |sim: &mut celox::Simulation| -> Result<(), String> { for event in sim.drain_runtime_events() { match event { - celox::RuntimeEvent::Display { message } - | celox::RuntimeEvent::AssertContinue { message } => { - stdout.write_all(&message).unwrap(); - stdout.write_all(b"\n").unwrap(); - } - celox::RuntimeEvent::Write { message } => stdout.write_all(&message).unwrap(), - celox::RuntimeEvent::AssertFatal { message } => { + celox::RuntimeEvent::Report(celox::Report { + severity: celox::Severity::Fatal, + message, + .. + }) => { stdout.write_all(&message).unwrap(); stdout.write_all(b"\n").unwrap(); return Err(format!( @@ -204,6 +202,12 @@ fn simulate(mut sim: celox::Simulation) -> Result<(), String> { .unwrap_or_else(|_| message.escape_ascii().to_string()) )); } + celox::RuntimeEvent::Display { message } + | celox::RuntimeEvent::Report(celox::Report { message, .. }) => { + stdout.write_all(&message).unwrap(); + stdout.write_all(b"\n").unwrap(); + } + celox::RuntimeEvent::Write { message } => stdout.write_all(&message).unwrap(), celox::RuntimeEvent::Finish | celox::RuntimeEvent::Stop => {} celox::RuntimeEvent::Missed { count } => { return Err(format!("{count} runtime events were lost")); diff --git a/crates/celox/src/backend/native/image_file.rs b/crates/celox/src/backend/native/image_file.rs index 0c95b249cc8..7278978181c 100644 --- a/crates/celox/src/backend/native/image_file.rs +++ b/crates/celox/src/backend/native/image_file.rs @@ -6,7 +6,7 @@ use std::{fmt, path::Path}; use super::backend::NativeProgramImage; const TRAILER_MAGIC: &[u8; 8] = b"CELOXNPI"; -const CONTAINER_VERSION: u16 = 34; +const CONTAINER_VERSION: u16 = 35; const TRAILER_SIZE: usize = 32; const FNV_OFFSET_BASIS: u64 = 0xcbf2_9ce4_8422_2325; const FNV_PRIME: u64 = 0x0000_0100_0000_01b3; diff --git a/crates/celox/src/backend/native/runtime_image.rs b/crates/celox/src/backend/native/runtime_image.rs index ff7cbbfbb6e..bcd32cd682b 100644 --- a/crates/celox/src/backend/native/runtime_image.rs +++ b/crates/celox/src/backend/native/runtime_image.rs @@ -510,15 +510,15 @@ impl NativeProgramInstance { context, ); if let Some(message) = events.into_iter().find_map(|event| match event { - RuntimeEvent::AssertFatal { message } => { - Some(crate::simulator::message_diagnostic(&message)) + RuntimeEvent::Report(report) if report.severity == celox_design::Severity::Fatal => { + Some(crate::simulator::message_diagnostic(&report.message)) } RuntimeEvent::Missed { count } => Some(format!( "missed {count} runtime events; a fatal assertion may have been overwritten" )), RuntimeEvent::Display { .. } | RuntimeEvent::Write { .. } - | RuntimeEvent::AssertContinue { .. } + | RuntimeEvent::Report(_) | RuntimeEvent::Finish | RuntimeEvent::Stop => None, }) { diff --git a/crates/celox/src/lib.rs b/crates/celox/src/lib.rs index 28c216b193e..523993f74d6 100644 --- a/crates/celox/src/lib.rs +++ b/crates/celox/src/lib.rs @@ -48,7 +48,10 @@ pub use backend::SimulatorErrorCode as RuntimeErrorCode; pub use backend::{ EventHandle, LayoutRequirements, MemoryLayout, MemoryLayoutMode, SimBackend, get_byte_size, }; -pub use celox_design::{DomainKind, ElaboratedDesign, EventTopology, ProcessOrigin, RuntimeSchema}; +pub use celox_design::{ + AssertionDeferral, AssertionDirective, AssertionOutcome, AssertionSite, DomainKind, + ElaboratedDesign, EventTopology, ProcessOrigin, ReportLocation, RuntimeSchema, Severity, +}; pub use celox_frontend_core::FrontendArtifactError; pub use celox_frontend_sdk as frontend_sdk; pub use celox_frontend_sdk::FrontendArtifact; @@ -117,7 +120,7 @@ mod host_api { pub use crate::simulator::NativeCompilation; pub use crate::simulator::{ Checkpoint, CheckpointError, DeadStorePolicy, DumpError, InstanceHierarchy, NamedEvent, - NamedSignal, RuntimeEvent, RuntimeEventDrain, RuntimeFormatContext, Simulator, + NamedSignal, Report, RuntimeEvent, RuntimeEventDrain, RuntimeFormatContext, Simulator, SimulatorBuilder, SimulatorOptions, StateError, StateImage, StateMismatch, StateSchema, TierPromotion, }; diff --git a/crates/celox/src/simulator.rs b/crates/celox/src/simulator.rs index ffccc1394d2..ca48c93520c 100644 --- a/crates/celox/src/simulator.rs +++ b/crates/celox/src/simulator.rs @@ -61,6 +61,7 @@ mod host { RuntimeEventKind, RuntimeEventSite, RuntimeProgram, SignalRef, VariableInfo, }, }; + use celox_design::{AssertionSite, ReportLocation, Severity}; use celox_runtime::backend::EventHandle as _; use celox_testbench::{ DisplayFormatArg, FieldSpec, format_sv_display_arg, format_veryl_display_arg, @@ -203,12 +204,9 @@ mod host { Write { message: Vec, }, - AssertContinue { - message: Vec, - }, - AssertFatal { - message: Vec, - }, + /// A message of a severity task or of a Veryl assertion. A + /// [`Severity::Fatal`] report also ends the simulation with an error. + Report(Report), /// The design executed `$finish`. The host decides whether to stop. Finish, /// The design executed `$stop` outside a process kernel. The host @@ -219,6 +217,65 @@ mod host { }, } + /// What a severity task reports (IEEE 1800-2023 20.10). + #[derive(Debug, Clone, PartialEq, Eq)] + pub struct Report { + pub severity: Severity, + /// The formatted message, byte-exact like [`RuntimeEvent::Display`]. + pub message: Vec, + /// The simulation time of the report, when the drain knows it. + pub time: Option, + /// The hierarchical name of the scope that issued the report. + pub scope: Option, + /// The file and line of the task call. + pub location: Option, + /// The assertion whose action block issued the report. + pub assertion: Option, + } + + impl Report { + /// A report with no time, scope, location or assertion. + pub fn new(severity: Severity, message: Vec) -> Self { + Self { + severity, + message, + time: None, + scope: None, + location: None, + assertion: None, + } + } + + /// The report as a tool prints it: the severity, the file and line, + /// the message, then the time and the scope (IEEE 1800-2023 20.10). + pub fn render(&self) -> Vec { + let mut out = format!("{:?}", self.severity).into_bytes(); + if let Some(location) = &self.location { + out.extend_from_slice(format!(": {}:{}", location.file, location.line).as_bytes()); + } + out.extend_from_slice(b": "); + out.extend_from_slice(&self.message); + let mut context = Vec::new(); + if let Some(time) = self.time { + context.push(format!("Time: {time}")); + } + let name = match ( + &self.scope, + self.assertion.as_ref().and_then(|a| a.label.as_ref()), + ) { + (Some(scope), Some(label)) => Some(format!("{scope}.{label}")), + (scope, label) => scope.clone().or_else(|| label.cloned()), + }; + if let Some(name) = name { + context.push(format!("Scope: {name}")); + } + if !context.is_empty() { + out.extend_from_slice(format!("\n {}", context.join(" ")).as_bytes()); + } + out + } + } + #[derive(Debug, Clone, Copy, Default)] pub struct RuntimeFormatContext<'a> { pub tb_time: Option, @@ -490,7 +547,7 @@ mod host { | RuntimeEventKind::Write | RuntimeEventKind::Finish | RuntimeEventKind::Stop => 'd', - RuntimeEventKind::AssertContinue | RuntimeEventKind::AssertFatal => { + RuntimeEventKind::Report(_) => { if args.is_empty() { return b"assertion failed".to_vec(); } @@ -604,8 +661,14 @@ mod host { match site.kind { RuntimeEventKind::Display => RuntimeEvent::Display { message }, RuntimeEventKind::Write => RuntimeEvent::Write { message }, - RuntimeEventKind::AssertContinue => RuntimeEvent::AssertContinue { message }, - RuntimeEventKind::AssertFatal => RuntimeEvent::AssertFatal { message }, + RuntimeEventKind::Report(severity) => RuntimeEvent::Report(Report { + severity, + message, + time: ctx.tb_time, + scope: ctx.scope.map(str::to_owned).or_else(|| site.scope.clone()), + location: site.location.clone(), + assertion: site.assertion.clone(), + }), RuntimeEventKind::Finish => RuntimeEvent::Finish, RuntimeEventKind::Stop => RuntimeEvent::Stop, } @@ -1085,8 +1148,8 @@ mod host { } /// Drain runtime events, lazily evaluating dirty combinational logic. - /// Fatal assertions encountered during evaluation are returned as - /// [`RuntimeEvent::AssertFatal`] records so the host can handle them. + /// Fatal reports encountered during evaluation are returned as + /// [`RuntimeEvent::Report`] records so the host can handle them. pub fn drain_runtime_events(&mut self) -> Vec { self.drain_runtime_events_with_context(RuntimeFormatContext::default()) } @@ -1148,7 +1211,7 @@ mod host { .runtime_schema .runtime_event_sites .get(celox_runtime::comb_fatal_site(code)? as usize)?; - matches!(site.kind, RuntimeEventKind::AssertFatal).then_some(site) + site.kind.is_fatal().then_some(site) } fn collect_formatted_runtime_events( @@ -1622,7 +1685,7 @@ mod host { .runtime_schema .runtime_event_sites .get(*site_id)?; - if !matches!(site.kind, RuntimeEventKind::AssertFatal) { + if !site.kind.is_fatal() { return None; } Some(RuntimeErrorCode::Runtime { diff --git a/crates/celox/src/simulator/host/file_io.rs b/crates/celox/src/simulator/host/file_io.rs index ef6689303c9..25d04c5ec96 100644 --- a/crates/celox/src/simulator/host/file_io.rs +++ b/crates/celox/src/simulator/host/file_io.rs @@ -101,6 +101,8 @@ impl Simulator { template: site.strings.first().cloned(), sizing: DisplaySizing::Ieee, scope, + location: None, + assertion: None, arg_widths: Vec::new(), arg_signed: Vec::new(), arg_is_string: Vec::new(), diff --git a/crates/celox/src/testbench.rs b/crates/celox/src/testbench.rs index 1f60c315077..b01452f8fc2 100644 --- a/crates/celox/src/testbench.rs +++ b/crates/celox/src/testbench.rs @@ -15,6 +15,7 @@ use crate::backend::memory_layout::{ use crate::backend::traits::{EventHandle, SimBackend}; use crate::ir::SignalRef; use crate::simulator::{RuntimeEvent, RuntimeFormatContext, Simulator, message_diagnostic}; +use celox_design::Severity; pub use celox_testbench::SourceLocation; use celox_testbench::{ DisplayFormatArg, ExecutableArgument, ExecutableAssertMessage, ExecutableClockCount, @@ -1499,17 +1500,14 @@ fn drain_runtime_assertions( }; for event in sim.drain_runtime_events_deferred_with_context(format_ctx) { match event { - RuntimeEvent::AssertContinue { message } => { - last_message = Some(message.clone()); - ctx.assertions.push(AssertionResult { - passed: false, - message: Some(message), - location: location.cloned(), - }); + // Only errors fail a test (IEEE 1800-2023 20.10). + RuntimeEvent::Report(report) if report.severity < Severity::Error => { + forward_display(&report.message, true) } - RuntimeEvent::AssertFatal { message } => { + RuntimeEvent::Report(report) => { + let message = report.message; last_message = Some(message.clone()); - if fatal_message.is_none() { + if report.severity == Severity::Fatal && fatal_message.is_none() { fatal_message = Some(message.clone()); } ctx.assertions.push(AssertionResult { diff --git a/crates/celox/tests/comb_observer.rs b/crates/celox/tests/comb_observer.rs index 80c84589d55..ae525ef7dbf 100644 --- a/crates/celox/tests/comb_observer.rs +++ b/crates/celox/tests/comb_observer.rs @@ -18,9 +18,9 @@ module Top(d: input logic<24>, out: output logic<24>) { } "#, "Top").four_state(true); let d = sim.signal("d"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(d, [0x80u8, 0, 0xff])).unwrap(); - assert_eq!(sim.drain_runtime_events(), vec![ + assert_eq!(bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Write { message: vec![255, 0, 128, 128] }, celox::RuntimeEvent::Display { message: vec![255, 0, 128] }, ]); @@ -49,12 +49,12 @@ module Top ( let d = sim.signal("d"); let tmp = sim.signal("tmp"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); assert_eq!(sim.get_as::(tmp), 1); sim.modify(|io| io.set(d, 10u8)).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"before=1 ret=12".to_vec(), }], @@ -88,15 +88,15 @@ module Top ( let d = sim.signal("d"); let prior = sim.signal("prior"); let tmp = sim.signal("tmp"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); assert_eq!(sim.get_as::(tmp), 1); sim.modify(|io| io.set(prior, 7u8)).unwrap(); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(d, 10u8)).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"before=1 local=7 ret=12".to_vec(), }], @@ -126,11 +126,11 @@ module Top ( "#, "Top"); let d = sim.signal("d"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(d, 10u8)).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"ret=12 out=11".to_vec(), }], @@ -169,11 +169,11 @@ module Top ( "#, "Top"); let d = sim.signal("d"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(d, 10u8)).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"first=12 second=11".to_vec(), }], @@ -214,11 +214,11 @@ module Top ( "#, "Top"); let d = sim.signal("d"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(d, 10u8)).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"first=1 second=12".to_vec(), }], @@ -254,11 +254,11 @@ module Top ( "#, "Top"); let d = sim.signal("d"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(d, 10u8)).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"first=12 module=11".to_vec(), }], @@ -284,14 +284,14 @@ module Top ( "#, "Top").four_state(true); let a = sim.signal("a"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 1u8)).unwrap(); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set_four_state(a, celox::BigUint::from(1u8), celox::BigUint::from(1u8)); }).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"x=0".to_vec(), }], @@ -343,12 +343,12 @@ module Top ( let d = sim.signal("d"); let tmp_o = sim.signal("tmp_o"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(d, 1u8)).unwrap(); assert_eq!(sim.get(tmp_o), 1u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"index=1".to_vec(), }], @@ -385,13 +385,13 @@ module Top ( let d = sim.signal("d"); let q = sim.signal("q"); let q_output = sim.signal("q_output"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(d, 10u8)).unwrap(); assert_eq!(sim.get_as::(q), 1); assert_eq!(sim.get_as::(q_output), 11); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"if=10".to_vec(), }], @@ -423,21 +423,21 @@ module Top ( let and_enable = sim.signal("and_enable"); let or_enable = sim.signal("or_enable"); let d = sim.signal("d"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(and_enable, 0u8); io.set(or_enable, 1u8); io.set(d, 10u8); }).unwrap(); - assert!(sim.drain_runtime_events().is_empty()); + assert!(bare(sim.drain_runtime_events()).is_empty()); sim.modify(|io| { io.set(and_enable, 1u8); io.set(or_enable, 0u8); }).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"rhs=10".to_vec(), @@ -478,7 +478,7 @@ module Top ( let d = sim.signal("d"); let q = sim.signal("q"); let q_output = sim.signal("q_output"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(d, 2u8); @@ -486,7 +486,7 @@ module Top ( assert_eq!(sim.get_as::(q), 1); assert_eq!(sim.get_as::(q_output), 12); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"target=2".to_vec(), }], @@ -521,13 +521,13 @@ module Top ( let sel = sim.signal("sel"); let data = sim.signal("data"); let tmp = sim.signal("tmp"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(sel, 2u8)).unwrap(); assert_eq!(sim.get_as::(data), 4); assert_eq!(sim.get_as::(tmp), 12); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"index=2".to_vec(), }], @@ -559,12 +559,12 @@ module Top ( let d = sim.signal("d"); let tmp = sim.signal("tmp"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(d, 10u8)).unwrap(); assert_eq!(sim.get_as::(tmp), 11); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"wrapped=10".to_vec(), }], @@ -590,12 +590,12 @@ module Top ( "#, "Top"); let sel = sim.signal("sel"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(sel, 1u8)).unwrap(); assert_eq!(sim.get_as::(sim.signal("value")), 11); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"case=11".to_vec(), }], @@ -632,13 +632,13 @@ module Top ( let d = sim.signal("d"); let q = sim.signal("q"); let q_output = sim.signal("q_output"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(d, 1u8)).unwrap(); assert_eq!(sim.get_as::(q), 3); assert_eq!(sim.get_as::(q_output), 2); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"bound=1".to_vec(), }], @@ -664,32 +664,32 @@ module Top ( let unrelated = sim.signal("unrelated"); let y = sim.signal("y"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 1u8)).unwrap(); assert_eq!(sim.get_as::(y), 1); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"y=1".to_vec(), }], ); assert_eq!(sim.get_as::(y), 1); - assert_eq!(sim.drain_runtime_events(), vec![]); + assert_eq!(bare(sim.drain_runtime_events()), vec![]); sim.modify(|io| io.set(unrelated, 7u8)).unwrap(); assert_eq!(sim.get_as::(y), 1); - assert_eq!(sim.drain_runtime_events(), vec![]); + assert_eq!(bare(sim.drain_runtime_events()), vec![]); sim.modify(|io| io.set(a, 1u8)).unwrap(); assert_eq!(sim.get_as::(y), 1); - assert_eq!(sim.drain_runtime_events(), vec![]); + assert_eq!(bare(sim.drain_runtime_events()), vec![]); sim.modify(|io| io.set(a, 3u8)).unwrap(); assert_eq!(sim.get_as::(y), 1); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"y=1".to_vec(), }], @@ -721,19 +721,19 @@ module Top ( let unrelated = sim.signal("unrelated"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 5u8)).unwrap(); assert_eq!(sim.get_as::(out), 1); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"tmp=5".to_vec(), }], ); sim.modify(|io| io.set(unrelated, 7u8)).unwrap(); - assert_eq!(sim.drain_runtime_events(), Vec::new()); + assert_eq!(bare(sim.drain_runtime_events()), Vec::new()); } fn test_comb_constant_display_runs_on_initial_eval_only(sim) { @@ -756,7 +756,7 @@ module Top ( // no sensitivity inputs. sim.eval_comb().unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"hi".to_vec(), }], @@ -764,7 +764,7 @@ module Top ( sim.modify(|io| io.set(a, 1u8)).unwrap(); sim.eval_comb().unwrap(); - assert_eq!(sim.drain_runtime_events(), Vec::new()); + assert_eq!(bare(sim.drain_runtime_events()), Vec::new()); } fn test_comb_constant_fatal_assert_runs_on_initial_eval(sim) { @@ -789,10 +789,8 @@ module Top { }, ); assert_eq!( - sim.drain_runtime_events(), - vec![celox::RuntimeEvent::AssertFatal { - message: b"constant fail".to_vec(), - }], + bare(sim.drain_runtime_events()), + vec![celox::RuntimeEvent::Report(celox::Report::new(celox::Severity::Fatal, b"constant fail".to_vec()))], ); } @@ -879,7 +877,7 @@ module Top ( // list and the sensitized values have not changed from their defaults. sim.eval_comb().unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"a=0".to_vec(), }], @@ -907,10 +905,8 @@ module Top ( }, ); assert_eq!( - sim.drain_runtime_events(), - vec![celox::RuntimeEvent::AssertFatal { - message: b"a must be set".to_vec(), - }], + bare(sim.drain_runtime_events()), + vec![celox::RuntimeEvent::Report(celox::Report::new(celox::Severity::Fatal, b"a must be set".to_vec()))], ); } @@ -930,11 +926,11 @@ module Top ( let a = sim.signal("a"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 7u8)).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"a=7".to_vec(), }], @@ -959,18 +955,18 @@ module Top ( let a = sim.signal("a"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); let mut drain = sim.runtime_event_drain().expect("runtime event drain handle"); sim.modify(|io| io.set(a, 11u8)).unwrap(); assert_eq!( - drain.drain(), + bare(drain.drain()), vec![celox::RuntimeEvent::Display { message: b"a=11".to_vec(), }], ); assert_eq!(sim.get_as::(out), 11); - assert_eq!(drain.drain(), Vec::new()); + assert_eq!(bare(drain.drain()), Vec::new()); } fn test_comb_runtime_event_drain_handle_sees_direct_set_capture(sim) { @@ -990,12 +986,12 @@ module Top ( let a = sim.signal("a"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); let mut drain = sim.runtime_event_drain().expect("runtime event drain handle"); sim.set(a, 12u8); assert_eq!( - drain.drain(), + bare(drain.drain()), vec![celox::RuntimeEvent::Display { message: b"a=12".to_vec(), }], @@ -1022,17 +1018,17 @@ module Top ( let out = sim.signal("out"); sim.eval_comb().unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"a=0".to_vec(), }], ); let mut drain = sim.runtime_event_drain().expect("runtime event drain handle"); - assert_eq!(drain.drain(), Vec::new()); + assert_eq!(bare(drain.drain()), Vec::new()); sim.modify(|io| io.set(a, 13u8)).unwrap(); assert_eq!( - drain.drain(), + bare(drain.drain()), vec![celox::RuntimeEvent::Display { message: b"a=13".to_vec(), }], @@ -1068,14 +1064,14 @@ module Top ( let out = sim.signal("out"); sim.eval_comb().unwrap(); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); let mut drain = sim.runtime_event_drain().expect("runtime event drain handle"); sim.modify(|io| io.set(d, 3u8)).unwrap(); sim.tick(clk).unwrap(); assert_eq!(sim.get_as::(out), 3); assert_eq!( - drain.drain(), + bare(drain.drain()), vec![ celox::RuntimeEvent::Display { message: b"ff=3".to_vec(), @@ -1114,7 +1110,7 @@ module Top ( let out = sim.signal("out"); sim.eval_comb().unwrap(); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); let mut drain = sim.runtime_event_drain().expect("runtime event drain handle"); sim.modify(|io| io.set(a, 9u8)).unwrap(); @@ -1122,7 +1118,7 @@ module Top ( sim.tick(clk).unwrap(); assert_eq!(sim.get_as::(out), 9); assert_eq!( - drain.drain(), + bare(drain.drain()), vec![ celox::RuntimeEvent::Display { message: b"comb=9".to_vec(), @@ -1151,37 +1147,39 @@ module Top ( let a = sim.signal("a"); let y = sim.signal("y"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 0u8)).unwrap(); assert_eq!(sim.get_as::(y), 0); - assert_eq!(sim.drain_runtime_events(), vec![]); + assert_eq!(bare(sim.drain_runtime_events()), vec![]); sim.modify(|io| io.set(a, 1u8)).unwrap(); assert_eq!(sim.get_as::(y), 1); assert_eq!( - sim.drain_runtime_events(), - vec![celox::RuntimeEvent::AssertContinue { - message: b"bad y=1".to_vec(), - }], + bare(sim.drain_runtime_events()), + vec![celox::RuntimeEvent::Report(celox::Report::new( + celox::Severity::Error, + b"bad y=1".to_vec() + ))], ); sim.modify(|io| io.set(a, 1u8)).unwrap(); assert_eq!(sim.get_as::(y), 1); - assert_eq!(sim.drain_runtime_events(), vec![]); + assert_eq!(bare(sim.drain_runtime_events()), vec![]); sim.modify(|io| io.set(a, 3u8)).unwrap(); assert_eq!(sim.get_as::(y), 1); assert_eq!( - sim.drain_runtime_events(), - vec![celox::RuntimeEvent::AssertContinue { - message: b"bad y=1".to_vec(), - }], + bare(sim.drain_runtime_events()), + vec![celox::RuntimeEvent::Report(celox::Report::new( + celox::Severity::Error, + b"bad y=1".to_vec() + ))], ); sim.modify(|io| io.set(a, 2u8)).unwrap(); assert_eq!(sim.get_as::(y), 0); - assert_eq!(sim.drain_runtime_events(), vec![]); + assert_eq!(bare(sim.drain_runtime_events()), vec![]); } fn test_comb_assert_fatal_stops_comb_eval_and_keeps_event(sim) { @@ -1201,7 +1199,7 @@ module Top ( let a = sim.signal("a"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 1u8)).unwrap(); let err = sim.eval_comb().unwrap_err(); @@ -1213,10 +1211,8 @@ module Top ( }, ); assert_eq!( - sim.drain_runtime_events(), - vec![celox::RuntimeEvent::AssertFatal { - message: b"fatal y".to_vec(), - }], + bare(sim.drain_runtime_events()), + vec![celox::RuntimeEvent::Report(celox::Report::new(celox::Severity::Fatal, b"fatal y".to_vec()))], ); } @@ -1243,15 +1239,15 @@ module Top ( let a = sim.signal("a"); let unrelated = sim.signal("unrelated"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 1u8)).unwrap(); assert!(sim.eval_comb().is_err()); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(unrelated, 9u8)).unwrap(); sim.eval_comb().unwrap(); - assert_eq!(sim.drain_runtime_events(), vec![]); + assert_eq!(bare(sim.drain_runtime_events()), vec![]); } fn test_comb_display_pending_events_drain_before_later_ff_events(sim) { @@ -1280,14 +1276,14 @@ module Top ( let y = sim.signal("y"); sim.eval_comb().unwrap(); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 5u8)).unwrap(); assert_eq!(sim.get_as::(y), 5); sim.modify(|io| io.set(d, 7u8)).unwrap(); sim.tick(clk).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"comb=5".to_vec(), @@ -1334,20 +1330,20 @@ module Top ( let y = sim.signal("y"); sim.eval_comb().unwrap(); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(d, 7u8)).unwrap(); sim.tick(clk).unwrap(); assert_eq!(sim.get_as::(y), 7); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"q=7".to_vec(), }], ); sim.tick(clk).unwrap(); - assert_eq!(sim.drain_runtime_events(), vec![]); + assert_eq!(bare(sim.drain_runtime_events()), vec![]); } fn test_comb_display_tracks_downstream_comb_settle_sensitivity(sim) { @@ -1373,12 +1369,12 @@ module Top ( let a = sim.signal("a"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 9u8)).unwrap(); assert_eq!(sim.get_as::(out), 9); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"x=9".to_vec(), }], @@ -1416,7 +1412,7 @@ module Top ( let out_a = sim.signal("out_a"); let out_b = sim.signal("out_b"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(src, 5u8)).unwrap(); assert_eq!(sim.get_as::(out_a), 5); @@ -1427,7 +1423,7 @@ module Top ( // to coalesce multiple sensitivity changes into one pending process // execution and emit the side effect once at the settled observation point. assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"a=5 b=5".to_vec(), }], @@ -1460,12 +1456,12 @@ module Top ( let a = sim.signal("a"); let o = sim.signal("o"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 1u8)).unwrap(); assert_eq!(sim.get_as::(o), 1); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"x1=0".to_vec(), @@ -1500,12 +1496,12 @@ module Top ( let a = sim.signal("a"); let o = sim.signal("o"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 1u8)).unwrap(); assert_eq!(sim.get_as::(o), 1); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"observed=0".to_vec(), @@ -1542,12 +1538,12 @@ module Top ( let a = sim.signal("a"); let o = sim.signal("o"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 1u8)).unwrap(); assert_eq!(sim.get_as::(o), 1); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"x3=0".to_vec(), @@ -1583,12 +1579,12 @@ module Top ( let a = sim.signal("a"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 1u8)).unwrap(); assert_eq!(sim.get_as::(out), 3); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"x1=0 x2=0".to_vec(), @@ -1632,7 +1628,7 @@ module Top ( let j = sim.signal("j"); let o = sim.signal("o"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(i, 0u8); @@ -1642,7 +1638,7 @@ module Top ( .unwrap(); assert_eq!(sim.get_as::(o), 1); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"xj=0".to_vec(), @@ -1682,12 +1678,12 @@ module Top ( let a = sim.signal("a"); let o = sim.signal("o"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 1u8)).unwrap(); assert_eq!(sim.get_as::(o), 1); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"hit x1=1".to_vec(), }], @@ -1716,7 +1712,7 @@ module Top ( let a = sim.signal("a"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 1u8)).unwrap(); let err = sim.eval_comb().unwrap_err(); @@ -1728,10 +1724,8 @@ module Top ( }, ); assert_eq!( - sim.drain_runtime_events(), - vec![celox::RuntimeEvent::AssertFatal { - message: b"x1 became 1".to_vec(), - }], + bare(sim.drain_runtime_events()), + vec![celox::RuntimeEvent::Report(celox::Report::new(celox::Severity::Fatal, b"x1 became 1".to_vec()))], ); } @@ -1763,7 +1757,7 @@ module Top ( let b = sim.signal("b"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(a, 1u8); @@ -1772,7 +1766,7 @@ module Top ( .unwrap(); assert_eq!(sim.get_as::(out), 3); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"first=0".to_vec(), @@ -1819,7 +1813,7 @@ module Top ( let count = sim.signal("count"); let o = sim.signal("o"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(count, 2u8); @@ -1828,7 +1822,7 @@ module Top ( .unwrap(); assert_eq!(sim.get_as::(o), 1); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"i=0 x1=0".to_vec(), @@ -1882,12 +1876,12 @@ module Top ( let a = sim.signal("a"); let o = sim.signal("o"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 1u8)).unwrap(); assert_eq!(sim.get_as::(o), 1); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"x1=0".to_vec(), @@ -1926,13 +1920,13 @@ module Top ( let out = sim.signal("out"); sim.eval_comb().unwrap(); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(d, 3u8)).unwrap(); sim.tick(clk).unwrap(); assert_eq!(sim.get_as::(out), 3); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"ff=3".to_vec(), @@ -1965,15 +1959,15 @@ module Top ( let a = sim.signal("a"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 5u8)).unwrap(); assert_eq!(sim.get_as::(out), 5); assert_eq!( - sim.drain_runtime_events_with_context(celox::RuntimeFormatContext { + bare(sim.drain_runtime_events_with_context(celox::RuntimeFormatContext { tb_time: Some(42), scope: Some("tb.top"), - }), + })), vec![celox::RuntimeEvent::Display { message: b"loc=tb.top time=42 a=5".to_vec(), }], @@ -1996,15 +1990,15 @@ module Top ( let a = sim.signal("a"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 5u8)).unwrap(); assert_eq!(sim.get_as::(out), 5); assert_eq!( - sim.drain_runtime_events_with_context(celox::RuntimeFormatContext { + bare(sim.drain_runtime_events_with_context(celox::RuntimeFormatContext { tb_time: Some(42), scope: Some("tb.top"), - }), + })), vec![celox::RuntimeEvent::Display { message: b"loc=tb.top a=5".to_vec(), }], @@ -2039,13 +2033,13 @@ module Top ( let z = sim.signal("z"); sim.eval_comb().unwrap(); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 3u8)).unwrap(); assert_eq!(sim.get_as::(y), 3); assert_eq!(sim.get_as::(z), 0); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"active=3".to_vec(), }], @@ -2054,7 +2048,7 @@ module Top ( sim.modify(|io| io.set(a, 4u8)).unwrap(); assert_eq!(sim.get_as::(y), 4); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"active=4".to_vec(), }], @@ -2063,14 +2057,12 @@ module Top ( sim.modify(|io| io.set(b, 7u8)).unwrap(); assert_eq!(sim.get_as::(z), 7); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"inactive_display=7".to_vec(), }, - celox::RuntimeEvent::AssertContinue { - message: b"inactive_assert=7".to_vec(), - }, + celox::RuntimeEvent::Report(celox::Report::new(celox::Severity::Error, b"inactive_assert=7".to_vec())), ], ); } @@ -2106,13 +2098,13 @@ module Top ( let inactive_out = sim.signal("inactive_out"); sim.eval_comb().unwrap(); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 5u8)).unwrap(); assert_eq!(sim.get_as::(out), 7); assert_eq!(sim.get_as::(inactive_out), 0); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"first=6".to_vec(), @@ -2126,7 +2118,7 @@ module Top ( sim.modify(|io| io.set(a, 6u8)).unwrap(); assert_eq!(sim.get_as::(out), 8); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"first=7".to_vec(), @@ -2163,7 +2155,7 @@ module Top ( let base = sim.signal("base"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(count, 3u8); @@ -2172,7 +2164,7 @@ module Top ( .unwrap(); assert_eq!(sim.get_as::(out), 16); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"before i=0 sum=10".to_vec(), @@ -2216,7 +2208,7 @@ module Top ( let b = sim.signal("b"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(sel, 1u8); @@ -2226,7 +2218,7 @@ module Top ( .unwrap(); assert_eq!(sim.get_as::(out), 21); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"then=20".to_vec(), }], @@ -2235,7 +2227,7 @@ module Top ( sim.modify(|io| io.set(sel, 0u8)).unwrap(); assert_eq!(sim.get_as::(out), 41); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"else=40".to_vec(), }], @@ -2259,7 +2251,7 @@ module Top ( let a = sim.signal("a"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set_four_state( @@ -2271,7 +2263,7 @@ module Top ( .unwrap(); assert_eq!(sim.get_four_state(out).0, num_bigint::BigUint::from(0x1234_5678_9abc_def0u64)); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"a=000000000000000000010010001101000101011001111000100110101011110011011110xxxx0000" .to_vec(), @@ -2303,12 +2295,12 @@ module Top ( let a = sim.signal("a"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 9u8)).unwrap(); assert_eq!(sim.get_as::(out), 10); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"bump=10".to_vec(), }], @@ -2361,19 +2353,19 @@ module Top ( let stop = sim.signal("stop"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(a, 5u8); io.set(stop, 1u8); }).unwrap(); assert_eq!(sim.get_as::(out), 5); - assert_eq!(sim.drain_runtime_events(), vec![]); + assert_eq!(bare(sim.drain_runtime_events()), vec![]); sim.modify(|io| io.set(stop, 0u8)).unwrap(); assert_eq!(sim.get_as::(out), 5); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"notify=5".to_vec(), }], @@ -2426,7 +2418,7 @@ module Top ( let count = sim.signal("count"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(a, 7u8); @@ -2435,7 +2427,7 @@ module Top ( }).unwrap(); assert_eq!(sim.get_as::(out), 8); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"notify=7".to_vec(), }], @@ -2444,7 +2436,7 @@ module Top ( sim.modify(|io| io.set(stop, 0u8)).unwrap(); assert_eq!(sim.get_as::(out), 7); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"notify=7".to_vec(), @@ -2503,7 +2495,7 @@ module Top ( let count = sim.signal("count"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(a, 7u8); @@ -2512,7 +2504,7 @@ module Top ( io.set(count, 3u8); }).unwrap(); assert_eq!(sim.get_as::(out), 7); - assert_eq!(sim.drain_runtime_events(), vec![]); + assert_eq!(bare(sim.drain_runtime_events()), vec![]); } fn test_function_loop_with_return_and_break_preserves_effects(sim) { @@ -2549,7 +2541,7 @@ module Top ( let stop = sim.signal("stop"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(a, 9u8); @@ -2557,7 +2549,7 @@ module Top ( }).unwrap(); assert_eq!(sim.get_as::(out), 9); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"loop=0".to_vec(), @@ -2606,7 +2598,7 @@ module Top ( let stop = sim.signal("stop"); let return_early = sim.signal("return_early"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(value, 9u8); @@ -2614,7 +2606,7 @@ module Top ( }).unwrap(); assert_eq!(sim.get_as::(out), 9); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"after-loop".to_vec(), }], @@ -2622,7 +2614,7 @@ module Top ( sim.modify(|io| io.set(return_early, 1u8)).unwrap(); assert_eq!(sim.get_as::(out), 10); - assert_eq!(sim.drain_runtime_events(), vec![]); + assert_eq!(bare(sim.drain_runtime_events()), vec![]); } fn test_comb_function_packed_array_literal_preserves_source_order(sim) { @@ -2701,7 +2693,7 @@ module Top ( let q = sim.signal("q"); assert_eq!(sim.get_as::(q), 0xf8); - assert_eq!(sim.drain_runtime_events(), vec![]); + assert_eq!(bare(sim.drain_runtime_events()), vec![]); } fn test_named_function_inputs_evaluate_in_source_order(sim) { @@ -2752,7 +2744,7 @@ module Top ( let inner_count = sim.signal("inner_count"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(a, 11u8); @@ -2762,7 +2754,7 @@ module Top ( }).unwrap(); assert_eq!(sim.get_as::(out), 11); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"inner=0,0".to_vec(), @@ -2788,7 +2780,7 @@ module Top ( sim.modify(|io| io.set(stop, 1u8)).unwrap(); assert_eq!(sim.get_as::(out), 13); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"inner=0,0".to_vec(), @@ -2832,12 +2824,12 @@ module Top ( let a = sim.signal("a"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 6u8)).unwrap(); assert_eq!(sim.get_as::(out), 13); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"arg=6".to_vec(), }], @@ -2870,27 +2862,25 @@ module Top ( let out = sim.signal("out"); sim.eval_comb().unwrap(); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(unrelated, 1u8)).unwrap(); assert_eq!(sim.get_as::(out), 0); - assert_eq!(sim.drain_runtime_events(), vec![]); + assert_eq!(bare(sim.drain_runtime_events()), vec![]); sim.modify(|io| io.set(a, 0u8)).unwrap(); assert_eq!(sim.get_as::(out), 0); - assert_eq!(sim.drain_runtime_events(), vec![]); + assert_eq!(bare(sim.drain_runtime_events()), vec![]); sim.modify(|io| io.set(a, 1u8)).unwrap(); assert_eq!(sim.get_as::(out), 1); - assert_eq!(sim.drain_runtime_events(), vec![]); + assert_eq!(bare(sim.drain_runtime_events()), vec![]); sim.modify(|io| io.set(a, 0u8)).unwrap(); assert_eq!(sim.get_as::(out), 0); assert_eq!( - sim.drain_runtime_events(), - vec![celox::RuntimeEvent::AssertContinue { - message: b"zero=0".to_vec(), - }], + bare(sim.drain_runtime_events()), + vec![celox::RuntimeEvent::Report(celox::Report::new(celox::Severity::Error, b"zero=0".to_vec()))], ); } @@ -2914,12 +2904,12 @@ module Top ( let a = sim.signal("a"); let sum = sim.signal("sum"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 2u8)).unwrap(); assert_eq!(sim.get_as::(sum), 9); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"i=0 sum=2".to_vec(), @@ -2953,12 +2943,12 @@ module Top ( let a = sim.signal("a"); let seen = sim.signal("seen"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 1u8)).unwrap(); assert_eq!(sim.get_as::(seen), 2); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"first=1".to_vec(), @@ -2995,7 +2985,7 @@ module Top ( let b = sim.signal("b"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(a, 1u8); @@ -3004,7 +2994,7 @@ module Top ( .unwrap(); assert_eq!(sim.get_as::(out), 1); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"before=0".to_vec(), }], @@ -3012,12 +3002,12 @@ module Top ( sim.modify(|io| io.set(b, 4u8)).unwrap(); assert_eq!(sim.get_as::(out), 5); - assert_eq!(sim.drain_runtime_events(), vec![]); + assert_eq!(bare(sim.drain_runtime_events()), vec![]); sim.modify(|io| io.set(a, 2u8)).unwrap(); assert_eq!(sim.get_as::(out), 6); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"before=1".to_vec(), }], @@ -3050,7 +3040,7 @@ module Top ( let hi = sim.signal("hi"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(idx, 2u8); @@ -3060,7 +3050,7 @@ module Top ( .unwrap(); assert_eq!(sim.get_as::(out), 0xA4); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"mid=4".to_vec(), }], @@ -3069,7 +3059,7 @@ module Top ( sim.modify(|io| io.set(hi, 0xBu8)).unwrap(); assert_eq!(sim.get_as::(out), 0xB4); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"mid=4".to_vec(), }], @@ -3105,7 +3095,7 @@ module Top ( let tail = sim.signal("tail"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(idx, 2u8); @@ -3115,7 +3105,7 @@ module Top ( .unwrap(); assert_eq!(sim.get_as::(out), 0xAA); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"mid=85".to_vec(), }], @@ -3124,7 +3114,7 @@ module Top ( sim.modify(|io| io.set(tail, 0xBBu8)).unwrap(); assert_eq!(sim.get_as::(out), 0xBB); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"mid=85".to_vec(), }], @@ -3163,7 +3153,7 @@ module Top ( let y = sim.signal("y"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(base, 0u8); @@ -3176,7 +3166,7 @@ module Top ( .unwrap(); assert_eq!(sim.get_as::(out), 0); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"mid=1".to_vec(), }], @@ -3185,7 +3175,7 @@ module Top ( sim.modify(|io| io.set(y, 1u8)).unwrap(); assert_eq!(sim.get_as::(out), 1); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"mid=1".to_vec(), }], @@ -3198,7 +3188,7 @@ module Top ( .unwrap(); assert_eq!(sim.get_as::(out), 1); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"mid=0".to_vec(), }], @@ -3229,12 +3219,12 @@ module Top ( let a = sim.signal("a"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 3u8)).unwrap(); assert_eq!(sim.get_as::(out), 5); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"first=3".to_vec(), @@ -3281,7 +3271,7 @@ module Top ( let c = sim.signal("c"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(en, 1u8); @@ -3292,7 +3282,7 @@ module Top ( .unwrap(); assert_eq!(sim.get_as::(out), 19); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"then=7".to_vec(), }], @@ -3301,7 +3291,7 @@ module Top ( sim.modify(|io| io.set(en, 0u8)).unwrap(); assert_eq!(sim.get_as::(out), 19); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"else=11".to_vec(), }], @@ -3331,12 +3321,12 @@ module Top ( let a = sim.signal("a"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 2u8)).unwrap(); assert_eq!(sim.get_as::(out), 9); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"i=0 tmp=2".to_vec(), @@ -3381,7 +3371,7 @@ module Top ( let tail = sim.signal("tail"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(a, 10u8); @@ -3390,7 +3380,7 @@ module Top ( .unwrap(); assert_eq!(sim.get_as::(out), 99); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"after_f=13".to_vec(), }], @@ -3431,7 +3421,7 @@ module Top ( let tail = sim.signal("tail"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(a, 10u8); @@ -3439,7 +3429,7 @@ module Top ( }) .unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"after_split=11,12".to_vec(), }], @@ -3471,7 +3461,7 @@ module Top ( let hi = sim.signal("hi"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(lo, 0x5u8); @@ -3480,7 +3470,7 @@ module Top ( .unwrap(); assert_eq!(sim.get_as::(out), 0xA5); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"mid=133".to_vec(), }], @@ -3512,7 +3502,7 @@ module Top ( let base = sim.signal("base"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(count, 4u8); @@ -3521,7 +3511,7 @@ module Top ( .unwrap(); assert_eq!(sim.get_as::(out), 16); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"sum=16".to_vec(), }], @@ -3553,7 +3543,7 @@ module Top ( let base = sim.signal("base"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(count, 4u8); @@ -3562,7 +3552,7 @@ module Top ( .unwrap(); assert_eq!(sim.get_as::(out), 16); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"i=0 sum=10".to_vec(), @@ -3611,7 +3601,7 @@ module Top ( let out = sim.signal("out"); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"first=0".to_vec(), }], @@ -3624,7 +3614,7 @@ module Top ( .unwrap(); assert_eq!(sim.get_as::(out), 13); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"i=0 sum=10".to_vec(), @@ -3658,12 +3648,12 @@ module Top ( let count = sim.signal("count"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(count, 2u8)).unwrap(); assert_eq!(sim.get_as::(out), 2); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"same".to_vec(), @@ -3706,7 +3696,7 @@ module Top ( let out_a = sim.signal("out_a"); let out_b = sim.signal("out_b"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(count, 2u8); @@ -3716,7 +3706,7 @@ module Top ( assert_eq!(sim.get_as::(out_a), 6); assert_eq!(sim.get_as::(out_b), 16); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"i=0".to_vec(), @@ -3755,7 +3745,7 @@ module Top ( let base = sim.signal("base"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(count, 3u8); @@ -3764,7 +3754,7 @@ module Top ( .unwrap(); assert_eq!(sim.get_as::(out), 13); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"before=10".to_vec(), @@ -3810,25 +3800,25 @@ module Top ( let unrelated = sim.signal("unrelated"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); let value: num_bigint::BigUint = (num_bigint::BigUint::from(0x12u8) << 64) | num_bigint::BigUint::from(0x34u8); sim.modify(|io| io.set_wide(a, value.clone())).unwrap(); assert_eq!(sim.get_as::(out), 0x34); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"lo=52 hi=18".to_vec(), }], ); sim.modify(|io| io.set_wide(a, value)).unwrap(); - assert_eq!(sim.drain_runtime_events(), vec![]); + assert_eq!(bare(sim.drain_runtime_events()), vec![]); sim.modify(|io| io.set(unrelated, 1u8)).unwrap(); assert_eq!(sim.get_as::(out), 0x34); - assert_eq!(sim.drain_runtime_events(), vec![]); + assert_eq!(bare(sim.drain_runtime_events()), vec![]); } fn test_comb_display_downstream_dynamic_write_crossing_word_boundary(sim) { @@ -3857,7 +3847,7 @@ module Top ( let val = sim.signal("val"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(idx, 60u8); @@ -3866,14 +3856,14 @@ module Top ( .unwrap(); assert_eq!(sim.get_as::(out), 0xAB); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"slice=171".to_vec(), }], ); sim.modify(|io| io.set(val, 0xABu8)).unwrap(); - assert_eq!(sim.drain_runtime_events(), vec![]); + assert_eq!(bare(sim.drain_runtime_events()), vec![]); } fn test_comb_display_store_coalesce_does_not_enable_unrelated_chunk(sim) { @@ -3902,7 +3892,7 @@ module Top ( let hi = sim.signal("hi"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(lo, 5u8); @@ -3911,7 +3901,7 @@ module Top ( .unwrap(); assert_eq!(sim.get_as::(out), 5); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"lo=5".to_vec(), }], @@ -3919,7 +3909,7 @@ module Top ( sim.modify(|io| io.set(hi, 2u8)).unwrap(); assert_eq!(sim.get_as::(out), 5); - assert_eq!(sim.drain_runtime_events(), vec![]); + assert_eq!(bare(sim.drain_runtime_events()), vec![]); } fn test_comb_display_ff_to_downstream_comb_store_enables_observer(sim) { @@ -3953,20 +3943,20 @@ module Top ( let out = sim.signal("out"); sim.eval_comb().unwrap(); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(d, 11u8)).unwrap(); sim.tick(clk).unwrap(); assert_eq!(sim.get_as::(out), 11); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"x=11".to_vec(), }], ); sim.tick(clk).unwrap(); - assert_eq!(sim.drain_runtime_events(), vec![]); + assert_eq!(bare(sim.drain_runtime_events()), vec![]); } fn test_comb_display_port_alias_write_enables_downstream_observer(sim) { @@ -4002,19 +3992,19 @@ module Top ( let a = sim.signal("a"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 21u8)).unwrap(); assert_eq!(sim.get_as::(out), 21); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"internal=21".to_vec(), }], ); sim.modify(|io| io.set(a, 21u8)).unwrap(); - assert_eq!(sim.drain_runtime_events(), vec![]); + assert_eq!(bare(sim.drain_runtime_events()), vec![]); } fn test_comb_display_four_state_mask_only_input_change_triggers(sim) { @@ -4034,7 +4024,7 @@ module Top ( let a = sim.signal("a"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set_four_state( @@ -4046,7 +4036,7 @@ module Top ( .unwrap(); assert_eq!(sim.get_four_state(out).0, num_bigint::BigUint::from(0xA0u8)); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"a=10100000".to_vec(), }], @@ -4065,7 +4055,7 @@ module Top ( num_bigint::BigUint::from(0x0Fu8) ); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"a=1010zzzz".to_vec(), }], @@ -4096,13 +4086,13 @@ module Top ( let a = sim.signal("a"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set_wide(a, num_bigint::BigUint::from(0x5Au8))) .unwrap(); assert_eq!(sim.get_as::(out), 0x5A); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"slice=90".to_vec(), }], @@ -4132,7 +4122,7 @@ module Top ( let a = sim.signal("a"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set_four_state( @@ -4144,7 +4134,7 @@ module Top ( .unwrap(); assert_eq!(sim.get_as::(out), 0x10); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"lo=00010000".to_vec(), }], @@ -4163,7 +4153,7 @@ module Top ( num_bigint::BigUint::from(0x0Fu8) ); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"lo=0001zzzz".to_vec(), }], @@ -4203,12 +4193,12 @@ module Top ( let b = sim.signal("b"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(b, 0x33u8)).unwrap(); assert_eq!(sim.get_as::(out), 0x33); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"v=51".to_vec(), }], @@ -4241,7 +4231,7 @@ module Top ( let a = sim.signal("a"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(sel, 1u8); @@ -4249,12 +4239,12 @@ module Top ( }) .unwrap(); assert_eq!(sim.get_as::(out), 9); - assert_eq!(sim.drain_runtime_events(), vec![]); + assert_eq!(bare(sim.drain_runtime_events()), vec![]); sim.modify(|io| io.set(sel, 0u8)).unwrap(); assert_eq!(sim.get_as::(out), 0); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"tmp=0".to_vec(), }], @@ -4287,19 +4277,19 @@ module Top ( let a = sim.signal("a"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 7u8)).unwrap(); assert_eq!(sim.get_as::(out), 7); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"y=7".to_vec(), }], ); sim.modify(|io| io.set(a, 7u8)).unwrap(); - assert_eq!(sim.drain_runtime_events(), vec![]); + assert_eq!(bare(sim.drain_runtime_events()), vec![]); } fn test_comb_expression_operands_observe_prior_output_write(sim) { @@ -4324,10 +4314,10 @@ module Top (a: input logic<8>, out: output logic<8>) { let a = sim.signal("a"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 12u8)).unwrap(); assert_eq!(sim.get_as::(out), 13); - assert_eq!(sim.drain_runtime_events(), vec![celox::RuntimeEvent::Display { + assert_eq!(bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"observed=12".to_vec(), }]); } @@ -4354,19 +4344,19 @@ module Top (sel: input logic, a: input logic<8>, b: input logic<8>, out: output let a = sim.signal("a"); let b = sim.signal("b"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(sel, 1u8); io.set(a, 7u8); io.set(b, 9u8); }).unwrap(); assert_eq!(sim.get_as::(out), 7); - assert_eq!(sim.drain_runtime_events(), vec![celox::RuntimeEvent::Display { + assert_eq!(bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"left=7".to_vec(), }]); sim.modify(|io| io.set(sel, 0u8)).unwrap(); assert_eq!(sim.get_as::(out), 9); - assert_eq!(sim.drain_runtime_events(), vec![celox::RuntimeEvent::Display { + assert_eq!(bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"right=9".to_vec(), }]); } @@ -4390,10 +4380,10 @@ module Top (a: input logic<8>, out: output logic<8>) { let a = sim.signal("a"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 23u8)).unwrap(); assert_eq!(sim.get_as::(out), 23); - assert_eq!(sim.drain_runtime_events(), vec![celox::RuntimeEvent::Display { + assert_eq!(bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"inner=23".to_vec(), }]); } @@ -4430,13 +4420,13 @@ module Top (index: input logic<2>, value: input logic<8>, out: output logic<8>) let index = sim.signal("index"); let value = sim.signal("value"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(index, 2u8); io.set(value, 55u8); }).unwrap(); assert_eq!(sim.get_as::(out), 42); - assert_eq!(sim.drain_runtime_events(), vec![celox::RuntimeEvent::Display { + assert_eq!(bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"index=2".to_vec(), }]); } @@ -4466,18 +4456,18 @@ module Top (sel: input logic, a: input logic<8>, out: output logic<8>) { let sel = sim.signal("sel"); let a = sim.signal("a"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(sel, 0u8); io.set(a, 17u8); }).unwrap(); assert_eq!(sim.get_as::(out), 1); - assert_eq!(sim.drain_runtime_events(), vec![celox::RuntimeEvent::Display { + assert_eq!(bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"after=1".to_vec(), }]); sim.modify(|io| io.set(sel, 1u8)).unwrap(); assert_eq!(sim.get_as::(out), 17); - assert_eq!(sim.drain_runtime_events(), vec![celox::RuntimeEvent::Display { + assert_eq!(bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"after=17".to_vec(), }]); } @@ -4531,13 +4521,13 @@ module Top ( let value = sim.signal("value"); let first_out = sim.signal("first_out"); let slots_out = sim.signal("slots_out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(value, 10u8)).unwrap(); assert_eq!(sim.get_as::(first_out), 12); assert_eq!(sim.get_as::(slots_out), 1); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"preview=12".to_vec(), }], @@ -4584,13 +4574,13 @@ module Top ( let value = sim.signal("value"); let first_out = sim.signal("first_out"); let slots_out = sim.signal("slots_out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(value, 10u8)).unwrap(); assert_eq!(sim.get_as::(first_out), 12); assert_eq!(sim.get_as::(slots_out), 1); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"preview=12".to_vec(), }], @@ -4625,9 +4615,9 @@ module Top (value: input logic<8>, out: output logic<8>) { let value = sim.signal("value"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(value, 31u8)).unwrap(); - assert_eq!(sim.drain_runtime_events(), vec![ + assert_eq!(bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"bound=31".to_vec() }, celox::RuntimeEvent::Display { message: b"body=31".to_vec() }, ]); @@ -4659,10 +4649,10 @@ module Top (value: input logic, out: output logic) { let value = sim.signal("value"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(value, 1u8)).unwrap(); assert_eq!(sim.get_as::(out), 1); - assert_eq!(sim.drain_runtime_events(), vec![celox::RuntimeEvent::Display { + assert_eq!(bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"index_seen=1".to_vec(), }]); } @@ -4700,17 +4690,17 @@ module Top ( let skip = sim.signal("skip"); let value = sim.signal("value"); let out = sim.signal("out"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| { io.set(skip, 1u8); io.set(value, 45u8); }).unwrap(); assert_eq!(sim.get_as::(out), 0); - assert_eq!(sim.drain_runtime_events(), vec![]); + assert_eq!(bare(sim.drain_runtime_events()), vec![]); sim.modify(|io| io.set(skip, 0u8)).unwrap(); assert_eq!(sim.get_as::(out), 45); - assert_eq!(sim.drain_runtime_events(), vec![celox::RuntimeEvent::Display { + assert_eq!(bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"active_bound=45".to_vec(), }]); } @@ -4741,7 +4731,7 @@ module Top (trigger: input logic, out: output logic<2>) { let out = sim.signal("out"); assert_eq!(sim.get_as::(out), 2); - assert_eq!(sim.drain_runtime_events(), vec![celox::RuntimeEvent::Display { + assert_eq!(bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"concat_seen=1".to_vec(), }]); } @@ -4775,7 +4765,7 @@ module Top (trigger: input logic, out: output logic<2>) { let out = sim.signal("out"); assert_eq!(sim.get_as::(out), 2); - assert_eq!(sim.drain_runtime_events(), vec![celox::RuntimeEvent::Display { + assert_eq!(bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"function_concat_seen=1".to_vec(), }]); } @@ -5515,3 +5505,17 @@ module Top ( "{error}" ); } + +/// The drained events without the time, scope, location and assertion of +/// their reports, which these tests do not check. +fn bare(events: Vec) -> Vec { + events + .into_iter() + .map(|event| match event { + celox::RuntimeEvent::Report(report) => { + celox::RuntimeEvent::Report(celox::Report::new(report.severity, report.message)) + } + event => event, + }) + .collect() +} diff --git a/crates/celox/tests/flip_flop.rs b/crates/celox/tests/flip_flop.rs index 573ade5e492..f845393ee10 100644 --- a/crates/celox/tests/flip_flop.rs +++ b/crates/celox/tests/flip_flop.rs @@ -48,16 +48,14 @@ fn test_ff_runtime_display_and_assert_continue(sim) { sim.modify(|io| io.set(a, 3u8)).unwrap(); sim.tick(clk).unwrap(); - let events = sim.drain_runtime_events(); + let events = bare(sim.drain_runtime_events()); assert_eq!( events, vec![ celox::RuntimeEvent::Display { message: b"a=3".to_vec(), }, - celox::RuntimeEvent::AssertContinue { - message: b"bad a=3".to_vec(), - }, + celox::RuntimeEvent::Report(celox::Report::new(celox::Severity::Error, b"bad a=3".to_vec())), ], ); } @@ -94,7 +92,7 @@ fn test_ff_assert_message_runtime_effect_is_eager(sim) { .unwrap(); sim.tick(clk).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"inside=10".to_vec(), }], @@ -107,14 +105,12 @@ fn test_ff_assert_message_runtime_effect_is_eager(sim) { .unwrap(); sim.tick(clk).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"inside=20".to_vec(), }, - celox::RuntimeEvent::AssertContinue { - message: b"value=22".to_vec(), - }, + celox::RuntimeEvent::Report(celox::Report::new(celox::Severity::Error, b"value=22".to_vec())), ], ); } @@ -171,7 +167,7 @@ fn test_ff_unknown_ternary_retains_then_arm_output_state(sim) { assert_eq!(sim.get(effect), 11u8.into()); assert_eq!(sim.get(q), 11u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"written=11".to_vec(), }], @@ -199,7 +195,7 @@ fn test_ff_ternary_runtime_effect_only_evaluates_selected_arm(sim) { sim.modify(|io| io.set(choose, 1u8)).unwrap(); sim.tick(clk).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"arm=1".to_vec(), }], @@ -208,7 +204,7 @@ fn test_ff_ternary_runtime_effect_only_evaluates_selected_arm(sim) { sim.modify(|io| io.set(choose, 0u8)).unwrap(); sim.tick(clk).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"arm=2".to_vec(), }], @@ -243,7 +239,7 @@ fn test_ff_effectful_function_input_is_evaluated_once(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(q), 7u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"inner=7".to_vec(), @@ -281,10 +277,8 @@ fn test_ff_assert_message_args_preserve_left_to_right_snapshots(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(effect), 6u8.into()); assert_eq!( - sim.drain_runtime_events(), - vec![celox::RuntimeEvent::AssertContinue { - message: b"5 6".to_vec(), - }], + bare(sim.drain_runtime_events()), + vec![celox::RuntimeEvent::Report(celox::Report::new(celox::Severity::Error, b"5 6".to_vec()))], ); } @@ -317,7 +311,7 @@ fn test_ff_runtime_effect_function_snapshots_input_that_aliases_output(sim) { assert_eq!(sim.get(effect), 6u8.into()); assert_eq!(sim.get(q), 5u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"x=5".to_vec(), }], @@ -357,7 +351,7 @@ fn test_ff_case_pattern_runtime_effect_is_eager(sim) { .unwrap(); sim.tick(clk).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"pattern=1".to_vec(), }], @@ -396,7 +390,7 @@ fn test_ff_statement_function_materializes_effectful_case_controls(sim) { sim.modify(|io| io.set(d, 1u8)).unwrap(); sim.tick(clk).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"case 1=1".to_vec(), @@ -460,7 +454,7 @@ fn test_ff_case_controls_apply_nested_output_writes_to_function_state(sim) { sim.modify(|io| io.set(d, 10u8)).unwrap(); sim.tick(clk).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"state=10 11".to_vec(), }], @@ -501,7 +495,7 @@ fn test_ff_case_skips_effectful_patterns_after_matching_arm(sim) { sim.modify(|io| io.set(d, 1u8)).unwrap(); sim.tick(clk).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"pattern 1=1".to_vec(), }], @@ -536,7 +530,7 @@ fn test_ff_assignment_snapshots_dynamic_rhs_access(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(q), 1u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"captured=1".to_vec(), }], @@ -571,7 +565,7 @@ fn test_ff_assignment_substitutes_through_evaluating_system_function(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(q), 5u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"captured=5".to_vec(), }], @@ -609,7 +603,7 @@ fn test_ff_if_snapshots_dynamic_predicate_before_state_merge(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(q), 1u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"result=1".to_vec(), }], @@ -648,7 +642,7 @@ fn test_ff_case_snapshots_dynamic_target_before_state_merge(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(q), 1u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"result=1".to_vec(), }], @@ -710,7 +704,7 @@ fn test_ff_case_merges_nested_output_state_from_selected_arm(sim) { assert_eq!(sim.get(effect), 11u8.into()); assert_eq!(sim.get(q), 11u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"written=11".to_vec(), }], @@ -725,7 +719,7 @@ fn test_ff_case_merges_nested_output_state_from_selected_arm(sim) { assert_eq!(sim.get(effect), 20u8.into()); assert_eq!(sim.get(q), 20u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"written=20".to_vec(), }], @@ -781,7 +775,7 @@ fn test_ff_variable_select_captures_nested_output(sim) { assert_eq!(sim.get(effect), 3u8.into()); assert_eq!(sim.get(q), 3u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"bit=1".to_vec(), }], @@ -832,7 +826,7 @@ fn test_ff_effectful_assignment_executes_only_on_selected_if_path(sim) { .unwrap(); sim.tick(clk).unwrap(); assert_eq!(sim.get(q), 6u8.into()); - assert!(sim.drain_runtime_events().is_empty()); + assert!(bare(sim.drain_runtime_events()).is_empty()); sim.modify(|io| { io.set(enable, 1u8); @@ -842,7 +836,7 @@ fn test_ff_effectful_assignment_executes_only_on_selected_if_path(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(q), 8u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"assigned=6".to_vec(), }], @@ -887,7 +881,7 @@ fn test_ff_runtime_effect_after_conditional_return_uses_live_path(sim) { .unwrap(); sim.tick(clk).unwrap(); assert_eq!(sim.get(q), 8u8.into()); - assert!(sim.drain_runtime_events().is_empty()); + assert!(bare(sim.drain_runtime_events()).is_empty()); sim.modify(|io| { io.set(skip, 0u8); @@ -897,7 +891,7 @@ fn test_ff_runtime_effect_after_conditional_return_uses_live_path(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(q), 10u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"live=8".to_vec(), }], @@ -949,7 +943,7 @@ fn test_ff_case_after_conditional_return_preserves_returned_path(sim) { .unwrap(); sim.tick(clk).unwrap(); assert_eq!(sim.get(q), 11u8.into()); - assert!(sim.drain_runtime_events().is_empty()); + assert!(bare(sim.drain_runtime_events()).is_empty()); sim.modify(|io| { io.set(skip, 1u8); @@ -959,7 +953,7 @@ fn test_ff_case_after_conditional_return_preserves_returned_path(sim) { .unwrap(); sim.tick(clk).unwrap(); assert_eq!(sim.get(q), 21u8.into()); - assert!(sim.drain_runtime_events().is_empty()); + assert!(bare(sim.drain_runtime_events()).is_empty()); sim.modify(|io| { io.set(skip, 0u8); @@ -970,7 +964,7 @@ fn test_ff_case_after_conditional_return_preserves_returned_path(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(q), 32u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"case=0".to_vec(), }], @@ -985,7 +979,7 @@ fn test_ff_case_after_conditional_return_preserves_returned_path(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(q), 43u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"case=1".to_vec(), }], @@ -1020,7 +1014,7 @@ fn test_ff_statement_call_evaluates_effectful_inputs(sim) { sim.modify(|io| io.set(d, 9u8)).unwrap(); sim.tick(clk).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"input=9".to_vec(), }], @@ -1050,7 +1044,7 @@ fn test_ff_top_level_statement_call_evaluates_discarded_effectful_input(sim) { sim.modify(|io| io.set(d, 13u8)).unwrap(); sim.tick(clk).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"direct=13".to_vec(), }], @@ -1099,7 +1093,7 @@ fn test_ff_nested_runtime_event_output_updates_outer_function_state(sim) { assert_eq!(sim.get(effect), 8u8.into()); assert_eq!(sim.get(q), 7u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"value=9".to_vec(), }], @@ -1147,7 +1141,7 @@ fn test_ff_nested_output_to_module_variable_survives_runtime_function(sim) { assert_eq!(sim.get(global_value), 8u8.into()); assert_eq!(sim.get(q), 0u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"outer".to_vec(), }], @@ -1196,7 +1190,7 @@ fn test_ff_runtime_function_snapshots_nonlocal_read_before_later_write(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(global_value), 7u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"captured=0".to_vec(), }], @@ -1255,7 +1249,7 @@ fn test_ff_outputless_nested_nonlocal_write_updates_later_event_argument(sim) { assert_eq!(sim.get(global_value), 9u8.into()); assert_eq!(sim.get(q), 0u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"values=1,9".to_vec(), }], @@ -1347,7 +1341,7 @@ fn test_ff_pure_helper_nonlocal_read_is_snapshotted_before_runtime_write(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(global_value), 0x5au8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"captured=0".to_vec(), }], @@ -1401,7 +1395,7 @@ fn test_ff_guarded_system_task_merges_definition_state(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(global_value), 2u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"update=0".to_vec(), @@ -1416,7 +1410,7 @@ fn test_ff_guarded_system_task_merges_definition_state(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(global_value), 2u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"global=2".to_vec(), }], @@ -1461,7 +1455,7 @@ fn test_ff_statement_helper_dynamic_nonlocal_copyout_is_observable(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(global_value), 4u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"set".to_vec(), }], @@ -1501,7 +1495,7 @@ fn test_ff_nested_dynamic_nonlocal_store_flushes_pending_outer_state(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(global_value), 4u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"result=0 global=4".to_vec(), }], @@ -1541,7 +1535,7 @@ fn test_ff_retained_dynamic_copyout_does_not_repeat_nonlocal_body_write(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(global_value), 5u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"result=1 global=1".to_vec(), }], @@ -1596,7 +1590,7 @@ fn test_ff_guarded_runtime_expression_merges_definition_state(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(global_value), 2u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"global=0".to_vec(), }], @@ -1606,7 +1600,7 @@ fn test_ff_guarded_runtime_expression_merges_definition_state(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(global_value), 2u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"global=2".to_vec(), }], @@ -1674,7 +1668,7 @@ fn test_ff_short_circuit_nested_output_updates_only_when_rhs_runs(sim) { assert_eq!(sim.get(and_effect), 10u8.into()); assert_eq!(sim.get(or_effect), 11u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"and=0".to_vec(), @@ -1694,7 +1688,7 @@ fn test_ff_short_circuit_nested_output_updates_only_when_rhs_runs(sim) { assert_eq!(sim.get(and_effect), 21u8.into()); assert_eq!(sim.get(or_effect), 20u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"and=1".to_vec(), @@ -1714,7 +1708,7 @@ fn test_ff_short_circuit_nested_output_updates_only_when_rhs_runs(sim) { assert_eq!(sim.get(and_effect), 31u8.into()); assert_eq!(sim.get(or_effect), 31u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"and=x".to_vec(), @@ -1776,7 +1770,7 @@ fn test_ff_pure_predicate_output_updates_outer_function_state(sim) { assert_eq!(sim.get(effect), 13u8.into()); assert_eq!(sim.get(q), 13u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"predicate=13".to_vec(), }], @@ -1834,7 +1828,7 @@ fn test_ff_nested_wrapper_predicate_output_updates_caller_state(sim) { assert_eq!(sim.get(effect), 13u8.into()); assert_eq!(sim.get(q), 13u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"wrapper=13".to_vec(), }], @@ -1894,7 +1888,7 @@ fn test_ff_nested_call_predicate_uses_pre_copyout_input(sim) { assert_eq!(sim.get(effect), 42u8.into()); assert_eq!(sim.get(q), 42u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"wrapper=42".to_vec(), }], @@ -1948,7 +1942,7 @@ fn test_ff_bits_and_size_do_not_evaluate_output_writing_operand(sim) { assert_eq!(sim.get(effect), 14u8.into()); assert_eq!(sim.get(q), 14u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"bits=8 size=8".to_vec(), }], @@ -2014,7 +2008,7 @@ fn test_ff_statement_call_materializes_output_only_input_effect(sim) { assert_eq!(sim.get(effect), 17u8.into()); assert_eq!(sim.get(q), 17u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"statement=17".to_vec(), }], @@ -2058,7 +2052,7 @@ fn test_ff_nested_statement_call_copies_outputs_in_declaration_order(sim) { assert_eq!(sim.get(effect), 2u8.into()); assert_eq!(sim.get(q), 2u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"written=2".to_vec(), }], @@ -2098,7 +2092,7 @@ fn test_ff_nested_statement_call_coerces_output_to_actual_width(sim) { assert_eq!(sim.get(effect), 1u8.into()); assert_eq!(sim.get(q), 1u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"written=1".to_vec(), }], @@ -2158,7 +2152,7 @@ fn test_ff_state_only_statement_call_materializes_nested_input_output(sim) { assert_eq!(sim.get(effect), 17u8.into()); assert_eq!(sim.get(q), 17u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"wrapped=17".to_vec(), }], @@ -2206,7 +2200,7 @@ fn test_ff_statement_call_copies_outputs_in_declaration_order(sim) { sim.tick(clk).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"index=0".to_vec(), @@ -2261,7 +2255,7 @@ fn test_ff_composite_runtime_arg_preserves_left_to_right_snapshot(sim) { assert_eq!(sim.get(effect), 11u8.into()); assert_eq!(sim.get(q), 11u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"sum=22".to_vec(), }], @@ -2329,7 +2323,7 @@ fn test_ff_nested_call_inputs_capture_outputs_in_declaration_order(sim) { assert_eq!(sim.get(effect), 12u8.into()); assert_eq!(sim.get(q), 12u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"ordered=22".to_vec(), }], @@ -2378,7 +2372,7 @@ fn test_ff_nested_call_freezes_all_outputs_before_copy_out(sim) { assert_eq!(sim.get(first), 9u8.into()); assert_eq!(sim.get(second), 7u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"sum=16".to_vec(), }], @@ -2432,7 +2426,7 @@ fn test_ff_nested_call_output_preserves_conditional_early_return_path(sim) { assert_eq!(sim.get(effect), 1u8.into()); assert_eq!(sim.get(q), 1u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"inner=11".to_vec(), @@ -2448,7 +2442,7 @@ fn test_ff_nested_call_output_preserves_conditional_early_return_path(sim) { assert_eq!(sim.get(effect), 2u8.into()); assert_eq!(sim.get(q), 2u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"inner=22".to_vec(), @@ -2521,7 +2515,7 @@ fn test_ff_short_circuit_state_reuses_evaluated_lhs(sim) { assert_eq!(sim.get(effect), 21u8.into()); assert_eq!(sim.get(q), 21u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"lhs=20".to_vec(), @@ -2589,7 +2583,7 @@ fn test_ff_concatenation_effects_follow_source_order(sim) { assert_eq!(sim.get(effect), 12u8.into()); assert_eq!(sim.get(q), 12u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"first=10".to_vec(), @@ -2631,7 +2625,7 @@ fn test_ff_materialized_formal_slice_uses_expression_context(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(q), 0x0010u16.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"inner=175".to_vec(), }], @@ -2673,7 +2667,7 @@ fn test_ff_runtime_event_reads_updated_formal_slice(sim) { assert_eq!(sim.get(effect), 0x1fu8.into()); assert_eq!(sim.get(q), 0x1eu8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"slice=15".to_vec(), }], @@ -2723,7 +2717,7 @@ fn test_ff_case_assignment_is_visible_to_later_runtime_event(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(effect), 11u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"case=11".to_vec(), }], @@ -2737,7 +2731,7 @@ fn test_ff_case_assignment_is_visible_to_later_runtime_event(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(effect), 22u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"case=22".to_vec(), }], @@ -2771,7 +2765,7 @@ fn test_ff_statement_function_with_output_emits_runtime_effect(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(effect), 13u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"statement=12".to_vec(), }], @@ -2817,7 +2811,7 @@ fn test_ff_effectful_if_predicate_is_evaluated_once(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(q), 7u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"predicate=7".to_vec(), }], @@ -2866,7 +2860,7 @@ fn test_ff_nested_output_is_captured_through_signed_cast(sim) { assert_eq!(sim.get(effect), 8u8.into()); assert_eq!(sim.get(q), 7u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"cast=9".to_vec(), }], @@ -2921,7 +2915,7 @@ fn test_ff_effectful_function_inputs_follow_declaration_order(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(q), 24u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"arg=1".to_vec(), @@ -3000,7 +2994,7 @@ fn test_ff_runtime_event_arguments_use_per_argument_state(sim) { assert_eq!(sim.get(effect), 11u8.into()); assert_eq!(sim.get(q), 11u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"args=10 12".to_vec(), }], @@ -3036,7 +3030,7 @@ fn test_ff_runtime_event_formal_uses_declared_type(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(q), 0xffu8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"formal=-1".to_vec(), }], @@ -3078,7 +3072,7 @@ fn test_ff_unpacked_input_before_runtime_effect_stays_symbolically_bound(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(q), 0xabu8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"observed=17".to_vec(), }], @@ -3119,7 +3113,7 @@ fn test_ff_symbolic_runtime_input_uses_declared_formal_type(sim) { sim.modify(|io| io.set(d, 0x0100u16)).unwrap(); sim.tick(clk).unwrap(); assert_eq!(sim.get(q), 0u8.into()); - assert!(sim.drain_runtime_events().is_empty()); + assert!(bare(sim.drain_runtime_events()).is_empty()); } fn test_ff_runtime_effectful_return_uses_declared_signed_type(sim) { @@ -3159,7 +3153,7 @@ fn test_ff_runtime_effectful_return_uses_declared_signed_type(sim) { (BigUint::from(0xffa0u32), BigUint::from(0u32)) ); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"return".to_vec(), }], @@ -3207,7 +3201,7 @@ fn test_ff_runtime_effectful_output_uses_declared_formal_type(sim) { (BigUint::from(0xa0u32), BigUint::from(0u32)) ); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"output".to_vec(), }], @@ -3245,7 +3239,7 @@ fn test_ff_runtime_effectful_merge_preserves_signed_return_type(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(q), 0xff80u16.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"choose=1".to_vec(), }], @@ -3255,7 +3249,7 @@ fn test_ff_runtime_effectful_merge_preserves_signed_return_type(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(q), 0xff81u16.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"choose=0".to_vec(), }], @@ -3295,7 +3289,7 @@ fn test_ff_runtime_effectful_local_assignment_uses_declared_type(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(q), 1u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"temporary=-1".to_vec(), }], @@ -3329,7 +3323,7 @@ fn test_ff_rewritten_runtime_event_argument_preserves_signedness(sim) { sim.tick(clk).unwrap(); assert_eq!(sim.get(q), 1u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"signed=-1".to_vec(), }], @@ -3352,7 +3346,7 @@ fn test_ff_runtime_events_format_verilog_radices(sim) { sim.modify(|io| io.set(a, 0x2au8)).unwrap(); sim.tick(clk).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"bin=00101010 hex=2a HEX=2a".to_vec(), }], @@ -3386,7 +3380,7 @@ fn test_ff_runtime_events_follow_veryl_field_widths(sim) { // Veryl's simulator: radices at the argument's width, decimals at their // minimum, C-style flags, and no truncation to a narrower field. assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"[ 7][7 ][00007][9][00000009][0007]".to_vec(), @@ -3417,7 +3411,7 @@ fn test_ff_runtime_events_preserve_four_state_args(sim) { }) .unwrap(); sim.tick(clk).unwrap(); - let events = sim.drain_runtime_events(); + let events = bare(sim.drain_runtime_events()); assert_eq!( events, vec![ @@ -3430,9 +3424,7 @@ fn test_ff_runtime_events_preserve_four_state_args(sim) { } .as_bytes().to_vec(), }, - celox::RuntimeEvent::AssertContinue { - message: b"bad=1z10".to_vec(), - }, + celox::RuntimeEvent::Report(celox::Report::new(celox::Severity::Error, b"bad=1z10".to_vec())), ], ); } @@ -3471,7 +3463,7 @@ fn test_ff_runtime_events_support_design_sized_arg_count(sim) { .unwrap(); sim.tick(clk).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"1 2 3 4 5".to_vec(), }], @@ -3501,7 +3493,7 @@ fn test_ff_runtime_events_support_wide_four_state_args(sim) { .unwrap(); sim.tick(clk).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: match FRONTEND { test_utils::Frontend::Veryl => "a=123456789abcdef0123X dec=x", @@ -3533,13 +3525,13 @@ fn test_ff_runtime_event_drain_handle_can_run_during_simulation(sim) { let drained = std::sync::Arc::clone(&drained); std::thread::spawn(move || { while !done.load(std::sync::atomic::Ordering::Acquire) { - let events = drain.drain(); + let events = bare(drain.drain()); if !events.is_empty() { drained.lock().unwrap().extend(events); } std::thread::yield_now(); } - drained.lock().unwrap().extend(drain.drain()); + drained.lock().unwrap().extend(bare(drain.drain())); }) }; @@ -3587,11 +3579,11 @@ fn test_runtime_event_drain_handle_is_exclusive(sim) { sim.modify(|io| io.set(a, 9u8)).unwrap(); sim.tick(clk).unwrap(); let result = std::panic::catch_unwind(std::panic::AssertUnwindSafe(|| { - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); })); assert!(result.is_err()); assert_eq!( - drain.drain(), + bare(drain.drain()), vec![celox::RuntimeEvent::Display { message: b"a=9".to_vec(), }], @@ -3601,7 +3593,7 @@ fn test_runtime_event_drain_handle_is_exclusive(sim) { sim.modify(|io| io.set(a, 10u8)).unwrap(); sim.tick(clk).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"a=10".to_vec(), }], @@ -3623,12 +3615,10 @@ fn test_ff_runtime_fatal_assert_records_event(sim) { sim.modify(|io| io.set(a, 7u8)).unwrap(); assert!(sim.tick(clk).is_err()); - let events = sim.drain_runtime_events(); + let events = bare(sim.drain_runtime_events()); assert_eq!( events, - vec![celox::RuntimeEvent::AssertFatal { - message: b"fatal a=7".to_vec(), - }], + vec![celox::RuntimeEvent::Report(celox::Report::new(celox::Severity::Fatal, b"fatal a=7".to_vec()))], ); } @@ -3646,12 +3636,10 @@ fn test_ff_message_less_runtime_fatal_assert_uses_default_message(sim) { let err = sim.tick(clk).unwrap_err(); assert_eq!(err.to_string(), "assertion failed"); - let events = sim.drain_runtime_events(); + let events = bare(sim.drain_runtime_events()); assert_eq!( events, - vec![celox::RuntimeEvent::AssertFatal { - message: b"assertion failed".to_vec(), - }], + vec![celox::RuntimeEvent::Report(celox::Report::new(celox::Severity::Fatal, b"assertion failed".to_vec()))], ); } @@ -4188,13 +4176,13 @@ fn test_ff_case_range_skips_effectful_upper_bound_when_lower_is_false(sim) { sim.modify(|io| io.set(d, 1u8)).unwrap(); sim.tick(clk).unwrap(); assert_eq!(sim.get(q), 0u8.into()); - assert!(sim.drain_runtime_events().is_empty()); + assert!(bare(sim.drain_runtime_events()).is_empty()); sim.modify(|io| io.set(d, 6u8)).unwrap(); sim.tick(clk).unwrap(); assert_eq!(sim.get(q), 1u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"upper".to_vec(), }], @@ -5394,3 +5382,17 @@ fn test_ff_register_gated_clock_rises_after_the_commit(sim) { } } + +/// The drained events without the time, scope, location and assertion of +/// their reports, which these tests do not check. +fn bare(events: Vec) -> Vec { + events + .into_iter() + .map(|event| match event { + celox::RuntimeEvent::Report(report) => { + celox::RuntimeEvent::Report(celox::Report::new(report.severity, report.message)) + } + event => event, + }) + .collect() +} diff --git a/crates/celox/tests/floating_point_display.rs b/crates/celox/tests/floating_point_display.rs index eed41c9944f..80a24a37213 100644 --- a/crates/celox/tests/floating_point_display.rs +++ b/crates/celox/tests/floating_point_display.rs @@ -1,4 +1,4 @@ -use celox::{RuntimeEvent, Simulator}; +use celox::{Report, RuntimeEvent, Severity, Simulator}; #[path = "test_utils/mod.rs"] #[macro_use] @@ -20,10 +20,10 @@ all_backends! { } } "#, "Top"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); let a = sim.signal("a"); sim.modify(|io| io.set(a, 3u32)).unwrap(); - assert_eq!(sim.drain_runtime_events(), vec![ + assert_eq!(bare(sim.drain_runtime_events()), vec![ RuntimeEvent::Display { message: b"wide=1.500000 narrow=3.00 neg=-1.50".to_vec() }, RuntimeEvent::Write { message: b"fraction=1.50".to_vec() }, ]); @@ -39,10 +39,10 @@ all_backends! { always_comb { $display((a as f64) / 2.0, a as f32); } } "#, "Top"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); let a = sim.signal("a"); sim.modify(|io| io.set(a, 3u32)).unwrap(); - assert_eq!(sim.drain_runtime_events(), vec![RuntimeEvent::Display { message: b"1.5 3".to_vec() }]); + assert_eq!(bare(sim.drain_runtime_events()), vec![RuntimeEvent::Display { message: b"1.5 3".to_vec() }]); } fn rtl_negative_float_constants(sim) { @@ -58,10 +58,10 @@ all_backends! { } "#, "Top"); let clk = sim.event("clk"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.tick(clk).unwrap(); assert_eq!(sim.get(sim.signal("q")), 0xfffffffeu32.into()); - assert_eq!(sim.drain_runtime_events(), vec![RuntimeEvent::Display { message: b"constant=-2.25 wide=-1.50".to_vec() }]); + assert_eq!(bare(sim.drain_runtime_events()), vec![RuntimeEvent::Display { message: b"constant=-2.25 wide=-1.50".to_vec() }]); } fn rtl_ff_float_messages(sim) { @@ -77,11 +77,11 @@ all_backends! { let a = sim.signal("a"); let clk = sim.event("clk"); sim.modify(|io| io.set(a, 3u32)).unwrap(); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.tick(clk).unwrap(); - assert_eq!(sim.drain_runtime_events(), vec![ + assert_eq!(bare(sim.drain_runtime_events()), vec![ RuntimeEvent::Display { message: b"ff=1.50 f32=3.00".to_vec() }, - RuntimeEvent::AssertContinue { message: b"value=1.50".to_vec() }, + RuntimeEvent::Report(Report::new(Severity::Error, b"value=1.50".to_vec())), ]); } } @@ -244,7 +244,7 @@ fn named_float_constants_and_parameters_display_numeric_values() { let clk = sim.event("clk"); sim.tick(clk).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![RuntimeEvent::Display { message: expected.as_bytes().to_vec() }] @@ -276,7 +276,7 @@ fn hierarchical_float_parameter_overrides_keep_their_own_scope() { let clk = sim.event("clk"); sim.tick(clk).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![RuntimeEvent::Display { message: b"P=1.25 C=1.75".to_vec() }] @@ -319,7 +319,7 @@ fn package_float_constants_do_not_alias_same_named_parameter_overrides() { let clk = sim.event("clk"); sim.tick(clk).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![RuntimeEvent::Display { message: b"local=1.25 package=-2.25".to_vec() }] @@ -342,9 +342,23 @@ fn integral_parameter_override_is_used_by_float_constant() { let clk = sim.event("clk"); sim.tick(clk).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![RuntimeEvent::Display { message: b"F=3.00 transitive=4.00 direct=4.00".to_vec() }] ); } + +/// The drained events without the time, scope, location and assertion of +/// their reports, which these tests do not check. +fn bare(events: Vec) -> Vec { + events + .into_iter() + .map(|event| match event { + celox::RuntimeEvent::Report(report) => { + celox::RuntimeEvent::Report(celox::Report::new(report.severity, report.message)) + } + event => event, + }) + .collect() +} diff --git a/crates/celox/tests/four_state_expression_semantics.rs b/crates/celox/tests/four_state_expression_semantics.rs index bb30d875cae..e7d68800b90 100644 --- a/crates/celox/tests/four_state_expression_semantics.rs +++ b/crates/celox/tests/four_state_expression_semantics.rs @@ -71,7 +71,7 @@ module Top ( }) .unwrap(); sim.tick(clk).unwrap(); - assert!(sim.drain_runtime_events().is_empty()); + assert!(bare(sim.drain_runtime_events()).is_empty()); for (value, mask, label) in [ (BigUint::from(0u8), BigUint::from(0u8), "0"), @@ -84,10 +84,8 @@ module Top ( .unwrap(); sim.tick(clk).unwrap(); assert_eq!( - sim.drain_runtime_events(), - vec![celox::RuntimeEvent::AssertContinue { - message: b"bad condition".to_vec(), - }], + bare(sim.drain_runtime_events()), + vec![celox::RuntimeEvent::Report(celox::Report::new(celox::Severity::Error, b"bad condition".to_vec()))], "cond={label}", ); } @@ -108,7 +106,7 @@ module Top ( let cond = sim.signal("cond"); let known_one = BigUint::from(1u8) << 100usize; let unknown = BigUint::from(1u8) << 2usize; - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); for (unknown_value, label) in [(1u8, "X"), (0u8, "Z")] { sim.modify(|io| { @@ -120,7 +118,7 @@ module Top ( }) .unwrap(); assert!( - sim.drain_runtime_events().is_empty(), + bare(sim.drain_runtime_events()).is_empty(), "known one plus {label} must pass", ); @@ -129,10 +127,8 @@ module Top ( }) .unwrap(); assert_eq!( - sim.drain_runtime_events(), - vec![celox::RuntimeEvent::AssertContinue { - message: b"bad condition".to_vec(), - }], + bare(sim.drain_runtime_events()), + vec![celox::RuntimeEvent::Report(celox::Report::new(celox::Severity::Error, b"bad condition".to_vec()))], "only {label} must fail", ); } @@ -153,3 +149,17 @@ module Top ( @case "four_state_expression_semantics::wide_unaligned_partial_store_and_slice_preserve_four_state_bits"; } } + +/// The drained events without the time, scope, location and assertion of +/// their reports, which these tests do not check. +fn bare(events: Vec) -> Vec { + events + .into_iter() + .map(|event| match event { + celox::RuntimeEvent::Report(report) => { + celox::RuntimeEvent::Report(celox::Report::new(report.severity, report.message)) + } + event => event, + }) + .collect() +} diff --git a/crates/celox/tests/frontends/systemverilog/floating_point.rs b/crates/celox/tests/frontends/systemverilog/floating_point.rs index fcc1265bd03..7c8ffdbc195 100644 --- a/crates/celox/tests/frontends/systemverilog/floating_point.rs +++ b/crates/celox/tests/frontends/systemverilog/floating_point.rs @@ -41,14 +41,28 @@ sv_backends! { endmodule "#; } @build Simulator::from_sv_sources(vec![(source, Path::new("real_comb_display.sv"))], "Top").four_state(true); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); let enabled = sim.signal("enabled"); let bits = sim.signal("bits"); sim.modify(|io| { io.set(bits, 0x3ff8000000000000u64); io.set(enabled, 1u8); }).unwrap(); assert_eq!(sim.get(sim.signal("x")), BigUint::from(0x3ff8000000000000u64)); - let events = sim.drain_runtime_events(); + let events = bare(sim.drain_runtime_events()); assert_eq!(events.len(), 2, "{events:?}"); assert!(events.contains(&celox::RuntimeEvent::Display { message: b"comb=1.50 expression=3.0".to_vec() }), "{events:?}"); - assert!(events.contains(&celox::RuntimeEvent::AssertContinue { message: b"assert=1.50".to_vec() }), "{events:?}"); + assert!(events.contains(&celox::RuntimeEvent::Report(celox::Report::new(celox::Severity::Error, b"assert=1.50".to_vec()))), "{events:?}"); } } + +/// The drained events without the time, scope, location and assertion of +/// their reports, which these tests do not check. +fn bare(events: Vec) -> Vec { + events + .into_iter() + .map(|event| match event { + celox::RuntimeEvent::Report(report) => { + celox::RuntimeEvent::Report(celox::Report::new(report.severity, report.message)) + } + event => event, + }) + .collect() +} diff --git a/crates/celox/tests/frontends/systemverilog/suite.rs b/crates/celox/tests/frontends/systemverilog/suite.rs index f10ac99fc15..dacbd92e6f5 100644 --- a/crates/celox/tests/frontends/systemverilog/suite.rs +++ b/crates/celox/tests/frontends/systemverilog/suite.rs @@ -48,14 +48,13 @@ impl TimedBackend { fn capture_events(&mut self) -> Result<()> { let events = self.sim.drain_runtime_events(); let error = events.iter().find_map(|event| match event { - RuntimeEvent::AssertFatal { message } => Some(format!( - "fatal assertion: {}", - String::from_utf8_lossy(message) - )), - RuntimeEvent::AssertContinue { message } => Some(format!( - "failed assertion: {}", - String::from_utf8_lossy(message) - )), + RuntimeEvent::Report(report) if report.severity >= celox::Severity::Error => { + Some(format!( + "{:?}: {}", + report.severity, + String::from_utf8_lossy(&report.message) + )) + } RuntimeEvent::Missed { count } => Some(format!("{count} runtime events were missed")), _ => None, }); diff --git a/crates/celox/tests/frontends/systemverilog/system_functions.rs b/crates/celox/tests/frontends/systemverilog/system_functions.rs index e8d26fe9cd3..28c62e18b39 100644 --- a/crates/celox/tests/frontends/systemverilog/system_functions.rs +++ b/crates/celox/tests/frontends/systemverilog/system_functions.rs @@ -22,7 +22,7 @@ fn veryl_assert_unknown_conditions_are_eager_on_interpreter() { .four_state(true) .build_interpreter() .unwrap(); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); let enabled = sim.signal("enabled"); let condition = sim.signal("condition"); sim.modify(|io| { @@ -34,7 +34,7 @@ fn veryl_assert_unknown_conditions_are_eager_on_interpreter() { sim.tick(sim.event("clk")).unwrap(); } assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"inside".to_vec() },] @@ -47,14 +47,15 @@ fn veryl_assert_unknown_conditions_are_eager_on_interpreter() { sim.tick(sim.event("clk")).unwrap(); } assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"inside".to_vec() }, - celox::RuntimeEvent::AssertContinue { - message: b"value=7".to_vec() - }, + celox::RuntimeEvent::Report(celox::Report::new( + celox::Severity::Error, + b"value=7".to_vec() + )), ] ); } @@ -84,7 +85,7 @@ fn urandom_comb_runs_next_to_an_initial_process_on_interpreter_and_tiered() { sim.modify(|io| io.set(seed, 17u8)).unwrap(); assert_eq!(sim.get(value), sim.get(sim.signal("reference"))); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"initial".to_vec() }] @@ -163,7 +164,7 @@ sv_backends! { sim.restore(&saved).unwrap(); sim.eval_comb().unwrap(); assert_eq!(sim.get(value), first); - assert!(sim.drain_runtime_events().is_empty()); + assert!(bare(sim.drain_runtime_events()).is_empty()); } fn scope_randomize_fills_arbitrary_packed_widths(sim) { @@ -325,7 +326,7 @@ sv_backends! { assert_eq!(sim.get(value), second); sim.modify(|io| io.set(dead_input, 1u8)).unwrap(); assert_ne!(sim.get(value), second); - assert!(sim.drain_runtime_events().is_empty()); + assert!(bare(sim.drain_runtime_events()).is_empty()); } fn urandom_comb_propagates_all_outputs_and_hierarchical_events(sim) { @@ -349,24 +350,24 @@ sv_backends! { endmodule "#; } @build Simulator::from_sv_sources(vec![(source, Path::new("random_events.sv"))], "Top").four_state(true); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); let enabled = sim.signal("enabled"); let data = sim.signal("data"); sim.modify(|io| { io.set(enabled, 1u8); io.set(data, 7u8); }).unwrap(); let first = sim.get(sim.signal("q")); - let messages = sim.drain_runtime_events(); + let messages = bare(sim.drain_runtime_events()); assert_eq!(messages.len(), 2, "{messages:?}"); assert!(messages.contains(&celox::RuntimeEvent::Display { message: b"inside=8".to_vec() })); sim.modify(|io| io.set(data, 8u8)).unwrap(); assert_ne!(sim.get(sim.signal("q")), first); - let messages = sim.drain_runtime_events(); + let messages = bare(sim.drain_runtime_events()); assert_eq!(messages.len(), 2, "{messages:?}"); assert!(messages.contains(&celox::RuntimeEvent::Display { message: b"inside=9".to_vec() })); sim.set(sim.signal("unrelated"), 1u8); sim.eval_comb().unwrap(); - assert!(sim.drain_runtime_events().is_empty()); + assert!(bare(sim.drain_runtime_events()).is_empty()); sim.tick(sim.event("clk")).unwrap(); - assert_eq!(sim.drain_runtime_events(), vec![celox::RuntimeEvent::Display { message: b"clock".to_vec() }]); + assert_eq!(bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"clock".to_vec() }]); } fn urandom_comb_notifies_only_observed_bits(sim) { @@ -402,27 +403,27 @@ sv_backends! { let high = sim.signal("high"); let index = sim.signal("index"); sim.modify(|io| { io.set(low, 0u8); io.set(high, 0u8); io.set(index, 4u8); }).unwrap(); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(high, 1u8)).unwrap(); - let events = sim.drain_runtime_events(); + let events = bare(sim.drain_runtime_events()); let array_value = sim.get(sim.signal("q_array")); assert!(events.is_empty(), "{events:?}; array={array_value:?}"); assert_eq!(array_value, 2u8.into()); sim.modify(|io| io.set(low, 1u8)).unwrap(); - let mut messages: Vec<_> = sim.drain_runtime_events().into_iter().map(|event| match event { + let mut messages: Vec<_> = bare(sim.drain_runtime_events()).into_iter().map(|event| match event { celox::RuntimeEvent::Display { message } => message, event => panic!("unexpected event: {event:?}"), }).collect(); messages.sort(); assert_eq!(messages, vec![b"array=1".to_vec(), b"dynamic=1".to_vec(), b"static=1".to_vec()]); sim.modify(|io| io.set_four_state(high, 1u8.into(), 64u8.into())).unwrap(); - let events = sim.drain_runtime_events(); + let events = bare(sim.drain_runtime_events()); assert!(events.is_empty(), "{events:?}"); sim.modify(|io| { io.set(high, 0u8); io.set(index, 5u8); }).unwrap(); - let events = sim.drain_runtime_events(); + let events = bare(sim.drain_runtime_events()); assert!(events.is_empty(), "{events:?}"); sim.modify(|io| io.set(index, 0u8)).unwrap(); - let mut messages: Vec<_> = sim.drain_runtime_events().into_iter().map(|event| match event { + let mut messages: Vec<_> = bare(sim.drain_runtime_events()).into_iter().map(|event| match event { celox::RuntimeEvent::Display { message } => message, event => panic!("unexpected event: {event:?}"), }).collect(); @@ -546,23 +547,23 @@ sv_backends! { sim.set(enabled, 0u8); sim.set(ok, 0u8); sim.tick(clk).unwrap(); - assert!(sim.drain_runtime_events().is_empty()); + assert!(bare(sim.drain_runtime_events()).is_empty()); assert_eq!(sim.get(sim.signal("reached")), 0u8.into()); sim.set(enabled, 1u8); sim.set(ok, 1u8); sim.tick(clk).unwrap(); assert_eq!(sim.get(sim.signal("effect")), 0u8.into()); assert_eq!(sim.get(sim.signal("reached")), 1u8.into()); - assert_eq!(sim.drain_runtime_events(), vec![ + assert_eq!(bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"inside=1".to_vec() }, ]); sim.set(ok, 0u8); sim.tick(clk).unwrap(); assert_eq!(sim.get(sim.signal("effect")), 1u8.into()); assert_eq!(sim.get(sim.signal("reached")), 1u8.into()); - assert_eq!(sim.drain_runtime_events(), vec![ + assert_eq!(bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"inside=0".to_vec() }, - celox::RuntimeEvent::AssertContinue { message: b"before=0 value=-2 after=1".to_vec() }, + celox::RuntimeEvent::Report(celox::Report::new(celox::Severity::Error, b"before=0 value=-2 after=1".to_vec())), ]); } @@ -584,23 +585,23 @@ sv_backends! { "#; } @build Simulator::from_sv_sources(vec![(source, Path::new("veryl_assert_comb.sv"))], "Top") .four_state(true); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); let enabled = sim.signal("enabled"); let ok = sim.signal("ok"); sim.modify(|io| { io.set(enabled, 1u8); io.set(ok, 1u8); }).unwrap(); assert_eq!(sim.get(sim.signal("effect")), 0u8.into()); - assert_eq!(sim.drain_runtime_events(), vec![ + assert_eq!(bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"inside=1".to_vec() }, ]); sim.modify(|io| io.set(ok, 0u8)).unwrap(); assert_eq!(sim.get(sim.signal("effect")), 1u8.into()); - assert_eq!(sim.drain_runtime_events(), vec![ + assert_eq!(bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"inside=0".to_vec() }, - celox::RuntimeEvent::AssertContinue { message: b"before=0 value=-2 after=1".to_vec() }, + celox::RuntimeEvent::Report(celox::Report::new(celox::Severity::Error, b"before=0 value=-2 after=1".to_vec())), ]); sim.modify(|io| io.set(enabled, 0u8)).unwrap(); assert_eq!(sim.get(sim.signal("effect")), 0u8.into()); - assert!(sim.drain_runtime_events().is_empty()); + assert!(bare(sim.drain_runtime_events()).is_empty()); } fn veryl_assert_fatal_ff_evaluates_messages_and_stops_only_on_failure(sim) { @@ -623,14 +624,14 @@ sv_backends! { sim.set(ok, 1u8); sim.tick(clk).unwrap(); assert_eq!(sim.get(sim.signal("reached")), 1u8.into()); - assert_eq!(sim.drain_runtime_events(), vec![ + assert_eq!(bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"inside".to_vec() }, ]); sim.set(ok, 0u8); assert!(sim.tick(clk).is_err()); - assert_eq!(sim.drain_runtime_events(), vec![ + assert_eq!(bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"inside".to_vec() }, - celox::RuntimeEvent::AssertFatal { message: b"value=-2".to_vec() }, + celox::RuntimeEvent::Report(celox::Report::new(celox::Severity::Fatal, b"value=-2".to_vec())), ]); } @@ -651,21 +652,21 @@ sv_backends! { endmodule "#; } @build Simulator::from_sv_sources(vec![(source, Path::new("veryl_assert_loop.sv"))], "Top"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); let ok = sim.signal("ok"); let count = sim.signal("count"); sim.modify(|io| { io.set(ok, 1u8); io.set(count, 2u8); }).unwrap(); assert_eq!(sim.get(sim.signal("q")), 2u32.into()); - assert_eq!(sim.drain_runtime_events(), vec![ + assert_eq!(bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"inside=0".to_vec() }, celox::RuntimeEvent::Display { message: b"inside=1".to_vec() }, ]); sim.modify(|io| io.set(ok, 0u8)).unwrap(); - assert_eq!(sim.drain_runtime_events(), vec![ + assert_eq!(bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"inside=0".to_vec() }, - celox::RuntimeEvent::AssertContinue { message: b"value=1".to_vec() }, + celox::RuntimeEvent::Report(celox::Report::new(celox::Severity::Error, b"value=1".to_vec())), celox::RuntimeEvent::Display { message: b"inside=1".to_vec() }, - celox::RuntimeEvent::AssertContinue { message: b"value=2".to_vec() }, + celox::RuntimeEvent::Report(celox::Report::new(celox::Severity::Error, b"value=2".to_vec())), ]); } @@ -686,11 +687,11 @@ sv_backends! { "#; } @build Simulator::from_sv_sources(vec![(source, Path::new("veryl_assert_constant.sv"))], "Top"); sim.tick(sim.event("clk")).unwrap(); - assert_eq!(sim.drain_runtime_events(), vec![ + assert_eq!(bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"inside".to_vec() }, celox::RuntimeEvent::Display { message: b"inside".to_vec() }, - celox::RuntimeEvent::AssertContinue { message: b"assertion failed".to_vec() }, - celox::RuntimeEvent::AssertContinue { message: b"assertion failed".to_vec() }, + celox::RuntimeEvent::Report(celox::Report::new(celox::Severity::Error, b"assertion failed".to_vec())), + celox::RuntimeEvent::Report(celox::Report::new(celox::Severity::Error, b"assertion failed".to_vec())), ]); } @@ -758,7 +759,7 @@ sv_backends! { @build Simulator::from_sv_sources(vec![(source, Path::new("printtimescale.sv"))], "Top"); sim.set(sim.signal("enabled"), 1u8); sim.tick(sim.event("clk")).unwrap(); - let mut messages = sim.drain_runtime_events().into_iter().map(|event| match event { + let mut messages = bare(sim.drain_runtime_events()).into_iter().map(|event| match event { celox::RuntimeEvent::Display { message } => String::from_utf8(message).unwrap(), event => panic!("unexpected event: {event:?}"), }).collect::>(); @@ -793,7 +794,7 @@ sv_backends! { sim.set(sim.signal("data"), 7u32); sim.tick(sim.event("clk")).unwrap(); assert_eq!(sim.get(sim.signal("q")), 7u32.into()); - assert_eq!(sim.drain_runtime_events(), vec![ + assert_eq!(bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"Time scale of (Top.info) is 100ns / 10ps".to_vec() }, celox::RuntimeEvent::Display { message: b"Time scale of (Top.child.nested) is 100ns / 10ps".to_vec() }, celox::RuntimeEvent::Display { message: b"Time scale of (Top.info) is 100ns / 10ps".to_vec() }, @@ -824,7 +825,7 @@ sv_backends! { sim.tick(sim.event("clk")).unwrap(); assert_eq!(sim.get(sim.signal("i_q")), 7u32.into()); assert_eq!(sim.get(sim.signal("j_q")), 7u32.into()); - let mut messages = sim.drain_runtime_events().into_iter().map(|event| match event { + let mut messages = bare(sim.drain_runtime_events()).into_iter().map(|event| match event { celox::RuntimeEvent::Display { message } => String::from_utf8(message).unwrap(), event => panic!("unexpected event: {event:?}"), }).collect::>(); @@ -979,7 +980,7 @@ sv_backends! { for (dimension, expected) in [(1u32, 2u32), (2, 7), (3, 0), (0x0800_0001, 0)] { sim.set(d, dimension); assert_eq!(sim.get(y), expected.into()); - assert_eq!(sim.drain_runtime_events(), vec![celox::RuntimeEvent::Display { + assert_eq!(bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"dimension".to_vec(), }]); } @@ -1111,13 +1112,13 @@ sv_backends! { @build Simulator::from_sv_sources(vec![(source, Path::new("fatal.sv"))], "Top"); let fail = sim.signal("fail"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.set(fail, 1u8); - assert_eq!(sim.drain_runtime_events(), vec![ + assert_eq!(bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"before".to_vec() }, - celox::RuntimeEvent::AssertFatal { message: b"boom 1".to_vec() }, + celox::RuntimeEvent::Report(celox::Report::new(celox::Severity::Fatal, b"boom 1".to_vec())), ]); - assert!(sim.drain_runtime_events().is_empty()); + assert!(bare(sim.drain_runtime_events()).is_empty()); } fn display_field_flags(sim) { @case "system_functions::display_field_flags"; } @@ -1270,8 +1271,7 @@ fn printtimescale_in_interface_array_functions_keeps_each_instance_scope() { "interface I; function automatic int show(); $printtimescale; return 0; endfunction initial $display(\"%0d\", show()); endinterface module Top(output logic y); I info[2](); assign y=0; endmodule", ); sim.step().unwrap(); - let mut messages = sim - .drain_runtime_events() + let mut messages = bare(sim.drain_runtime_events()) .into_iter() .map(|event| match event { celox::RuntimeEvent::Display { message } => String::from_utf8(message).unwrap(), @@ -1305,7 +1305,7 @@ fn printtimescale_runs_in_initial_blocks_with_all_time_magnitudes() { let mut sim = initial_simulation(&source); sim.step().unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: format!("Time scale of (Top) is {expected}").into_bytes() }] @@ -1329,8 +1329,7 @@ fn printtimescale_initial_instances_and_interface_arrays_keep_their_names() { "#; let mut sim = initial_simulation(source); sim.step().unwrap(); - let mut messages = sim - .drain_runtime_events() + let mut messages = bare(sim.drain_runtime_events()) .into_iter() .map(|event| match event { celox::RuntimeEvent::Display { message } => String::from_utf8(message).unwrap(), @@ -1364,8 +1363,7 @@ fn printtimescale_interface_arrays_preserve_integer_boundary_indices() { ); let mut sim = initial_simulation(&source); sim.step().unwrap(); - let mut messages = sim - .drain_runtime_events() + let mut messages = bare(sim.drain_runtime_events()) .into_iter() .map(|event| match event { celox::RuntimeEvent::Display { message } => String::from_utf8(message).unwrap(), @@ -1456,7 +1454,7 @@ fn stop_suspends_the_simulation_until_it_continues() { assert_eq!(sim.get(count), expected.into()); assert_eq!(sim.get(other), 0u8.into()); assert_eq!(sim.get(sum), expected.into()); - assert_eq!(sim.drain_runtime_events(), Vec::new()); + assert_eq!(bare(sim.drain_runtime_events()), Vec::new()); // A suspended time step cannot be captured. assert!(matches!( sim.checkpoint(), @@ -1470,7 +1468,7 @@ fn stop_suspends_the_simulation_until_it_continues() { assert_eq!(sim.get(other), 5u8.into()); assert_eq!(sim.get(sum), 11u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"done 6 13".to_vec(), }], @@ -1540,7 +1538,7 @@ fn stop_keeps_the_edges_of_its_time_step() { assert_eq!(sim.step().unwrap(), Some(0)); assert!(!sim.is_stopped()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"q=0".to_vec(), }], @@ -1563,14 +1561,20 @@ fn stop_in_a_clocked_or_combinational_process_is_an_event() { let mut sim = Simulator::from_sv_sources(vec![(source, Path::new("stop.sv"))], "Top") .build_cranelift() .unwrap(); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.tick(sim.event("clk")).unwrap(); - assert_eq!(sim.drain_runtime_events(), Vec::new()); + assert_eq!(bare(sim.drain_runtime_events()), Vec::new()); let enabled = sim.signal("enabled"); sim.modify(|io| io.set(enabled, 1u8)).unwrap(); - assert_eq!(sim.drain_runtime_events(), vec![celox::RuntimeEvent::Stop]); + assert_eq!( + bare(sim.drain_runtime_events()), + vec![celox::RuntimeEvent::Stop] + ); sim.tick(sim.event("clk")).unwrap(); - assert_eq!(sim.drain_runtime_events(), vec![celox::RuntimeEvent::Stop]); + assert_eq!( + bare(sim.drain_runtime_events()), + vec![celox::RuntimeEvent::Stop] + ); } /// IEEE 1800-2023 24.7: `$exit` outside a program block is ignored. @@ -1596,7 +1600,7 @@ fn exit_outside_a_program_block_is_ignored() { assert!(!sim.is_finished()); assert!(!sim.is_stopped()); assert_eq!(sim.get(sim.signal("a")), 3u8.into()); - assert_eq!(sim.drain_runtime_events(), Vec::new()); + assert_eq!(bare(sim.drain_runtime_events()), Vec::new()); // Each call warns once, at its line. let warned: Vec<_> = sim .warnings() @@ -1968,10 +1972,10 @@ fn value_functions_called_as_statements_evaluate_their_operands_once() { .build_cranelift() .unwrap(); let a = sim.signal("a"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 5u8)).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"g 5".to_vec(), }], @@ -2004,11 +2008,11 @@ fn initial_blocks_run_their_system_tasks_at_time_zero() { let y = sim.signal("y"); // The block runs as a process at time zero, not before it. assert_eq!(sim.get(y), 0u8.into()); - assert_eq!(sim.drain_runtime_events(), Vec::new()); + assert_eq!(bare(sim.drain_runtime_events()), Vec::new()); assert_eq!(sim.step().unwrap(), Some(0)); assert_eq!(sim.get(y), 0x34u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"b=34".to_vec(), @@ -2019,9 +2023,7 @@ fn initial_blocks_run_their_system_tasks_at_time_zero() { celox::RuntimeEvent::Write { message: b"1,".to_vec(), }, - celox::RuntimeEvent::AssertContinue { - message: b"e4".to_vec(), - }, + celox::RuntimeEvent::Report(celox::Report::new(celox::Severity::Error, b"e4".to_vec())), ], ); assert!(!sim.is_finished()); @@ -2044,7 +2046,7 @@ fn finish_in_an_initial_block_ends_the_simulation() { sim.step().unwrap(); assert!(sim.is_finished()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"before".to_vec(), }], @@ -2067,14 +2069,15 @@ fn fatal_in_an_initial_block_fails_the_simulation() { let error = sim.step().unwrap_err(); assert!(error.to_string().contains("boom"), "{error}"); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"before".to_vec(), }, - celox::RuntimeEvent::AssertFatal { - message: b"boom 7".to_vec(), - }, + celox::RuntimeEvent::Report(celox::Report::new( + celox::Severity::Fatal, + b"boom 7".to_vec() + )), ], ); } @@ -2098,7 +2101,7 @@ fn initial_blocks_skip_the_operands_short_circuits_skip() { let mut sim = initial_simulation(source); sim.step().unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"1".to_vec(), }], @@ -2122,7 +2125,7 @@ fn initial_blocks_that_read_design_state_run_at_time_zero() { sim.step().unwrap(); // The initializer runs before the initial block. assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"value=1".to_vec(), @@ -2152,7 +2155,7 @@ fn nonblocking_assignments_in_initial_processes_update_after_the_display() { let y = sim.signal("y"); assert_eq!(sim.get(y), 1u8.into()); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"0".to_vec() }] @@ -2193,10 +2196,10 @@ fn countbits_called_as_a_statement_evaluates_all_arguments_once() { .build_cranelift() .unwrap(); let a = sim.signal("a"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); sim.modify(|io| io.set(a, 5u8)).unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"value 5".to_vec() @@ -2516,10 +2519,10 @@ fn urandom_comb_starts_after_initial_procedures() { endmodule "#; let mut sim = initial_simulation(source); - assert!(sim.drain_runtime_events().is_empty()); + assert!(bare(sim.drain_runtime_events()).is_empty()); sim.step().unwrap(); assert_eq!( - sim.drain_runtime_events(), + bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"initial".to_vec() @@ -2532,7 +2535,7 @@ fn urandom_comb_starts_after_initial_procedures() { let value = sim.get(sim.signal("value")); sim.eval_comb().unwrap(); assert_eq!(sim.get(sim.signal("value")), value); - assert!(sim.drain_runtime_events().is_empty()); + assert!(bare(sim.drain_runtime_events()).is_empty()); } #[test] @@ -2622,7 +2625,7 @@ fn rising_edge_at(sim: &mut celox::Simulation, time: u64) -> Vec Vec { @@ -2662,7 +2665,7 @@ fn time_counts_the_global_precision_in_the_unit_of_the_caller() { .unwrap(); let (a, y) = (sim.signal("a"), sim.signal("y")); sim.run_until(0).unwrap(); - assert_eq!(sim.drain_runtime_events(), displays(&["initial 0"])); + assert_eq!(bare(sim.drain_runtime_events()), displays(&["initial 0"])); // 1.499 ns rounds down, 149.9 x 10 ps up; 1.5 ns, a half, rounds up. // The package function counts the unit of its package. assert_eq!( @@ -2733,9 +2736,9 @@ fn delays_count_the_time_unit_of_their_scope() { .unwrap(); assert_eq!(sim.step().unwrap(), Some(0)); assert_eq!(sim.step().unwrap(), Some(30)); - assert_eq!(sim.drain_runtime_events(), displays(&["child 3"])); + assert_eq!(bare(sim.drain_runtime_events()), displays(&["child 3"])); assert_eq!(sim.step().unwrap(), Some(3_000)); - assert_eq!(sim.drain_runtime_events(), displays(&["top 3"])); + assert_eq!(bare(sim.drain_runtime_events()), displays(&["top 3"])); } #[test] @@ -2923,7 +2926,7 @@ fn state_files_keep_the_time_in_their_schedule() { untimed.load_state(&file).unwrap(); let clk = untimed.event("clk"); untimed.tick(clk).unwrap(); - assert_eq!(untimed.drain_runtime_events(), displays(&["0"])); + assert_eq!(bare(untimed.drain_runtime_events()), displays(&["0"])); // A Simulation continues at the saved time. let mut timed = build(); timed.load_state(&file).unwrap(); @@ -2963,7 +2966,7 @@ fn time_is_zero_in_a_simulator_without_time() { .unwrap(); let clk = sim.event("clk"); sim.tick(clk).unwrap(); - assert_eq!(sim.drain_runtime_events(), displays(&["0 0"])); + assert_eq!(bare(sim.drain_runtime_events()), displays(&["0 0"])); } #[test] @@ -3289,3 +3292,17 @@ sv_backends! { assert_eq!(sim.get(sim.signal("next")), 1196435762u32.into()); } } + +/// The drained events without the time, scope, location and assertion of +/// their reports, which these tests do not check. +fn bare(events: Vec) -> Vec { + events + .into_iter() + .map(|event| match event { + celox::RuntimeEvent::Report(report) => { + celox::RuntimeEvent::Report(celox::Report::new(report.severity, report.message)) + } + event => event, + }) + .collect() +} diff --git a/crates/celox/tests/frontends/systemverilog/tagged_unions.rs b/crates/celox/tests/frontends/systemverilog/tagged_unions.rs index 6092a2c1b48..057334c82c3 100644 --- a/crates/celox/tests/frontends/systemverilog/tagged_unions.rs +++ b/crates/celox/tests/frontends/systemverilog/tagged_unions.rs @@ -99,9 +99,18 @@ sv_backends! { @build Simulator::from_sv_sources(vec![(source, Path::new("tagged_read.sv"))], "Top").four_state(true); let clk = sim.event("clk"); assert!(sim.tick(clk).is_err()); - assert_eq!(sim.drain_runtime_events(), vec![celox::RuntimeEvent::AssertFatal { - message: b"tagged union member does not match the active tag".to_vec(), - }]); + let reports: Vec<_> = sim + .drain_runtime_events() + .into_iter() + .map(|event| match event { + celox::RuntimeEvent::Report(report) => (report.severity, report.message), + event => panic!("unexpected event {event:?}"), + }) + .collect(); + assert_eq!(reports, vec![( + celox::Severity::Fatal, + b"tagged union member does not match the active tag".to_vec(), + )]); } fn inactive_write_fails_on_clock(sim) { @setup { @@ -119,9 +128,18 @@ sv_backends! { @build Simulator::from_sv_sources(vec![(source, Path::new("tagged_write.sv"))], "Top").four_state(true); let clk = sim.event("clk"); assert!(sim.tick(clk).is_err()); - assert_eq!(sim.drain_runtime_events(), vec![celox::RuntimeEvent::AssertFatal { - message: b"tagged union member does not match the active tag".to_vec(), - }]); + let reports: Vec<_> = sim + .drain_runtime_events() + .into_iter() + .map(|event| match event { + celox::RuntimeEvent::Report(report) => (report.severity, report.message), + event => panic!("unexpected event {event:?}"), + }) + .collect(); + assert_eq!(reports, vec![( + celox::Severity::Fatal, + b"tagged union member does not match the active tag".to_vec(), + )]); } fn uninitialized_tag_fails_on_clock(sim) { @setup { @@ -135,9 +153,18 @@ sv_backends! { @build Simulator::from_sv_sources(vec![(source, Path::new("tagged_unknown.sv"))], "Top").four_state(true); let clk = sim.event("clk"); assert!(sim.tick(clk).is_err()); - assert_eq!(sim.drain_runtime_events(), vec![celox::RuntimeEvent::AssertFatal { - message: b"tagged union member does not match the active tag".to_vec(), - }]); + let reports: Vec<_> = sim + .drain_runtime_events() + .into_iter() + .map(|event| match event { + celox::RuntimeEvent::Report(report) => (report.severity, report.message), + event => panic!("unexpected event {event:?}"), + }) + .collect(); + assert_eq!(reports, vec![( + celox::Severity::Fatal, + b"tagged union member does not match the active tag".to_vec(), + )]); } } diff --git a/crates/celox/tests/runtime_api.rs b/crates/celox/tests/runtime_api.rs index e3dbe91de11..d88637e469c 100644 --- a/crates/celox/tests/runtime_api.rs +++ b/crates/celox/tests/runtime_api.rs @@ -1,4 +1,6 @@ -use celox::{AddrLookupError, BigUint, RuntimeErrorCode, RuntimeEvent, Simulator}; +use celox::{ + AddrLookupError, BigUint, Report, RuntimeErrorCode, RuntimeEvent, Severity, Simulator, +}; #[path = "test_utils/mod.rs"] #[macro_use] @@ -12,8 +14,8 @@ all_backends! { module Top { always_comb { $assert(1'd0, "site zero"); } } "#, "Top"); assert!(matches!(sim.eval_comb(), Err(RuntimeErrorCode::Runtime { message, .. }) if message == "site zero")); - assert_eq!(sim.drain_runtime_events(), vec![RuntimeEvent::AssertFatal { message: b"site zero".to_vec() }]); - assert!(sim.drain_runtime_events().is_empty()); + assert_eq!(bare(sim.drain_runtime_events()), vec![RuntimeEvent::Report(Report::new(Severity::Fatal, b"site zero".to_vec()))]); + assert!(bare(sim.drain_runtime_events()).is_empty()); } fn drain_returns_fatal_after_two_display_sites(sim) { @@ -29,12 +31,12 @@ module Top { } "#, "Top"); assert!(matches!(sim.eval_comb(), Err(RuntimeErrorCode::Runtime { message, .. }) if message == "site two")); - assert_eq!(sim.drain_runtime_events(), vec![ + assert_eq!(bare(sim.drain_runtime_events()), vec![ RuntimeEvent::Display { message: b"first".to_vec() }, RuntimeEvent::Display { message: b"second".to_vec() }, - RuntimeEvent::AssertFatal { message: b"site two".to_vec() }, + RuntimeEvent::Report(Report::new(Severity::Fatal, b"site two".to_vec())), ]); - assert!(sim.drain_runtime_events().is_empty()); + assert!(bare(sim.drain_runtime_events()).is_empty()); } fn drain_handle_keeps_fatal_records_from_all_input_mutations(sim) { @@ -49,23 +51,23 @@ module Top (a: input logic<8>, w: input logic<128>) { let a = sim.signal("a"); let w = sim.signal("w"); sim.modify(|io| { io.set(a, 0u8); io.set(w, 0u8); }).unwrap(); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); let mut drain = sim.runtime_event_drain().expect("drain handle"); - let fatal = vec![RuntimeEvent::AssertFatal { message: b"input fatal".to_vec() }]; + let fatal = vec![RuntimeEvent::Report(Report::new(Severity::Fatal, b"input fatal".to_vec()))]; sim.set(a, 1u8); - assert_eq!(drain.drain(), fatal); - assert!(drain.drain().is_empty()); + assert_eq!(bare(drain.drain()), fatal); + assert!(bare(drain.drain()).is_empty()); sim.set(a, 0u8); sim.set_wide(w, BigUint::from(1u8)); - assert_eq!(drain.drain(), fatal); + assert_eq!(bare(drain.drain()), fatal); sim.set_wide(w, BigUint::from(0u8)); sim.set_four_state(a, BigUint::from(1u8), BigUint::from(0u8)); - assert_eq!(drain.drain(), fatal); + assert_eq!(bare(drain.drain()), fatal); sim.set(a, 0u8); sim.modify(|io| io.set(a, 1u8)).unwrap(); - assert_eq!(drain.drain(), fatal); - assert!(drain.drain().is_empty()); + assert_eq!(bare(drain.drain()), fatal); + assert!(bare(drain.drain()).is_empty()); } fn drain_handle_keeps_fatal_record_after_checkpoint_restore(sim) { @@ -78,16 +80,16 @@ module Top (a: input logic<8>) { "#, "Top"); let a = sim.signal("a"); sim.modify(|io| io.set(a, 0u8)).unwrap(); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); // Save the failing input before lazy evaluation captures its assertion. sim.set(a, 1u8); let checkpoint = sim.checkpoint().unwrap(); sim.set(a, 0u8); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); let mut drain = sim.runtime_event_drain().expect("drain handle"); sim.restore(&checkpoint).unwrap(); - assert_eq!(drain.drain(), vec![RuntimeEvent::AssertFatal { message: b"restored fatal".to_vec() }]); - assert!(drain.drain().is_empty()); + assert_eq!(bare(drain.drain()), vec![RuntimeEvent::Report(Report::new(Severity::Fatal, b"restored fatal".to_vec()))]); + assert!(bare(drain.drain()).is_empty()); } fn try_event_rejects_signals_without_events(sim) { @@ -132,11 +134,11 @@ module Top { } "#, "Top"); - assert_eq!(sim.drain_runtime_events(), vec![ + assert_eq!(bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"before".to_vec() }, - celox::RuntimeEvent::AssertFatal { message: b"initial fatal".to_vec() }, + celox::RuntimeEvent::Report(celox::Report::new(celox::Severity::Fatal, b"initial fatal".to_vec())), ]); - assert!(sim.drain_runtime_events().is_empty()); + assert!(bare(sim.drain_runtime_events()).is_empty()); } fn drain_runtime_events_with_context_returns_comb_fatal_after_modify(sim) { @@ -151,17 +153,31 @@ module Top (a: input logic<8>, y: output logic<8>) { } "#, "Top"); - sim.drain_runtime_events(); + bare(sim.drain_runtime_events()); let a = sim.signal("a"); sim.modify(|io| io.set(a, 1u8)).unwrap(); - assert_eq!(sim.drain_runtime_events_with_context(celox::RuntimeFormatContext { + assert_eq!(bare(sim.drain_runtime_events_with_context(celox::RuntimeFormatContext { scope: Some("host.Top"), ..Default::default() - }), vec![celox::RuntimeEvent::AssertFatal { message: b"fatal host.Top".to_vec() }]); - assert!(sim.drain_runtime_events().is_empty()); + })), vec![celox::RuntimeEvent::Report(celox::Report::new(celox::Severity::Fatal, b"fatal host.Top".to_vec()))]); + assert!(bare(sim.drain_runtime_events()).is_empty()); sim.modify(|io| io.set(a, 2u8)).unwrap(); - assert_eq!(sim.drain_runtime_events(), vec![ + assert_eq!(bare(sim.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"after".to_vec() }, ]); } } + +/// The drained events without the time, scope, location and assertion of +/// their reports, which these tests do not check. +fn bare(events: Vec) -> Vec { + events + .into_iter() + .map(|event| match event { + celox::RuntimeEvent::Report(report) => { + celox::RuntimeEvent::Report(celox::Report::new(report.severity, report.message)) + } + event => event, + }) + .collect() +} diff --git a/crates/celox/tests/shared_jit_cache.rs b/crates/celox/tests/shared_jit_cache.rs index fdbee866475..33b47f0c5e0 100644 --- a/crates/celox/tests/shared_jit_cache.rs +++ b/crates/celox/tests/shared_jit_cache.rs @@ -346,7 +346,7 @@ fn precompiled_runtime_preserves_comb_runtime_events() { let mut runtime = trusted_instance(image); assert_eq!( - runtime.drain_runtime_events(), + bare(runtime.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"y=1".to_vec(), }] @@ -356,7 +356,7 @@ fn precompiled_runtime_preserves_comb_runtime_events() { runtime.backend_mut().set(input, 6u8); runtime.settle_active_edges(&[]).unwrap(); assert_eq!( - runtime.drain_runtime_events(), + bare(runtime.drain_runtime_events()), vec![celox::RuntimeEvent::Display { message: b"y=7".to_vec(), }] @@ -424,10 +424,12 @@ fn precompiled_runtime_formats_events_with_the_host_time() { let mut runtime = trusted_instance(image); assert_eq!( - runtime.drain_runtime_events_with_context(celox::RuntimeFormatContext { - tb_time: Some(37), - scope: None, - }), + bare( + runtime.drain_runtime_events_with_context(celox::RuntimeFormatContext { + tb_time: Some(37), + scope: None, + }) + ), vec![celox::RuntimeEvent::Display { message: b"time=37".to_vec(), }] @@ -483,12 +485,12 @@ fn forced_comb_runtime_events_preserve_procedural_order() { drop(sim); let mut runtime = trusted_instance(image); - runtime.drain_runtime_events(); + bare(runtime.drain_runtime_events()); let input = runtime.reflection().signal_by_name("Top.a").unwrap().0; assert!(runtime.force_signal(input, 7u8.into(), 0u8.into())); runtime.eval_comb().unwrap(); assert_eq!( - runtime.drain_runtime_events(), + bare(runtime.drain_runtime_events()), vec![ celox::RuntimeEvent::Display { message: b"before=0".to_vec(), @@ -558,7 +560,7 @@ fn precompiled_runtime_distinguishes_write_from_display() { let mut runtime = trusted_instance(image); assert_eq!( - runtime.drain_runtime_events(), + bare(runtime.drain_runtime_events()), vec![ celox::RuntimeEvent::Write { message: b"a".to_vec(), @@ -588,16 +590,17 @@ fn precompiled_runtime_reports_fatal_assertions() { drop(sim); let mut runtime = trusted_instance(image); - runtime.drain_runtime_events(); + bare(runtime.drain_runtime_events()); let input = runtime.signal_ref("Top.a").unwrap(); runtime.backend_mut().set(input, 1u8); let error = runtime.settle_active_edges(&[]).unwrap_err(); assert!(error.to_string().contains("fatal a=1")); assert_eq!( - runtime.drain_runtime_events(), - vec![celox::RuntimeEvent::AssertFatal { - message: b"fatal a=1".to_vec(), - }] + bare(runtime.drain_runtime_events()), + vec![celox::RuntimeEvent::Report(celox::Report::new( + celox::Severity::Fatal, + b"fatal a=1".to_vec() + ))] ); } @@ -619,7 +622,7 @@ fn precompiled_runtime_reports_sequential_fatal_assertions() { drop(sim); let mut runtime = trusted_instance(image); - runtime.drain_runtime_events(); + bare(runtime.drain_runtime_events()); let clock = runtime.signal("Top.clk").unwrap().clone(); runtime.backend_mut().set(clock.signal, 1u8); let error = runtime @@ -627,10 +630,11 @@ fn precompiled_runtime_reports_sequential_fatal_assertions() { .unwrap_err(); assert!(error.to_string().contains("ff fatal")); assert_eq!( - runtime.drain_runtime_events(), - vec![celox::RuntimeEvent::AssertFatal { - message: b"ff fatal".to_vec(), - }] + bare(runtime.drain_runtime_events()), + vec![celox::RuntimeEvent::Report(celox::Report::new( + celox::Severity::Fatal, + b"ff fatal".to_vec() + ))] ); } @@ -1041,3 +1045,17 @@ fn shared_code_concurrent_stress() { t.join().unwrap(); } } + +/// The drained events without the time, scope, location and assertion of +/// their reports, which these tests do not check. +fn bare(events: Vec) -> Vec { + events + .into_iter() + .map(|event| match event { + celox::RuntimeEvent::Report(report) => { + celox::RuntimeEvent::Report(celox::Report::new(report.severity, report.message)) + } + event => event, + }) + .collect() +} diff --git a/crates/celox/tests/sv_reports.rs b/crates/celox/tests/sv_reports.rs new file mode 100644 index 00000000000..d03a96c5735 --- /dev/null +++ b/crates/celox/tests/sv_reports.rs @@ -0,0 +1,193 @@ +#![cfg(feature = "systemverilog")] +//! Severity tasks report their severity, the file and line of the call and +//! the scope that issued them (IEEE 1800-2023 20.10). A report in an action +//! block of an assertion names that assertion (16.3). +use celox::{ + AssertionDeferral, AssertionDirective, AssertionOutcome, AssertionSite, Report, ReportLocation, + Severity, +}; +use std::path::Path; + +/// A report of `reports.sv` without a time. +fn report( + severity: Severity, + message: &str, + line: usize, + assertion: Option<(Option<&str>, AssertionDirective, AssertionOutcome)>, +) -> Report { + Report { + severity, + message: message.as_bytes().to_vec(), + time: None, + scope: Some("Top".to_owned()), + location: Some(ReportLocation { + file: "reports.sv".to_owned(), + line, + }), + assertion: assertion.map(|(label, directive, outcome)| AssertionSite { + label: label.map(str::to_owned), + directive, + deferral: AssertionDeferral::None, + outcome, + }), + } +} + +macro_rules! reports { + ($module:ident, $backend:ident) => { + mod $module { + use super::*; + + /// The reports of `body` in `module Top` until time 1. + fn reports(body: &str) -> Vec { + let source = format!("`timescale 1ns/1ns\nmodule Top;\n{body}\nendmodule"); + let mut sim = celox::Simulation::from_sv_sources( + vec![(source.as_str(), Path::new("reports.sv"))], + "Top", + ) + .$backend() + .unwrap(); + sim.run_until(1).unwrap(); + sim.drain_runtime_events() + .into_iter() + .filter_map(|event| match event { + celox::RuntimeEvent::Report(report) => Some(report), + _ => None, + }) + .collect() + } + + #[test] + fn severity_tasks_report_their_severity_location_and_scope() { + assert_eq!( + reports( + " initial begin\n \ + #1;\n \ + $info(\"i %0d\", 1);\n \ + $warning(\"w\");\n \ + $error(\"e\");\n \ + end" + ), + vec![ + report(Severity::Info, "i 1", 5, None), + report(Severity::Warning, "w", 6, None), + report(Severity::Error, "e", 7, None), + ] + ); + } + + #[test] + fn action_blocks_report_their_assertion() { + use AssertionDirective::{Assert, Assume, Cover}; + use AssertionOutcome::{Fail, Pass}; + assert_eq!( + reports( + " bit a;\n \ + initial begin\n \ + #1;\n \ + a1: assert (a) else $warning(\"a low\");\n \ + a2: assert (a);\n \ + c1: cover (!a) $info(\"covered\");\n \ + assume (!a) $info(\"assumed\");\n \ + end" + ), + vec![ + report( + Severity::Warning, + "a low", + 6, + Some((Some("a1"), Assert, Fail)) + ), + report( + Severity::Error, + "assert failed", + 7, + Some((Some("a2"), Assert, Fail)) + ), + report( + Severity::Info, + "covered", + 8, + Some((Some("c1"), Cover, Pass)) + ), + report(Severity::Info, "assumed", 9, Some((None, Assume, Pass))), + ] + ); + } + + /// A report of an assertion in the action block of another + /// names the inner one. + #[test] + fn nested_assertions_keep_their_attribution() { + use AssertionDirective::Assert; + use AssertionOutcome::Fail; + assert_eq!( + reports( + " bit a;\n \ + initial begin\n \ + #1;\n \ + outer: assert (1) begin\n \ + inner: assert (a);\n \ + end\n \ + end" + ), + vec![report( + Severity::Error, + "assert failed", + 7, + Some((Some("inner"), Assert, Fail)) + )] + ); + } + + #[test] + fn always_comb_reports_keep_their_location() { + assert_eq!( + reports(" bit a;\n always_comb if (!a) $warning(\"low\");"), + vec![report(Severity::Warning, "low", 4, None)] + ); + } + + #[test] + fn line_directives_set_the_reported_location() { + let reports = reports("`line 40 \"other.sv\" 0\n initial $info(\"moved\");"); + assert_eq!( + reports[0].location, + Some(ReportLocation { + file: "other.sv".to_owned(), + line: 40, + }) + ); + } + } + }; +} + +reports!(interpreter, build_interpreter); +reports!(cranelift, build); +#[cfg(target_arch = "x86_64")] +reports!(native, build_native); +reports!(wasm, build_wasm); + +#[test] +fn reports_render_their_location_time_and_scope() { + let mut report = report( + Severity::Warning, + "a low", + 6, + Some(( + Some("a1"), + AssertionDirective::Assert, + AssertionOutcome::Fail, + )), + ); + report.time = Some(10); + assert_eq!( + String::from_utf8(report.render()).unwrap(), + "Warning: reports.sv:6: a low\n Time: 10 Scope: Top.a1" + ); + assert_eq!( + String::from_utf8(Report::new(Severity::Info, b"bare".to_vec()).render()).unwrap(), + "Info: bare" + ); +} diff --git a/crates/celox/tests/sv_update_events.rs b/crates/celox/tests/sv_update_events.rs index ff14803b6bd..c55243ad908 100644 --- a/crates/celox/tests/sv_update_events.rs +++ b/crates/celox/tests/sv_update_events.rs @@ -51,7 +51,7 @@ macro_rules! update_events { sim.run_until(time).unwrap(); sim.drain_runtime_events() .into_iter() - .filter(|event| matches!(event, celox::RuntimeEvent::AssertContinue { .. })) + .filter(|event| matches!(event, celox::RuntimeEvent::Report(_))) .count() } diff --git a/docs/guide/systemverilog-reference.md b/docs/guide/systemverilog-reference.md index 4e45062ed5c..f441828deee 100644 --- a/docs/guide/systemverilog-reference.md +++ b/docs/guide/systemverilog-reference.md @@ -553,6 +553,21 @@ Immediate cover executes its pass statement when the condition is true. Coverage counters and reports are not exposed. Deferred cover (`#0` / `final`) is rejected because its scheduling is not modeled. +### Severity tasks and reports + +`$info`, `$warning`, `$error` and `$fatal`, including the default `$error` of +an `assert` or `assume` without a fail action, are reported as +`RuntimeEvent::Report` (IEEE 1800-2023 20.10). A `Report` carries its +severity, its message, the file and line of the call as `` `__FILE__ `` and +`` `__LINE__ `` give them, and the scope that issued it. A report from an +action block of an immediate assertion also names that assertion: its +statement label, `assert`, `assume` or `cover`, and whether the pass or the +fail action issued it. Severity tasks in subroutines the action block calls +are not attributed. `time` is the time the drain's context gives, as the VPI +host does at each callback. `Report::render` formats a report as the VPI host +and the `celox` command print it. Only `$error` and `$fatal` fail a `celox` +run; `$fatal` also ends the simulation with an error. + ### Constant functions Constant functions ignore the display and severity tasks they call. diff --git a/docs/guide/writing-tests.md b/docs/guide/writing-tests.md index d82a68852e3..141bb6de910 100644 --- a/docs/guide/writing-tests.md +++ b/docs/guide/writing-tests.md @@ -299,7 +299,7 @@ const sim = Simulator.fromSource(SOURCE, "Adder", { ### HDL output bytes -Rust runtime events (`RuntimeEvent::{Display, Write, AssertContinue, AssertFatal}`) +Rust runtime events (`RuntimeEvent::{Display, Write}` and the `message` of `RuntimeEvent::Report`) and detailed testbench assertion messages return `Vec`. JavaScript `runTest`, `runTestFromProject`, and `runTestWithFrontendArtifact` return assertion messages as `Uint8Array`. `%s` and `%c` may contain non-UTF-8 bytes or diff --git a/docs/ja/guide/systemverilog-reference.md b/docs/ja/guide/systemverilog-reference.md index 29a9a0e11d3..f68584a0e39 100644 --- a/docs/ja/guide/systemverilog-reference.md +++ b/docs/ja/guide/systemverilog-reference.md @@ -380,6 +380,18 @@ static な output 引数も、代入しない経路では以前の値を保持 文として呼び出したシステム関数(`$countones(f(a));` など)は、式の中の同じ呼び出しと 同様に検査・評価し、値を捨てます。`$bits` と `$size` は被演算子を評価しません。 +### 重大度タスクと報告 + +`$info`、`$warning`、`$error`、`$fatal`は、fail アクションのない `assert` / `assume` の既定の +`$error` も含めて、`RuntimeEvent::Report` として報告します(IEEE 1800-2023 20.10)。`Report` +は重大度、メッセージ、`` `__FILE__ `` と `` `__LINE__ `` が示す呼び出しのファイルと行、報告した +スコープを持ちます。即時アサーションのアクションブロックからの報告は、そのアサーションも示します。 +文ラベル、`assert` / `assume` / `cover` の別、pass と fail のどちらのアクションから出たかです。 +アクションブロックが呼ぶサブルーチン内の重大度タスクは、アサーションに結び付けません。`time` は +drain のコンテキストが与える時刻で、VPI ホストはコールバックごとに与えます。`Report::render` は、 +VPI ホストと `celox` コマンドが表示する形に整形します。`celox` の実行を失敗にするのは `$error` と +`$fatal` だけで、`$fatal` はさらにシミュレーションをエラーで終了します。 + ### 定数関数 定数関数は、呼び出す表示タスクと重大度タスクを無視します。 diff --git a/docs/ja/guide/writing-tests.md b/docs/ja/guide/writing-tests.md index 19b1c132a27..42b3607e8e1 100644 --- a/docs/ja/guide/writing-tests.md +++ b/docs/ja/guide/writing-tests.md @@ -261,7 +261,7 @@ const sim = Simulator.fromSource(SOURCE, "Adder", { ### HDL出力のバイト列 -Rustの`RuntimeEvent::{Display, Write, AssertContinue, AssertFatal}`と詳細テスト結果の +Rustの`RuntimeEvent::{Display, Write}`と`RuntimeEvent::Report`の`message`、詳細テスト結果の assertionメッセージは`Vec`を返します。JavaScriptの`runTest`、 `runTestFromProject`、`runTestWithFrontendArtifact`では`Uint8Array`です。 `%s`と`%c`には非UTF-8やNULが含まれるため、暗黙のデコードは行いません。 diff --git a/lydite/conformance/veryl-proof/README.md b/lydite/conformance/veryl-proof/README.md index d7dec4c7c86..d9665db5f42 100644 --- a/lydite/conformance/veryl-proof/README.md +++ b/lydite/conformance/veryl-proof/README.md @@ -74,8 +74,9 @@ run-status artifact. Clock payloads and masks are proved unique before selecting an edge; four-state edges follow IEEE 1800-2023 Table 9-2, including async resets. General waveform timing outside the Backend's named-event API is not claimed. - Display/Write/AssertContinue arguments are proved and logged; console delivery - is outside this Backend API. Activated fatal events fail closed. + Display/Write arguments and those of reports below Fatal (assertion messages) + are proved and logged; console delivery is outside this Backend API. Activated + fatal events fail closed. 6. SSA compaction is allowed only for pure definition relations, after feasibility and joint uniqueness of every active definition. Extra relational assumptions prevent compaction; nonunique free variables remain symbolic. Saved snapshots diff --git a/lydite/conformance/veryl-proof/proof_backend.py b/lydite/conformance/veryl-proof/proof_backend.py index e0925a5833d..5684d05c8e1 100644 --- a/lydite/conformance/veryl-proof/proof_backend.py +++ b/lydite/conformance/veryl-proof/proof_backend.py @@ -412,7 +412,9 @@ def runtime_event(self,operation,args,regs,masks=None): for site in sites: if site>=len(metadata):raise Unsupported('missing runtime-event metadata') kind=metadata[site]['kind'] - if kind not in ('Display','Write','AssertContinue'): + # A report other than Fatal ({'Report':'Error'} for an assertion) does not end the simulation. + nonfatal=kind in ('Display','Write') or (isinstance(kind,dict) and kind.get('Report') in ('Info','Warning','Error')) + if not nonfatal: raise Unsupported('fatal runtime-event activation requires explicit observer semantics') if args.get('fatal_error_code') is not None:raise Unsupported('fatal comb capture outside current event model') values=[] diff --git a/lydite/conformance/veryl-proof/tests/test_events.py b/lydite/conformance/veryl-proof/tests/test_events.py index 4176447ee20..285cdb5ecff 100644 --- a/lydite/conformance/veryl-proof/tests/test_events.py +++ b/lydite/conformance/veryl-proof/tests/test_events.py @@ -23,6 +23,19 @@ def test_untyped_event_fails_closed(self): with self.assertRaisesRegex(Unsupported, 'no edge kind'): backend.event_edge('event', 0, 1) + def test_only_nonfatal_runtime_events_are_observed(self): + backend = Backend.__new__(Backend) + backend.event_log = [] + for kind in ['Display', 'Write', {'Report': 'Info'}, {'Report': 'Warning'}, {'Report': 'Error'}]: + with self.subTest(kind=kind): + backend.code = {'runtime_event_sites': [{'kind': kind}]} + backend.runtime_event('RuntimeEvent', {'site_id': 0}, {}) + for kind in [{'Report': 'Fatal'}, 'Finish', 'Stop']: + with self.subTest(kind=kind): + backend.code = {'runtime_event_sites': [{'kind': kind}]} + with self.assertRaisesRegex(Unsupported, 'fatal runtime-event activation'): + backend.runtime_event('RuntimeEvent', {'site_id': 0}, {}) + if __name__ == '__main__': unittest.main() From f261bcd612ac022fbe09d57b0b04e3881fdde1ca Mon Sep 17 00:00:00 2001 From: tignear Date: Sun, 25 Oct 2026 02:20:02 +0900 Subject: [PATCH 9/9] test: add xezim as an external reference simulator Run the shared Veryl and SystemVerilog suites against xezim through its command line. Timed testbenches settle through a top-level program that acknowledges a design-side request event (IEEE 1800-2023 4.5, 24.3.1). The dev shell pins xezim by git revision, CI compares it in the external suite matrix, and the initial baseline retains each failure with its review in verification/xezim-review.json. Closes #1863. Change-Id: I3c2abece39ec71f689b07a5d0d9f5e27f804e9dd --- .github/workflows/ci.yml | 18 +- .github/workflows/rust-cache.yml | 2 +- crates/celox-test-suite/Cargo.toml | 11 + crates/celox-test-suite/README.md | 23 + .../src/bin/verify-sv-xezim.rs | 3 + .../celox-test-suite/src/bin/verify-xezim.rs | 3 + crates/celox-test-suite/src/lib.rs | 2 + crates/celox-test-suite/src/script/sv.rs | 126 +- crates/celox-test-suite/src/verification.rs | 19 +- .../src/veryl/verification/known_issues.rs | 2 +- .../src/veryl/verification/limitations.json | 88 +- crates/celox-test-suite/src/xezim.rs | 341 ++ crates/celox-test-suite/tests/oracles.rs | 235 +- .../tests/retained_reports.rs | 109 +- .../tests/source_rejection.rs | 40 +- .../verification/limitations/xezim.json | 565 +++ .../verification/sv/xezim.json | 42 + .../sv/xezim/aggregate_regressions.json | 125 + .../verification/sv/xezim/always_comb.json | 59 + .../verification/sv/xezim/binary_file_io.json | 15 + .../verification/sv/xezim/class.json | 312 ++ .../verification/sv/xezim/distributions.json | 26 + .../verification/sv/xezim/edges.json | 59 + .../verification/sv/xezim/file_core.json | 15 + .../verification/sv/xezim/file_io.json | 26 + .../verification/sv/xezim/floating_point.json | 180 + .../verification/sv/xezim/generate.json | 411 ++ .../verification/sv/xezim/hierarchy.json | 642 +++ .../verification/sv/xezim/indexed_select.json | 708 +++ .../verification/sv/xezim/interfaces.json | 345 ++ .../verification/sv/xezim/latch.json | 169 + .../verification/sv/xezim/literals.json | 48 + .../verification/sv/xezim/operators.json | 609 +++ .../verification/sv/xezim/packed_structs.json | 103 + .../verification/sv/xezim/procedural.json | 455 ++ .../sv/xezim/random_plusargs.json | 59 + .../sv/xezim/real_extensions.json | 15 + .../verification/sv/xezim/real_math.json | 26 + .../verification/sv/xezim/realtime.json | 26 + .../sv/xezim/review_regressions.json | 235 + .../verification/sv/xezim/scan.json | 48 + .../verification/sv/xezim/string.json | 103 + .../verification/sv/xezim/synthesizable.json | 378 ++ .../sv/xezim/system_functions.json | 1137 +++++ .../verification/sv/xezim/tagged_unions.json | 103 + .../verification/sv/xezim/timing.json | 1456 +++++++ .../verification/sv/xezim/types.json | 180 + .../verification/sv/xezim/unions.json | 59 + .../verification/xezim-review.json | 3845 +++++++++++++++++ .../celox-test-suite/verification/xezim.json | 83 + .../xezim/advanced_interface.json | 59 + .../verification/xezim/array_literal.json | 114 + .../verification/xezim/basic.json | 518 +++ .../verification/xezim/case_switch.json | 103 + .../verification/xezim/comb_observer.json | 155 + .../verification/xezim/compare_matrix.json | 81 + .../verification/xezim/concat_operators.json | 81 + .../verification/xezim/concatenation.json | 48 + .../xezim/concurrent_initial.json | 286 ++ .../verification/xezim/context_width.json | 125 + .../verification/xezim/counter.json | 37 + .../verification/xezim/data_access.json | 147 + .../verification/xezim/duplicate_varpath.json | 26 + .../verification/xezim/enum_type.json | 37 + .../xezim/expression_semantics.json | 147 + .../verification/xezim/false_loop.json | 15 + .../verification/xezim/ff_event_snapshot.json | 48 + .../verification/xezim/ff_narrow_arrays.json | 26 + .../verification/xezim/fifo_issue5.json | 15 + .../verification/xezim/flip_flop.json | 1927 +++++++++ .../verification/xezim/floating_point.json | 81 + .../verification/xezim/for_loop_unroll.json | 37 + .../verification/xezim/four_state.json | 917 ++++ .../four_state_expression_semantics.json | 164 + .../xezim/function_arguments.json | 233 + .../verification/xezim/function_bodies.json | 103 + .../verification/xezim/generic_identity.json | 26 + .../xezim/hierarchical_assignment.json | 26 + .../verification/xezim/hierarchy.json | 312 ++ .../verification/xezim/interface.json | 334 ++ .../verification/xezim/issue3_repro.json | 26 + .../verification/xezim/latch.json | 59 + .../xezim/linear_sorter_pull.json | 37 + .../xezim/logical_shift_count.json | 48 + .../verification/xezim/loop_idiom.json | 37 + .../verification/xezim/multi_clock.json | 37 + .../verification/xezim/nba_cross_block.json | 37 + .../xezim/nba_cross_block_empty.json | 37 + .../verification/xezim/nba_dynamic_array.json | 180 + .../verification/xezim/operators.json | 429 ++ .../xezim/packed_scatter_store.json | 15 + .../verification/xezim/param_override.json | 114 + .../xezim/partial_word_shift.json | 81 + .../verification/xezim/proto_package.json | 26 + .../xezim/recovered_unrolled_fold.json | 59 + .../verification/xezim/reset_edge_cases.json | 59 + .../xezim/self_determination.json | 70 + .../verification/xezim/shift_bug_test.json | 81 + .../verification/xezim/shift_signedness.json | 70 + .../verification/xezim/signed_divrem.json | 74 + .../xezim/state_cast_semantics.json | 59 + .../verification/xezim/std_binary_codec.json | 48 + .../verification/xezim/std_delay.json | 37 + .../verification/xezim/std_edge_detector.json | 37 + .../verification/xezim/std_fifo.json | 59 + .../verification/xezim/std_gray_codec.json | 26 + .../verification/xezim/std_lfsr.json | 37 + .../verification/xezim/std_mux.json | 26 + .../verification/xezim/std_onehot.json | 15 + .../verification/xezim/std_ram.json | 37 + .../xezim/struct_constructor.json | 48 + .../xezim/synth_dynamic_loop.json | 304 ++ .../verification/xezim/system_function.json | 357 ++ .../verification/xezim/tb_string.json | 59 + .../xezim/test_unimplemented_paths.json | 26 + .../xezim/veryl_context_regressions.json | 213 + .../verification/xezim/veryl_language.json | 37 + .../verification/xezim/veryl_regressions.json | 114 + .../xezim/wide_context_width.json | 92 + .../verification/xezim/wide_data.json | 70 + .../verification/xezim/wide_operators.json | 246 ++ .../verification/xezim/wide_shift_mem.json | 246 ++ flake.lock | 20 +- flake.nix | 33 +- nix/xezim/Cargo.lock | 1091 +++++ nix/xezim/default.nix | 45 + nix/xezim/update-lock.sh | 18 + renovate.json | 18 +- scripts/check-external-suite-report.mjs | 2 +- scripts/check-external-suite-report.test.mjs | 15 +- scripts/ci-rust-scope.mjs | 1 + scripts/ci-workflow.test.mjs | 8 +- scripts/run-ci-cocotb.mjs | 2 +- 133 files changed, 24882 insertions(+), 57 deletions(-) create mode 100644 crates/celox-test-suite/src/bin/verify-sv-xezim.rs create mode 100644 crates/celox-test-suite/src/bin/verify-xezim.rs create mode 100644 crates/celox-test-suite/src/xezim.rs create mode 100644 crates/celox-test-suite/verification/limitations/xezim.json create mode 100644 crates/celox-test-suite/verification/sv/xezim.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/aggregate_regressions.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/always_comb.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/binary_file_io.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/class.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/distributions.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/edges.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/file_core.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/file_io.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/floating_point.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/generate.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/hierarchy.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/indexed_select.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/interfaces.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/latch.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/literals.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/operators.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/packed_structs.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/procedural.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/random_plusargs.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/real_extensions.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/real_math.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/realtime.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/review_regressions.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/scan.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/string.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/synthesizable.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/system_functions.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/tagged_unions.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/timing.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/types.json create mode 100644 crates/celox-test-suite/verification/sv/xezim/unions.json create mode 100644 crates/celox-test-suite/verification/xezim-review.json create mode 100644 crates/celox-test-suite/verification/xezim.json create mode 100644 crates/celox-test-suite/verification/xezim/advanced_interface.json create mode 100644 crates/celox-test-suite/verification/xezim/array_literal.json create mode 100644 crates/celox-test-suite/verification/xezim/basic.json create mode 100644 crates/celox-test-suite/verification/xezim/case_switch.json create mode 100644 crates/celox-test-suite/verification/xezim/comb_observer.json create mode 100644 crates/celox-test-suite/verification/xezim/compare_matrix.json create mode 100644 crates/celox-test-suite/verification/xezim/concat_operators.json create mode 100644 crates/celox-test-suite/verification/xezim/concatenation.json create mode 100644 crates/celox-test-suite/verification/xezim/concurrent_initial.json create mode 100644 crates/celox-test-suite/verification/xezim/context_width.json create mode 100644 crates/celox-test-suite/verification/xezim/counter.json create mode 100644 crates/celox-test-suite/verification/xezim/data_access.json create mode 100644 crates/celox-test-suite/verification/xezim/duplicate_varpath.json create mode 100644 crates/celox-test-suite/verification/xezim/enum_type.json create mode 100644 crates/celox-test-suite/verification/xezim/expression_semantics.json create mode 100644 crates/celox-test-suite/verification/xezim/false_loop.json create mode 100644 crates/celox-test-suite/verification/xezim/ff_event_snapshot.json create mode 100644 crates/celox-test-suite/verification/xezim/ff_narrow_arrays.json create mode 100644 crates/celox-test-suite/verification/xezim/fifo_issue5.json create mode 100644 crates/celox-test-suite/verification/xezim/flip_flop.json create mode 100644 crates/celox-test-suite/verification/xezim/floating_point.json create mode 100644 crates/celox-test-suite/verification/xezim/for_loop_unroll.json create mode 100644 crates/celox-test-suite/verification/xezim/four_state.json create mode 100644 crates/celox-test-suite/verification/xezim/four_state_expression_semantics.json create mode 100644 crates/celox-test-suite/verification/xezim/function_arguments.json create mode 100644 crates/celox-test-suite/verification/xezim/function_bodies.json create mode 100644 crates/celox-test-suite/verification/xezim/generic_identity.json create mode 100644 crates/celox-test-suite/verification/xezim/hierarchical_assignment.json create mode 100644 crates/celox-test-suite/verification/xezim/hierarchy.json create mode 100644 crates/celox-test-suite/verification/xezim/interface.json create mode 100644 crates/celox-test-suite/verification/xezim/issue3_repro.json create mode 100644 crates/celox-test-suite/verification/xezim/latch.json create mode 100644 crates/celox-test-suite/verification/xezim/linear_sorter_pull.json create mode 100644 crates/celox-test-suite/verification/xezim/logical_shift_count.json create mode 100644 crates/celox-test-suite/verification/xezim/loop_idiom.json create mode 100644 crates/celox-test-suite/verification/xezim/multi_clock.json create mode 100644 crates/celox-test-suite/verification/xezim/nba_cross_block.json create mode 100644 crates/celox-test-suite/verification/xezim/nba_cross_block_empty.json create mode 100644 crates/celox-test-suite/verification/xezim/nba_dynamic_array.json create mode 100644 crates/celox-test-suite/verification/xezim/operators.json create mode 100644 crates/celox-test-suite/verification/xezim/packed_scatter_store.json create mode 100644 crates/celox-test-suite/verification/xezim/param_override.json create mode 100644 crates/celox-test-suite/verification/xezim/partial_word_shift.json create mode 100644 crates/celox-test-suite/verification/xezim/proto_package.json create mode 100644 crates/celox-test-suite/verification/xezim/recovered_unrolled_fold.json create mode 100644 crates/celox-test-suite/verification/xezim/reset_edge_cases.json create mode 100644 crates/celox-test-suite/verification/xezim/self_determination.json create mode 100644 crates/celox-test-suite/verification/xezim/shift_bug_test.json create mode 100644 crates/celox-test-suite/verification/xezim/shift_signedness.json create mode 100644 crates/celox-test-suite/verification/xezim/signed_divrem.json create mode 100644 crates/celox-test-suite/verification/xezim/state_cast_semantics.json create mode 100644 crates/celox-test-suite/verification/xezim/std_binary_codec.json create mode 100644 crates/celox-test-suite/verification/xezim/std_delay.json create mode 100644 crates/celox-test-suite/verification/xezim/std_edge_detector.json create mode 100644 crates/celox-test-suite/verification/xezim/std_fifo.json create mode 100644 crates/celox-test-suite/verification/xezim/std_gray_codec.json create mode 100644 crates/celox-test-suite/verification/xezim/std_lfsr.json create mode 100644 crates/celox-test-suite/verification/xezim/std_mux.json create mode 100644 crates/celox-test-suite/verification/xezim/std_onehot.json create mode 100644 crates/celox-test-suite/verification/xezim/std_ram.json create mode 100644 crates/celox-test-suite/verification/xezim/struct_constructor.json create mode 100644 crates/celox-test-suite/verification/xezim/synth_dynamic_loop.json create mode 100644 crates/celox-test-suite/verification/xezim/system_function.json create mode 100644 crates/celox-test-suite/verification/xezim/tb_string.json create mode 100644 crates/celox-test-suite/verification/xezim/test_unimplemented_paths.json create mode 100644 crates/celox-test-suite/verification/xezim/veryl_context_regressions.json create mode 100644 crates/celox-test-suite/verification/xezim/veryl_language.json create mode 100644 crates/celox-test-suite/verification/xezim/veryl_regressions.json create mode 100644 crates/celox-test-suite/verification/xezim/wide_context_width.json create mode 100644 crates/celox-test-suite/verification/xezim/wide_data.json create mode 100644 crates/celox-test-suite/verification/xezim/wide_operators.json create mode 100644 crates/celox-test-suite/verification/xezim/wide_shift_mem.json create mode 100644 nix/xezim/Cargo.lock create mode 100644 nix/xezim/default.nix create mode 100755 nix/xezim/update-lock.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5a4a262d569..86607a1b55e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -149,7 +149,7 @@ jobs: - name: cargo clippy if: (needs.changes.result != 'success' || needs.changes.outputs.rust == 'true') && needs.changes.outputs.rust_full != 'false' - run: cargo clippy --locked --workspace --exclude lydite-celox --all-targets --features celox/systemverilog,celox-test-suite/verilator,celox-test-suite/icarus --no-deps + run: cargo clippy --locked --workspace --exclude lydite-celox --all-targets --features celox/systemverilog,celox-test-suite/verilator,celox-test-suite/icarus,celox-test-suite/xezim --no-deps - name: Lint the crates this pull request can affect if: needs.changes.outputs.rust_full == 'false' && needs.changes.outputs.rust_lint_packages != '' @@ -259,7 +259,7 @@ jobs: if: needs.changes.outputs.rust_full != 'false' run: >- cargo nextest run --locked --workspace --exclude 'lydite*' --profile ci - --features celox/systemverilog,celox-test-suite/verilator,celox-test-suite/icarus,celox-test-suite/runtime-cases + --features celox/systemverilog,celox-test-suite/verilator,celox-test-suite/icarus,celox-test-suite/xezim,celox-test-suite/runtime-cases - name: Run the tests this pull request can affect id: scoped-tests @@ -305,7 +305,7 @@ jobs: if: needs.changes.outputs.rust_full != 'false' run: >- cargo test --locked --workspace --exclude 'lydite*' --doc - --features celox/systemverilog,celox-test-suite/verilator,celox-test-suite/icarus,celox-test-suite/runtime-cases + --features celox/systemverilog,celox-test-suite/verilator,celox-test-suite/icarus,celox-test-suite/xezim,celox-test-suite/runtime-cases - name: Run the documentation tests of the changed libraries if: needs.changes.outputs.rust_full == 'false' && needs.changes.outputs.rust_libraries != '' @@ -348,9 +348,11 @@ jobs: fail-fast: false matrix: suite: [veryl, sv] - tool: [verilator, icarus] + tool: [verilator, icarus, xezim] env: VERIFY_TOOL: ${{ matrix.tool }} + # xezim builds from source, so only its jobs enter the shell with it. + VERIFY_SHELL: ${{ matrix.tool == 'xezim' && '.#xezim' || '.' }} VERIFY_SUITE: ${{ matrix.suite }} VERIFY_BIN: ${{ matrix.suite == 'sv' && format('verify-sv-{0}', matrix.tool) || format('verify-{0}', matrix.tool) }} VERIFY_BASELINE: ${{ matrix.suite == 'sv' && format('crates/celox-test-suite/verification/sv/{0}.json', matrix.tool) || format('crates/celox-test-suite/verification/{0}.json', matrix.tool) }} @@ -366,7 +368,7 @@ jobs: - name: Test live simulator adapters if: matrix.suite == 'veryl' run: >- - nix develop --no-update-lock-file --command + nix develop "$VERIFY_SHELL" --no-update-lock-file --command cargo test --locked -p celox-test-suite --features "$VERIFY_TOOL" --test oracles -- --ignored @@ -374,7 +376,7 @@ jobs: if: ${{ !cancelled() }} run: | mkdir -p "$RUNNER_TEMP/external-suite" - nix develop --no-update-lock-file --command \ + nix develop "$VERIFY_SHELL" --no-update-lock-file --command \ cargo run --locked -p celox-test-suite --features "$VERIFY_TOOL" \ --bin "$VERIFY_BIN" -- --list > "$RUNNER_TEMP/external-suite/catalogue.json" @@ -385,7 +387,7 @@ jobs: # The runner returns 1 for retained failures as well as regressions. # The next step checks the complete fresh report and the exit status. rm -f "$RUNNER_TEMP/external-suite/logs/results.json" - if nix develop --no-update-lock-file --command \ + if nix develop "$VERIFY_SHELL" --no-update-lock-file --command \ cargo run --locked -p celox-test-suite --features "$VERIFY_TOOL" \ --bin "$VERIFY_BIN" -- --fresh --jobs 2 \ --output "$RUNNER_TEMP/external-suite/logs"; then @@ -400,7 +402,7 @@ jobs: env: VERIFY_EXIT_STATUS: ${{ steps.verify.outputs.exit_status }} run: >- - nix develop --no-update-lock-file --command + nix develop "$VERIFY_SHELL" --no-update-lock-file --command node scripts/check-external-suite-report.mjs "$RUNNER_TEMP/external-suite/logs/results.json" "$VERIFY_BASELINE" "$RUNNER_TEMP/external-suite/catalogue.json" "$VERIFY_EXIT_STATUS" "$VERIFY_SUITE" diff --git a/.github/workflows/rust-cache.yml b/.github/workflows/rust-cache.yml index 33fdcdb80c7..5bd5f9becc4 100644 --- a/.github/workflows/rust-cache.yml +++ b/.github/workflows/rust-cache.yml @@ -54,7 +54,7 @@ jobs: if: steps.cache.outputs.cache-hit != 'true' run: >- cargo nextest list --locked --workspace --exclude 'lydite*' --message-format json - --features celox/systemverilog,celox-test-suite/verilator,celox-test-suite/icarus,celox-test-suite/runtime-cases + --features celox/systemverilog,celox-test-suite/verilator,celox-test-suite/icarus,celox-test-suite/xezim,celox-test-suite/runtime-cases > /dev/null rust-default-tests: diff --git a/crates/celox-test-suite/Cargo.toml b/crates/celox-test-suite/Cargo.toml index 989f9adf23b..23f54330943 100644 --- a/crates/celox-test-suite/Cargo.toml +++ b/crates/celox-test-suite/Cargo.toml @@ -21,6 +21,7 @@ emit = ["dep:veryl-analyzer", "dep:veryl-emitter", "dep:veryl-parser", "dep:very external = ["emit", "dep:clap", "dep:serde_json", "dep:sha2", "dep:celox-sv-analyzer"] verilator = ["external"] icarus = ["external"] +xezim = ["external"] [[bin]] name = "verify-verilator" @@ -42,6 +43,16 @@ name = "verify-sv-icarus" path = "src/bin/verify-sv-icarus.rs" required-features = ["icarus"] +[[bin]] +name = "verify-xezim" +path = "src/bin/verify-xezim.rs" +required-features = ["xezim"] + +[[bin]] +name = "verify-sv-xezim" +path = "src/bin/verify-sv-xezim.rs" +required-features = ["xezim"] + [[example]] name = "inspect-mismatch-ir" required-features = ["emit"] diff --git a/crates/celox-test-suite/README.md b/crates/celox-test-suite/README.md index d5444a25a2a..8931a473d01 100644 --- a/crates/celox-test-suite/README.md +++ b/crates/celox-test-suite/README.md @@ -337,6 +337,29 @@ which only reads declarations (after expanding interfaces) for this purpose. Its in [`verification/sv/limitations.json`](verification/sv/limitations.json). Compiler diagnostics are not suppressed and emitted SV is not rewritten to fit a simulator. +The optional `xezim` feature adds [xezim](https://github.com/aionhw/xezim), a +four-state event-driven simulator, through its command line only +(`verify-xezim`, `verify-sv-xezim`). It has no signal access: it runs the +generated testbenches and native testbenches, which report through their stdout +markers and their completion. Each design is first checked with +`xezim --compile`, which tells source rejections apart from a run that ends in +`$fatal`, and then simulated by a second xezim process, which parses it again; +a run passes only when xezim reports that `$finish` ended it. The xezim branch of a timed testbench +(``CELOX_SUITE_XEZIM``) settles through a `program`: program code runs in the +reactive region set, which the scheduler reaches only once the active region +set is empty, NBA updates and the events they cause included (IEEE 1800-2023 +4.5, 24.3.1). The testbench increments a request count, which is a design event, +and waits for the program's acknowledgement; a bare `#0` would resume before the +design reacts. Two-state cases start xezim's flip-flops and memories at zero +(`XEZIM_INIT_REG=0`, `XEZIM_INIT_MEM=0`) and the generated testbench inputs at +zero. Other variables start at X, whereas the Icarus harness zeroes all +storage, so a two-state testbench fails when it reads unknown bits from the +design. `nix develop .#xezim` adds a pinned xezim (`nix/xezim`) to the +development shell. +xezim's retained failures stay executed evidence rather than exclusions: +[`verification/xezim-review.json`](verification/xezim-review.json) classifies +each one against IEEE 1800-2023 and names the xezim bug it reproduces. + Local verification reuses unchanged successful results by default. Select the cases affected by executable source, stimulus or assertion changes: diff --git a/crates/celox-test-suite/src/bin/verify-sv-xezim.rs b/crates/celox-test-suite/src/bin/verify-sv-xezim.rs new file mode 100644 index 00000000000..eed7a616c15 --- /dev/null +++ b/crates/celox-test-suite/src/bin/verify-sv-xezim.rs @@ -0,0 +1,3 @@ +fn main() -> celox_test_suite::Result<()> { + celox_test_suite::sv::verification::run(celox_test_suite::verification::Tool::Xezim) +} diff --git a/crates/celox-test-suite/src/bin/verify-xezim.rs b/crates/celox-test-suite/src/bin/verify-xezim.rs new file mode 100644 index 00000000000..af93d81bd5f --- /dev/null +++ b/crates/celox-test-suite/src/bin/verify-xezim.rs @@ -0,0 +1,3 @@ +fn main() -> celox_test_suite::Result<()> { + celox_test_suite::veryl::verification::run(celox_test_suite::verification::Tool::Xezim) +} diff --git a/crates/celox-test-suite/src/lib.rs b/crates/celox-test-suite/src/lib.rs index 186da9925d9..4ff79bb0570 100644 --- a/crates/celox-test-suite/src/lib.rs +++ b/crates/celox-test-suite/src/lib.rs @@ -19,6 +19,8 @@ mod process; pub mod verification; #[cfg(feature = "external")] pub mod verilator; +#[cfg(feature = "external")] +pub mod xezim; pub use backend::{ Backend, Design, Event, Factory, Instance, Signal, SignalPath, Simulator, Source, diff --git a/crates/celox-test-suite/src/script/sv.rs b/crates/celox-test-suite/src/script/sv.rs index a1812fd7f92..643af9f9bbc 100644 --- a/crates/celox-test-suite/src/script/sv.rs +++ b/crates/celox-test-suite/src/script/sv.rs @@ -14,8 +14,9 @@ //! each, and restores a level that was neither. //! //! A timed case settles without advancing time: Icarus resumes from a -//! read/write synchronization callback and Verilator from a clocking event in -//! the observed region. Its script begins with `run_until` or +//! read/write synchronization callback, Verilator from a clocking event in +//! the observed region, and xezim once a program has run in the reactive +//! region. Its script begins with `run_until` or //! `run_to_finish`, so the design's time-zero processes have run before the //! testbench touches it. `run_until` drains its target timestamp before the //! next script operation. The checks after `run_to_finish` run in a `final` @@ -522,20 +523,28 @@ impl Generator<'_> { match expr { Expr::Literal(value) => self.literal(value), Expr::Var(name) => format!("v_{name}"), - Expr::Get(path) => match self.design.arrays.get(&path.name) { - // Element 0 in the least significant bits. - Some((_, bounds)) if path.instances.is_empty() => { - let base = path_text(path); - let elements: Vec = bounds - .indices() - .into_iter() - .rev() - .map(|i| format!("{base}[{i}]")) - .collect(); - format!("$signed({n}'({{{}}}))", elements.join(", ")) + Expr::Get(path) => { + let value = match self.design.arrays.get(&path.name) { + // Element 0 in the least significant bits. + Some((_, bounds)) if path.instances.is_empty() => { + let base = path_text(path); + let elements: Vec = bounds + .indices() + .into_iter() + .rev() + .map(|i| format!("{base}[{i}]")) + .collect(); + format!("$signed({n}'({{{}}}))", elements.join(", ")) + } + _ => format!("$signed({n}'({{{}}}))", path_text(path)), + }; + if self.case.four_state { + value + } else { + let what = format!("{} reads {}", self.case.name, path_label(path)); + format!("suite_read({value}, {})", sv_string(&what)) } - _ => format!("$signed({n}'({{{}}}))", path_text(path)), - }, + } Expr::Op(op, operands) => { let args: Vec = operands.iter().map(|e| self.expr(e)).collect(); let fold = |symbol: &str| format!("({})", args.join(&format!(" {symbol} "))); @@ -1019,6 +1028,24 @@ impl Generator<'_> { } } +/// The program that settles a timed testbench under xezim. Program code runs +/// in the reactive region set, which the scheduler reaches only once the +/// active region set is empty, NBA updates and the events they cause included +/// (IEEE 1800-2023 4.5, 24.3.1). The testbench's request is a design event, +/// so the acknowledgement follows the design's whole reaction to the stimulus +/// before it; a bare `#0` would resume in the reactive set before the design +/// reacts. The program starts in the reactive region too, possibly after the +/// first request, so it compares the counts instead of waiting first. +const XEZIM_SETTLER: &str = r#"`ifdef CELOX_SUITE_XEZIM +program celox_suite_settler (input int request, output int ack); + initial forever begin + if (ack == request) @(request); + ack = request; + end +endprogram +`endif +"#; + /// Generate the testbench for `case`. Every event the script ticks must be an /// input port listed in `design.edges`. pub fn testbench(case: &ScriptCase, design: &DesignInfo) -> Result { @@ -1079,19 +1106,29 @@ pub fn testbench(case: &ScriptCase, design: &DesignInfo) -> Result "", + (false, None) => "\n`ifdef CELOX_SUITE_XEZIM\n = '0\n`endif\n ", + (false, Some(_)) => "\n`ifdef CELOX_SUITE_XEZIM\n = '{default: '0}\n`endif\n ", + }; let _ = writeln!( out, - " logic [{}:0] i_{}{range};", + " logic [{}:0] i_{}{range}{zero};", port.width.max(1) - 1, port.name ); @@ -1156,6 +1193,19 @@ pub fn testbench(case: &ScriptCase, design: &DesignInfo) -> Result Result "verilator", Tool::Icarus => "icarus", + Tool::Xezim => "xezim", } } @@ -82,12 +84,13 @@ impl Tool { match self { Tool::Verilator => ("verilator", "--version"), Tool::Icarus => ("iverilog", "-V"), + Tool::Xezim => ("xezim", "-V"), } } /// Whether the tool can validate four-state expectations. fn four_state(self) -> bool { - matches!(self, Tool::Icarus) + matches!(self, Tool::Icarus | Tool::Xezim) } } @@ -142,6 +145,7 @@ pub fn run(tool: Tool, suite: &Suite, frontend: &'static dyn Frontend) -> Result frontend, design, directory, )?), Tool::Icarus => Box::new(crate::icarus::Icarus::build(frontend, design, directory)?), + Tool::Xezim => Box::new(crate::xezim::Xezim::build(frontend, design, directory)?), }) }; let build_script = move |case: &TestCase, directory: &Path| -> Result> { @@ -152,6 +156,9 @@ pub fn run(tool: Tool, suite: &Suite, frontend: &'static dyn Frontend) -> Result Tool::Icarus => Box::new(crate::icarus::Icarus::build_script( frontend, case, directory, )?), + Tool::Xezim => Box::new(crate::xezim::Xezim::build_script( + frontend, case, directory, + )?), }) }; let builders = Builders { @@ -430,6 +437,7 @@ fn context_fingerprint( let tools: &[&str] = match tool { Tool::Verilator => &["verilator", "verilator_bin", "make", "c++", "timeout"], Tool::Icarus => &["iverilog", "vvp", "iverilog-vpi", "c++", "timeout"], + Tool::Xezim => &["xezim", "timeout"], }; let path = std::env::var_os("PATH")?; let mut identities = Vec::new(); @@ -847,6 +855,9 @@ mod script_failure_tests { Tool::Verilator => Ok(Box::new(crate::verilator::Verilator::build_script( &frontend, case, directory, )?) as Box), + Tool::Xezim => Ok(Box::new(crate::xezim::Xezim::build_script( + &frontend, case, directory, + )?) as Box), } }); let log = std::fs::read(directory.join("protocol.log")).unwrap(); @@ -868,6 +879,12 @@ mod script_failure_tests { fn binary_assertion_failure_is_mismatch_on_verilator() { binary_assertion_failure(Tool::Verilator); } + + #[test] + #[ignore = "requires live xezim and timeout tools"] + fn binary_assertion_failure_is_mismatch_on_xezim() { + binary_assertion_failure(Tool::Xezim); + } } #[cfg(test)] diff --git a/crates/celox-test-suite/src/veryl/verification/known_issues.rs b/crates/celox-test-suite/src/veryl/verification/known_issues.rs index 64f88345b69..71c8a7e8b67 100644 --- a/crates/celox-test-suite/src/veryl/verification/known_issues.rs +++ b/crates/celox-test-suite/src/veryl/verification/known_issues.rs @@ -139,7 +139,7 @@ mod tests { #[test] fn limitations_only_exclude_cases_with_retained_failure_evidence() { - for tool in ["verilator", "icarus"] { + for tool in ["verilator", "icarus", "xezim"] { for group in limitations() { let Some(cases) = group["cases"][tool].as_array() else { continue; diff --git a/crates/celox-test-suite/src/veryl/verification/limitations.json b/crates/celox-test-suite/src/veryl/verification/limitations.json index b4f4e9dc095..654429b797b 100644 --- a/crates/celox-test-suite/src/veryl/verification/limitations.json +++ b/crates/celox-test-suite/src/veryl/verification/limitations.json @@ -516,12 +516,13 @@ "id": "veryl_ff_effects", "category": "veryl_extension", "phase": "emission", - "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", "upstream": [], "evidence": [ "verification/limitations/verilator.json", "verification/limitations/icarus.json", + "verification/limitations/xezim.json", "LIMITATIONS.md#veryl-ff-effects" ], "cases": { @@ -627,6 +628,60 @@ "function_arguments::test_ff_statement_output_copyout_freezes_all_inputs", "function_arguments::test_output_copyout_converts_formal_width_and_signedness_in_comb_and_ff", "operators::test_pow_operator_runtime_exponent_comb_and_ff" + ], + "xezim": [ + "flip_flop::test_ff_assert_message_output_argument_is_eager", + "flip_flop::test_ff_bits_and_size_array_dependencies_do_not_alias_later_write", + "flip_flop::test_ff_bits_and_size_operands_do_not_alias_earlier_array_argument", + "flip_flop::test_ff_dynamic_nonlocal_store_follows_pending_whole_write", + "flip_flop::test_ff_effectful_array_item_output_is_not_a_read_alias", + "flip_flop::test_ff_function_call_array_literal_branch_view_is_reused_after_merge", + "flip_flop::test_ff_function_call_array_literal_effect_is_eager_in_short_circuit_rhs", + "flip_flop::test_ff_function_call_array_literal_effect_is_eager_in_ternary_arm", + "flip_flop::test_ff_function_call_array_literal_snapshots_scalar_before_callee_write", + "flip_flop::test_ff_function_call_array_literal_snapshots_scalar_before_later_write", + "flip_flop::test_ff_function_call_array_literal_view_preserves_expression_order", + "flip_flop::test_ff_function_call_array_literal_view_preserves_source_order", + "flip_flop::test_ff_function_call_bits_and_size_evaluate_effectful_array_argument", + "flip_flop::test_ff_function_call_carries_branch_local_static_array_item_cache", + "flip_flop::test_ff_function_call_effectful_array_items_are_eager_before_conditional_access", + "flip_flop::test_ff_function_call_expression_with_output_argument_and_return_value", + "flip_flop::test_ff_function_call_keeps_array_view_active_for_output_index", + "flip_flop::test_ff_function_call_merges_directly_forwarded_array_cache", + "flip_flop::test_ff_function_call_merges_nested_array_state_at_cache_completion", + "flip_flop::test_ff_function_call_merges_nested_array_state_at_static_cache_completion", + "flip_flop::test_ff_function_call_merges_outer_array_view_across_nested_short_circuit", + "flip_flop::test_ff_function_call_nested_bits_evaluates_effectful_array_argument", + "flip_flop::test_ff_function_call_nested_output_statement_in_function_body", + "flip_flop::test_ff_function_call_snapshots_pure_array_items_before_later_effect", + "flip_flop::test_ff_function_call_statement_with_output_argument", + "flip_flop::test_ff_function_call_statement_with_output_argument_and_return_value", + "flip_flop::test_ff_function_call_tracks_array_reads_in_output_indices", + "flip_flop::test_ff_function_call_tracks_array_view_hidden_in_bound_literal", + "flip_flop::test_ff_function_call_tracks_nested_array_reads_in_output_indices", + "flip_flop::test_ff_function_call_tracks_nested_static_array_read_through_branch", + "flip_flop::test_ff_function_output_index_uses_final_nonlocal_state", + "flip_flop::test_ff_nonlocal_source_ternary_preserves_unknown_merge", + "flip_flop::test_ff_nonlocal_write_precedes_aliased_formal_output_copyout", + "flip_flop::test_ff_outputless_wrapper_direct_dynamic_nonlocal_assignment_is_observable", + "flip_flop::test_ff_outputless_wrapper_dynamic_indexed_copyout_to_nonlocal_is_observable", + "flip_flop::test_ff_outputless_wrapper_expression_copyout_to_nonlocal_is_observable", + "flip_flop::test_ff_outputless_wrapper_indexed_copyout_to_nonlocal_is_observable", + "flip_flop::test_ff_outputless_wrapper_nested_copyout_to_nonlocal_is_observable", + "flip_flop::test_ff_pure_input_is_snapshotted_before_later_effectful_input", + "flip_flop::test_ff_runtime_function_snapshots_helper_input_before_callee_nonlocal_write", + "flip_flop::test_ff_runtime_function_snapshots_input_before_callee_nonlocal_write", + "flip_flop::test_ff_short_circuit_runtime_write_preserves_later_state_source", + "flip_flop::test_ff_skipped_conditional_nonlocal_write_preserves_prior_ff_assignment", + "flip_flop::test_ff_statement_function_direct_nonlocal_assignment_is_observable", + "four_state_expression_semantics::effectful_ternary_takes_known_true_branch_despite_unknown_bits", + "four_state_expression_semantics::ff_procedural_control_uses_known_nonzero_truth", + "function_arguments::test_ff_expression_output_copyout_extends_before_splitting_concat", + "function_arguments::test_ff_nested_output_copyout_is_visible_before_outer_copyout", + "function_arguments::test_ff_output_copyout_to_dynamic_slice_preserves_other_bits", + "function_arguments::test_ff_statement_output_copyout_freezes_all_inputs", + "function_arguments::test_output_copyout_converts_formal_width_and_signedness_in_comb_and_ff", + "operators::test_pow_operator_runtime_exponent_comb_and_ff" ] } }, @@ -670,12 +725,13 @@ "id": "veryl_negative_for_bounds", "category": "veryl_restriction", "phase": "emission", - "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", "reason": "Veryl 0.21.0 rejects negative bounds in elaborated for loops (InvalidForRange::NegativeBound). This is a frontend restriction, not an external simulator mismatch.", "upstream": [], "evidence": [ "verification/limitations/verilator.json", "verification/limitations/icarus.json", + "verification/limitations/xezim.json", "LIMITATIONS.md#veryl-negative-for-bounds" ], "cases": { @@ -686,6 +742,10 @@ "icarus": [ "flip_flop::test_ff_constant_signed_bounds_in_unrolled_loops", "synth_dynamic_loop::test_constant_signed_bounds_in_unrolled_synth_loops" + ], + "xezim": [ + "flip_flop::test_ff_constant_signed_bounds_in_unrolled_loops", + "synth_dynamic_loop::test_constant_signed_bounds_in_unrolled_synth_loops" ] } }, @@ -693,12 +753,13 @@ "id": "veryl_runtime_system_calls", "category": "veryl_restriction", "phase": "emission", - "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", "reason": "Veryl 0.21.0 requires an evaluable argument for these direct $clog2/$onehot calls (UnevaluableValue). Runtime operands prevent emission.", "upstream": [], "evidence": [ "verification/limitations/verilator.json", "verification/limitations/icarus.json", + "verification/limitations/xezim.json", "LIMITATIONS.md#veryl-runtime-system-calls" ], "cases": { @@ -713,6 +774,12 @@ "system_function::test_direct_comb_onehot_system_function", "system_function::test_direct_ff_clog2_system_function", "system_function::test_direct_ff_onehot_system_function" + ], + "xezim": [ + "system_function::test_direct_comb_clog2_system_function", + "system_function::test_direct_comb_onehot_system_function", + "system_function::test_direct_ff_clog2_system_function", + "system_function::test_direct_ff_onehot_system_function" ] } }, @@ -738,7 +805,7 @@ "id": "veryl_native_clock_components", "category": "emitter_panic", "phase": "emission", - "observed_version": "Veryl 0.22.0; Verilator 5.052 / Icarus 13.0", + "observed_version": "Veryl 0.22.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", "reason": "These native testbench fixtures use $tb::clock_gen (and reset_gen). The shared adapter does not translate native clock components; Veryl 0.22.0 SV emission panics with internal error: entered unreachable code before either external simulator runs.", "upstream": [], "evidence": [ @@ -746,6 +813,7 @@ "verification/repros/concurrent_initial_icarus.json", "verification/repros/concurrent_initial_gated_drive_verilator.json", "verification/repros/concurrent_initial_gated_drive_icarus.json", + "verification/limitations/xezim.json", "LIMITATIONS.md#veryl-native-clock-components" ], "cases": { @@ -772,6 +840,18 @@ "concurrent_initial::reset_only_clock", "concurrent_initial::shared_clock", "concurrent_initial::simultaneous_edges" + ], + "xezim": [ + "concurrent_initial::clock_periods", + "concurrent_initial::control_flow", + "concurrent_initial::gated_drive", + "concurrent_initial::hierarchy", + "concurrent_initial::mixed_edges", + "concurrent_initial::reset", + "concurrent_initial::reset_between_edges", + "concurrent_initial::reset_only_clock", + "concurrent_initial::shared_clock", + "concurrent_initial::simultaneous_edges" ] } } diff --git a/crates/celox-test-suite/src/xezim.rs b/crates/celox-test-suite/src/xezim.rs new file mode 100644 index 00000000000..22b14fd3417 --- /dev/null +++ b/crates/celox-test-suite/src/xezim.rs @@ -0,0 +1,341 @@ +//! Independent xezim adapter, driven through its command line only. +//! Requires `xezim` and GNU `timeout` on PATH. +//! +//! xezim runs testbenches only: a generated testbench reports through its +//! stdout markers and a native testbench through its completion. The design +//! is first checked with `--compile`, so that a source rejection is told +//! apart from a run that ends in `$fatal`, and then simulated by a second +//! xezim process, which parses and elaborates it again. +use crate::frontend::{Staged, stage}; +use crate::{Backend, BigUint, Design, Result, SignalPath}; +use crate::{Frontend, TestCase}; +use std::fs::{self, File}; +use std::path::{Path, PathBuf}; +use std::process::{Command, Stdio}; + +/// The predefined macro that selects the xezim branches of a generated +/// testbench. +const DEFINE: &str = "CELOX_SUITE_XEZIM"; + +/// xezim's own time limit in nanoseconds, past every time a script can reach +/// (`RUN_UNTIL_LIMIT`), so that the testbench's deadline after `run_to_finish` +/// is the one that fires. A design still running here ends the run without +/// `$finish`, which fails. +const MAX_TIME_NS: u64 = crate::script::ast::RUN_UNTIL_LIMIT + 1; + +pub struct Xezim { + directory: PathBuf, + /// The pending run of a testbench; `None` for a design without one. + run: Option, +} + +impl Xezim { + /// Build `design`. Only a native testbench can then run; xezim has no + /// signal access here. + pub fn build(frontend: &dyn Frontend, design: &Design, directory: &Path) -> Result { + Self::build_inner(frontend, design, directory, None) + } + + /// Build a script case as a generated testbench; run it with + /// `run_testbench`. A failed assertion prints an `@suite assert` line to + /// `protocol.log`. + pub fn build_script( + frontend: &dyn Frontend, + case: &TestCase, + directory: &Path, + ) -> Result { + Self::build_inner(frontend, &case.design(), directory, Some(case.script())) + } + + fn build_inner( + frontend: &dyn Frontend, + design: &Design, + directory: &Path, + script: Option<&crate::script::ScriptCase>, + ) -> Result { + let Staged { + directory, + paths, + top, + testbench, + .. + } = stage(frontend, design, directory, script, &[DEFINE])?; + let build_log = File::create(directory.join("build.log"))?; + let status = xezim("120s") + .args(["--compile", "-D", DEFINE, "-s"]) + .arg(&top) + .args(&paths) + .stdout(Stdio::from(build_log.try_clone()?)) + .stderr(Stdio::from(build_log)) + .status()?; + if !status.success() { + let message = format!( + "xezim build {status}; see {}", + directory.join("build.log").display() + ); + let log = fs::read_to_string(directory.join("build.log")).unwrap_or_default(); + return Err(if is_source_rejection(status.code(), &log, &paths) { + Box::new(crate::CompilationRejected(message)) + } else { + message.into() + }); + } + let run = testbench.then(|| { + let mut command = xezim("60s"); + command + .args(["--error-exit", "-D", DEFINE]) + .arg("--max-time") + .arg(MAX_TIME_NS.to_string()) + .arg("-s") + .arg(&top) + .args(&paths) + .current_dir(&directory); + if !design.four_state { + // The suite's two-state storage starts at zero. xezim zeroes + // flip-flops and memories, but other variables keep X. + command + .env("XEZIM_INIT_REG", "0") + .env("XEZIM_INIT_MEM", "0"); + } + command + }); + Ok(Self { directory, run }) + } +} + +/// xezim under a wall-clock `limit`. xezim handles SIGTERM, so a run that +/// does not stop within 10 s of it is killed. xezim reads many `XEZIM_*` +/// settings from the environment; none of the caller's apply. +#[allow( + clippy::disallowed_methods, + reason = "Clears the external tool's own settings at the adapter boundary" +)] +fn xezim(limit: &str) -> Command { + let mut command = Command::new("timeout"); + command.args(["-k", "10s", limit, "xezim"]); + for (name, _) in std::env::vars_os() { + if name.to_str().is_some_and(|name| name.starts_with("XEZIM_")) { + command.env_remove(name); + } + } + command +} + +/// Whether `stdout` ends with xezim's notice of a run that ended with +/// `$finish`. xezim prints its notice last, after a partial line of the +/// design's output if there is one. +fn finished(stdout: &[u8]) -> bool { + const NOTICE: &[u8] = b"Simulation finished at time "; + let Some(text) = stdout.strip_suffix(b"\n") else { + return false; + }; + let line = text + .rsplit(|byte| *byte == b'\n') + .next() + .unwrap_or_default(); + line.windows(NOTICE.len()) + .rposition(|window| window == NOTICE) + .and_then(|at| line[at + NOTICE.len()..].strip_suffix(b" ($finish called)")) + .is_some_and(|time| !time.is_empty() && time.iter().all(u8::is_ascii_digit)) +} + +/// `stdout` without xezim's start-up banner, which is not design output. +fn without_banner(stdout: &[u8]) -> &[u8] { + let mut rest = stdout; + for prefix in [&b"=== xezim "[..], b"git "] { + match rest.iter().position(|byte| *byte == b'\n') { + Some(end) if rest.starts_with(prefix) => rest = &rest[end + 1..], + _ => break, + } + } + rest +} + +// xezim exits with status 1 for any compilation failure. It prints a parse +// diagnostic as `FILE:LINE:COLUMN: error: MESSAGE` with a source excerpt and +// an elaboration diagnostic as `error: FILE:LINE:COLUMN: MESSAGE` after its +// parse summary. Accept only the reviewed messages of the negative fixtures; +// an unknown or additional diagnostic fails closed as a build failure. +/// Whether a failed build's log shows only reviewed source diagnostics, +/// that is, a language rejection rather than a tool failure. +pub fn is_source_rejection(code: Option, log: &str, sources: &[PathBuf]) -> bool { + if code != Some(1) { + return false; + } + let mut rejected = false; + for line in log.lines().filter(|line| !line.trim().is_empty()) { + let error = match line.strip_prefix("error: ") { + Some(rest) => source_diagnostic(rest, sources), + None => source_diagnostic(line, sources) + .map(|diagnostic| diagnostic.strip_prefix("error: ").unwrap_or("")), + }; + if let Some(error) = error { + if !is_reviewed_rejection(error) { + return false; + } + rejected = true; + } else if !(is_excerpt(line) || is_file_header(line, sources) || is_parse_summary(line)) { + return false; + } + } + rejected +} + +/// The source diagnostics that establish a language rejection. +fn is_reviewed_rejection(error: &str) -> bool { + // IEEE 1800-2023 6.22.2 and 7.6: unpacked arrays of nonequivalent element + // types or different sizes. + error.starts_with("cannot assign ") + && (error.ends_with(" are not equivalent (IEEE 1800-2017 \u{a7}6.22.2, \u{a7}7.6)") + && error.contains(": element types ") + || error.contains(": the arrays have ") + && error.ends_with(" elements (IEEE 1800-2017 \u{a7}7.6)")) +} + +/// The summary xezim prints once it has parsed the sources without errors. +fn is_parse_summary(line: &str) -> bool { + line.strip_prefix("Parsed ") + .and_then(|rest| rest.split_once(" file(s): ")) + .is_some_and(|(files, rest)| { + files.parse::().is_ok() && rest.ends_with(" descriptions, 0 errors, 0 warnings") + }) +} + +fn source_diagnostic<'a>(line: &'a str, sources: &[PathBuf]) -> Option<&'a str> { + sources.iter().find_map(|source| { + let tail = line.strip_prefix(source.to_str()?)?.strip_prefix(':')?; + let (number, tail) = tail.split_once(':')?; + let (column, diagnostic) = tail.split_once(':')?; + for position in [number, column] { + position.parse::().ok().filter(|n| *n > 0)?; + } + Some(diagnostic.trim_start()) + }) +} + +/// A source excerpt line under a diagnostic: ` 12 | text` or ` | ^~~`. +fn is_excerpt(line: &str) -> bool { + let Some((number, excerpt)) = line.trim_start().split_once('|') else { + return false; + }; + let number = number.trim(); + number.parse::().is_ok_and(|n| n > 0) + || (number.is_empty() && excerpt.chars().all(|c| matches!(c, ' ' | '^' | '~'))) +} + +/// The line that introduces the diagnostics of one source file. +fn is_file_header(line: &str, sources: &[PathBuf]) -> bool { + ["Parse errors in '", "Strict check failed in '"] + .iter() + .filter_map(|prefix| line.strip_prefix(prefix)) + .any(|rest| { + sources.iter().any(|source| { + source.to_str().is_some_and(|source| { + rest.strip_prefix(source) + .and_then(|rest| rest.strip_prefix("' (file ")) + .and_then(|rest| rest.strip_suffix("):")) + .and_then(|rest| rest.split_once(" of ")) + .is_some_and(|(index, count)| { + index.parse::().is_ok() && count.parse::().is_ok() + }) + }) + }) + }) +} + +impl Backend for Xezim { + fn run_testbench(&mut self) -> Result<()> { + let mut command = self + .run + .take() + .ok_or("no pending native testbench execution")?; + let output = command + .stderr(Stdio::from(File::create( + self.directory.join("runtime.log"), + )?)) + .output()?; + let stdout = without_banner(&output.stdout); + fs::write(self.directory.join("protocol.log"), stdout)?; + // A run that ends any other way than `$finish` (the time limit, no + // further events, an internal error) fails, whatever it printed. + let finished = finished(stdout); + if !output.status.success() || !finished { + return Err(format!( + "xezim testbench failed: {}{}; see runtime.log and protocol.log", + output.status, + if finished { "" } else { ", without $finish" } + ) + .into()); + } + Ok(()) + } + fn write(&mut self, _: &SignalPath, _: BigUint, _: BigUint) -> Result<()> { + Err("the xezim adapter runs testbenches only".into()) + } + fn read(&mut self, _: &SignalPath) -> Result<(BigUint, BigUint)> { + Err("the xezim adapter runs testbenches only".into()) + } + fn eval_comb(&mut self) -> Result<()> { + Err("the xezim adapter runs testbenches only".into()) + } + fn tick(&mut self, _: &str) -> Result<()> { + Err("the xezim adapter runs testbenches only".into()) + } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn only_a_finish_ends_a_run_and_the_banner_is_not_output() { + assert!(finished( + b"Simulation finished at time 0 ($finish called)\n" + )); + assert!(finished( + b"a\npartialSimulation finished at time 1250 ($finish called)\n" + )); + assert!(!finished(b"Simulation finished at time 10\n")); + assert!(!finished( + b"Simulation finished at time ($finish called)\n" + )); + // A design that prints the notice and then runs out of events. + assert!(!finished( + b"Simulation finished at time 0 ($finish called)Simulation finished at time 0\n" + )); + assert!(!finished( + b"Simulation finished at time 0 ($finish called)\nlater\n" + )); + let stdout = b"=== xezim 0.11.3 ===\ngit 058f2bba (date)\nhi\n"; + assert_eq!(without_banner(stdout), b"hi\n"); + assert_eq!(without_banner(b"hi\n"), b"hi\n"); + } + + #[test] + fn unreviewed_diagnostics_are_not_rejections() { + let sources = [PathBuf::from("/stage/source_0.sv")]; + let log = + "/stage/source_0.sv:1:38: error: Undeclared identifier 'b'\n 1 | x\n | ^\n"; + assert!(!is_source_rejection(Some(1), log, &sources)); + assert!(!is_source_rejection(Some(124), "", &sources)); + let summary = "Parsed 1 file(s): 1 descriptions, 0 errors, 0 warnings\n"; + let reviewed = format!( + "{summary}error: /stage/source_0.sv:8:34: cannot assign logic [7:0] $[3] to 'two' of type \ + logic [7:0] $[2]: the arrays have 2 and 3 elements (IEEE 1800-2017 \u{a7}7.6)\n" + ); + assert!(is_source_rejection(Some(1), &reviewed, &sources)); + assert!(!is_source_rejection(Some(2), &reviewed, &sources)); + // A reviewed diagnostic does not cover another failure. + assert!(!is_source_rejection( + Some(1), + &format!("{reviewed}{log}"), + &sources + )); + assert!(!is_source_rejection( + Some(1), + &format!("{reviewed}thread panicked\n"), + &sources + )); + assert!(!is_source_rejection(Some(1), summary, &sources)); + } +} diff --git a/crates/celox-test-suite/tests/oracles.rs b/crates/celox-test-suite/tests/oracles.rs index c6ad24cc1e7..a7c30ab49e5 100644 --- a/crates/celox-test-suite/tests/oracles.rs +++ b/crates/celox-test-suite/tests/oracles.rs @@ -1,5 +1,10 @@ //! Live adapter checks. Run explicitly with --ignored; these require external tools. -#![cfg(any(feature = "icarus", feature = "verilator"))] +#![cfg(any(feature = "icarus", feature = "verilator", feature = "xezim"))] +// xezim runs testbenches only; the signal-access checks are not built for it. +#![cfg_attr( + not(any(feature = "icarus", feature = "verilator")), + allow(dead_code, unused_imports) +)] use celox_test_suite::{Backend, BigUint, Design, Result, SignalPath, Simulator}; use std::path::Path; @@ -299,3 +304,231 @@ fn verilator_native_testbench_outcomes() { "verilator", ); } + +/// SystemVerilog sources that are their own native testbench. +#[cfg(feature = "xezim")] +struct NativeSv; + +#[cfg(feature = "xezim")] +impl celox_test_suite::Frontend for NativeSv { + fn source_extension(&self) -> &'static str { + "sv" + } + + fn prepare(&self, design: &Design) -> Result { + Ok(celox_test_suite::PreparedDesign { + sources: design + .sources + .iter() + .map(|source| source.text.clone()) + .collect(), + top: design.top.clone(), + native_testbench: true, + edges: Default::default(), + info: None, + }) + } +} + +// The Veryl native testbenches call `CELOX_SUITE_FINISH()`, which xezim +// 0.11.3 rejects; the completion rules are checked on SystemVerilog directly. +#[cfg(feature = "xezim")] +#[test] +#[ignore = "requires xezim and timeout on PATH"] +fn xezim_native_testbench_outcomes() { + for (name, body, expected) in [ + ("pass", "$display(\"done\"); $finish;", true), + ("fatal", "$fatal(1, \"failed\"); $finish;", false), + ("error", "$error(\"failed\"); $finish;", false), + ("no_finish", "$display(\"done\");", false), + ( + "forged_completion", + "$display(\"Simulation finished at time 0 ($finish called)\");", + false, + ), + ("partial_line", "$write(\"done\"); $finish;", true), + ] { + let directory = std::env::temp_dir().join(format!( + "sv-suite-testbench-xezim-{name}-{}", + std::process::id() + )); + let mut design = Design::new( + &format!("module Top; initial begin {body} end endmodule"), + "Top", + ); + design.sources[0].path = "test.sv".into(); + let mut backend = + celox_test_suite::xezim::Xezim::build(&NativeSv, &design, &directory).unwrap(); + let result = backend.run_testbench(); + assert_eq!(result.is_ok(), expected, "xezim {name}: {result:?}"); + assert!(backend.run_testbench().is_err()); + } +} + +/// Run a SystemVerilog script case with xezim: `Ok` only when the testbench +/// finished and its checks passed. +#[cfg(feature = "xezim")] +fn xezim_script(name: &str, source: &str, script: &str) -> std::result::Result<(), String> { + // Four-state, so no storage starts at zero and every edge is the + // stimulus's own. + xezim_case(name, source, &format!("(four_state) {script}")) +} + +#[cfg(feature = "xezim")] +fn xezim_case(name: &str, source: &str, script: &str) -> std::result::Result<(), String> { + let text = format!( + "(group xezim (category sequential)) (case {name} (source \"test.sv\" #\"{source}\"#) (top Top) {script})" + ); + let case = + celox_test_suite::load_group("xezim.vtest", &text, celox_test_suite::no_std_library)[0]; + let directory = std::env::temp_dir() + .join(format!("sv-suite-xezim-{}", std::process::id())) + .join(name); + let frontend = celox_test_suite::sv::verification::SvFrontend; + let mut backend = celox_test_suite::xezim::Xezim::build_script(&frontend, case, &directory) + .map_err(|error| error.to_string())?; + let run = backend.run_testbench(); + let checks = celox_test_suite::script::sv::check_run(&directory); + // The failed assertions, as the runner reports them. + let asserts: Vec = std::fs::read_to_string(directory.join("protocol.log")) + .unwrap_or_default() + .lines() + .filter(|line| line.starts_with("@suite assert ")) + .map(str::to_owned) + .collect(); + match (run, checks) { + (Ok(()), checks) => checks, + (Err(error), checks) => Err(format!("{error}: {checks:?}: {asserts:?}")), + } +} + +/// The response to a stimulus takes an NBA update, combinational deltas, +/// a derived-clock edge with a second NBA update and `#0` resumptions, all in +/// one time slot. The program-based settle must observe all of it, at time +/// zero and later, after `run_until` and after writes at the current time. +#[cfg(feature = "xezim")] +#[test] +#[ignore = "requires xezim and timeout on PATH"] +fn xezim_settles_whole_time_slots() { + const DESIGN: &str = " + module Top(input logic clk, input logic [7:0] a, output logic [7:0] t2, output logic [7:0] o, + output logic [7:0] z, output logic [7:0] z2); + logic [7:0] r, s, t1; + logic c2; + always_ff @(posedge clk) r <= a; + assign t1 = r + 8'd1; + always_comb t2 = t1 * 8'd2; + assign c2 = t2[1]; + always_ff @(posedge c2) s <= t2; + assign o = s + 8'd1; + always @(a) begin #0 z = a; #0 z = z + 8'd1; end + initial begin z2 <= 8'd1; #0 z2 <= 8'd2; #0 z2 = z2 + 8'd5; end + endmodule"; + let mut script = String::from("(run_until 0) (assert_eq z2 2)"); + // Every write and read is at the current time: settling never advances it. + let (mut s, mut c2) = (None, None); + for (time, a) in [(0u32, 3u32), (0, 4), (5, 6), (5, 9)] { + let t2 = (2 * (a + 1)) & 0xff; + let bit = t2 >> 1 & 1; + if c2 != Some(1) && bit == 1 { + s = Some(t2); + } + c2 = Some(bit); + script.push_str(&format!( + " (run_until {time}) (modify (set clk 0) (set a {a})) (modify (set clk 1)) \ + (assert_eq t2 {t2}) (assert_eq z {})", + (a + 1) & 0xff + )); + if let Some(s) = s { + script.push_str(&format!(" (assert_eq o {})", s + 1)); + } + } + script.push_str(" (run_until 6)"); + assert_eq!(xezim_script("settle", DESIGN, &script), Ok(())); + // The checks are live: a wrong expectation fails. + assert!(xezim_script("settle_live", DESIGN, "(run_until 0) (assert_eq z2 7)").is_err()); +} + +#[cfg(feature = "xezim")] +#[test] +#[ignore = "requires xezim and timeout on PATH"] +fn xezim_early_finish_and_event_exhaustion_do_not_skip_script_checks() { + for (name, source, script) in [ + ( + "early", + "module Top(output bit done); initial #5 $finish; endmodule", + "(run_until 10) (assert_eq done 1) (run_to_finish)", + ), + ( + "finish_at_target", + "module Top(output bit done); initial #5 $finish; endmodule", + "(run_until 5) (assert_eq done 0)", + ), + ( + "finish_on_eval", + "module Top(input bit go); initial begin wait(go); $finish; end endmodule", + "(run_until 0) (set go 1) (eval) (run_to_finish)", + ), + ( + "idle", + "module Top(output bit done); initial done = 1; endmodule", + "(run_to_finish) (assert_eq done 1)", + ), + ] { + assert!( + xezim_script(name, source, script).is_err(), + "xezim accepted {name}" + ); + } + // A script can run until any time up to RUN_UNTIL_LIMIT, past xezim's + // default and any smaller --max-time. + assert_eq!( + xezim_script( + "late", + "module Top(output bit done); initial done = 1; endmodule", + "(run_until 9000000000001) (assert_eq done 1)" + ), + Ok(()) + ); + let finished = "module Top(output bit done); initial begin done = 0; #5 done = 1; #5 $finish; end endmodule"; + assert_eq!( + xezim_script( + "finished", + finished, + "(run_until 5) (assert_eq done 1) (run_to_finish) (assert_eq done 1)" + ), + Ok(()) + ); +} + +/// A two-state run starts all storage at zero, but xezim leaves variables +/// that no flip-flop or memory initialization covers at X. Reading one fails +/// the run instead of letting `!==`, conditions and `&&`/`||` decide on X. +#[cfg(feature = "xezim")] +#[test] +#[ignore = "requires xezim and timeout on PATH"] +fn xezim_two_state_runs_reject_unknown_reads() { + const DESIGN: &str = " + module Top(input logic [7:0] a, output logic [7:0] o, output logic [7:0] y); + logic [7:0] never; + assign o = never; + assign y = a; + endmodule"; + for (name, script) in [ + ("ne", "(eval) (assert (!= (get o) 0))"), + ("condition", "(eval) (if (== (get o) 0) (assert_eq y 1))"), + ("short_circuit", "(eval) (assert (|| (== (get o) 0) 1))"), + ] { + let result = xezim_case(name, DESIGN, script); + assert!( + result + .as_ref() + .is_err_and(|error| error.contains("unknown bits in a two-state run")), + "{name}: {result:?}" + ); + } + assert_eq!( + xezim_case("known", DESIGN, "(set a 5) (eval) (assert_eq y 5)"), + Ok(()) + ); +} diff --git a/crates/celox-test-suite/tests/retained_reports.rs b/crates/celox-test-suite/tests/retained_reports.rs index 15323592238..3a1eec2b769 100644 --- a/crates/celox-test-suite/tests/retained_reports.rs +++ b/crates/celox-test-suite/tests/retained_reports.rs @@ -1,5 +1,5 @@ #![cfg(feature = "external")] -use std::collections::BTreeSet; +use std::collections::{BTreeMap, BTreeSet}; const STATUSES: [&str; 9] = [ "passed", @@ -31,7 +31,11 @@ fn retained_reports_are_valid_historical_evidence_for_the_live_catalogue() { let catalogue: BTreeSet<_> = celox_test_suite::veryl::cases() .map(|case| case.name) .collect(); - for file in ["verification/verilator.json", "verification/icarus.json"] { + for file in [ + "verification/verilator.json", + "verification/icarus.json", + "verification/xezim.json", + ] { let report = celox_test_suite::verification::read_report( &std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join(file), ) @@ -126,7 +130,7 @@ fn systemverilog_retained_reports_explain_exclusions_and_executed_failures() { let catalogue: BTreeSet<_> = celox_test_suite::sv::cases() .map(|case| case.name) .collect(); - for tool in ["verilator", "icarus"] { + for tool in ["verilator", "icarus", "xezim"] { let report = celox_test_suite::verification::read_report( &std::path::Path::new(env!("CARGO_MANIFEST_DIR")) .join(format!("verification/sv/{tool}.json")), @@ -186,6 +190,23 @@ fn systemverilog_retained_reports_explain_exclusions_and_executed_failures() { ); } } + // xezim_retained_failures_match_their_review accounts for + // each one. + "mismatch" | "compile_error" | "runtime_error" | "unexpected_accept" + if tool == "xezim" => + { + assert!(!row["detail"].as_str().unwrap().is_empty(), "{name}"); + assert!(row.get("known_issue").is_none(), "{name}"); + let (phase, expectation) = match status { + "compile_error" => ("compile", celox_test_suite::Expectation::Simulation), + "unexpected_accept" => { + ("execute", celox_test_suite::Expectation::CompilationError) + } + _ => ("execute", celox_test_suite::Expectation::Simulation), + }; + assert_eq!(row["phase"], phase, "{name}"); + assert_eq!(case.expectation, expectation, "{name}"); + } "compile_error" | "mismatch" => { let (expected_status, phase, diagnostic) = match (tool, name) { ( @@ -257,3 +278,85 @@ fn partial_word_sar_discrepancy_remains_an_executed_failure() { assert!(row["detail"].as_str().unwrap().contains("assert_eq c63_64")); assert!(celox_test_suite::veryl::verification::known_issue("verilator", name).is_none()); } + +/// xezim retains its failures as executed evidence instead of exclusions. +/// Each one is reviewed against IEEE 1800-2023, and a xezim defect names the +/// reported bug it reproduces. +#[test] +fn xezim_retained_failures_match_their_review() { + let root = std::path::Path::new(env!("CARGO_MANIFEST_DIR")); + let review: serde_json::Value = serde_json::from_str( + &std::fs::read_to_string(root.join("verification/xezim-review.json")).unwrap(), + ) + .unwrap(); + let bugs = review["bugs"].as_object().unwrap(); + for bug in bugs.values() { + assert!(!bug["title"].as_str().unwrap().is_empty()); + assert!( + bug["standard"] + .as_str() + .unwrap() + .starts_with("IEEE 1800-2023 ") + ); + } + let mut cited = BTreeSet::new(); + for (suite, file) in [ + ("veryl", "verification/xezim.json"), + ("sv", "verification/sv/xezim.json"), + ] { + let report = celox_test_suite::verification::read_report(&root.join(file)).unwrap(); + let failures: BTreeMap<_, _> = report["cases"] + .as_array() + .unwrap() + .iter() + .filter(|row| { + !matches!( + row["status"].as_str(), + // The statuses check-external-suite-report.mjs counts as + // successes. + Some("passed" | "rejected" | "unsupported" | "ignored") + ) + }) + .map(|row| { + ( + row["name"].as_str().unwrap(), + row["status"].as_str().unwrap(), + ) + }) + .collect(); + let mut reviewed = BTreeMap::new(); + for case in review["cases"].as_array().unwrap() { + if case["suite"] != suite { + continue; + } + let name = case["name"].as_str().unwrap(); + assert!(!case["note"].as_str().unwrap().is_empty(), "{name}"); + let classification = case["classification"].as_str().unwrap(); + assert!( + matches!( + classification, + "xezim_bug" + | "suite_issue" + | "lrm_ambiguous" + | "lrm_permitted_race" + | "adapter_two_state_init" + | "adapter_two_state_semantics" + ), + "{name}: {classification}" + ); + let bug = case.get("bug").and_then(|bug| bug.as_str()); + assert_eq!(classification == "xezim_bug", bug.is_some(), "{name}"); + if let Some(bug) = bug { + assert!(bugs.contains_key(bug), "{name}: unknown bug {bug}"); + cited.insert(bug); + } + let status = case["status"].as_str().unwrap(); + assert!(reviewed.insert(name, status).is_none(), "duplicate {name}"); + } + assert_eq!( + failures, reviewed, + "{suite}: unreviewed or stale xezim results" + ); + } + assert_eq!(cited.len(), bugs.len(), "every listed bug has a case"); +} diff --git a/crates/celox-test-suite/tests/source_rejection.rs b/crates/celox-test-suite/tests/source_rejection.rs index 5634256a3e7..ae8653be019 100644 --- a/crates/celox-test-suite/tests/source_rejection.rs +++ b/crates/celox-test-suite/tests/source_rejection.rs @@ -1,5 +1,5 @@ //! The rejection classifiers against this suite's retained diagnostics. -#![cfg(any(feature = "verilator", feature = "icarus"))] +#![cfg(any(feature = "verilator", feature = "icarus", feature = "xezim"))] use std::path::PathBuf; /// The emitted sources a retained diagnostic names. @@ -174,3 +174,41 @@ mod verilator { assert_eq!(checked, 6); } } + +#[cfg(feature = "xezim")] +mod xezim { + use super::*; + use celox_test_suite::xezim::is_source_rejection; + + #[test] + fn retained_systemverilog_negative_diagnostics_are_source_rejections() { + let report: serde_json::Value = celox_test_suite::verification::read_report( + &std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("verification/sv/xezim.json"), + ) + .unwrap(); + let mut checked = 0; + for case in report["cases"].as_array().unwrap() { + if case["status"] != "rejected" { + continue; + } + let (status, log) = case["detail"].as_str().unwrap().split_once('\n').unwrap(); + let code = status + .strip_prefix("xezim build exit status: ") + .unwrap() + .split(';') + .next() + .unwrap() + .parse() + .unwrap(); + let sources = logged_sources(log); + assert!( + is_source_rejection(Some(code), log, &sources), + "{}", + case["name"] + ); + assert!(!is_source_rejection(Some(code), log, &["other.sv".into()])); + checked += 1; + } + assert_eq!(checked, 3); + } +} diff --git a/crates/celox-test-suite/verification/limitations/xezim.json b/crates/celox-test-suite/verification/limitations/xezim.json new file mode 100644 index 00000000000..59be8e90337 --- /dev/null +++ b/crates/celox-test-suite/verification/limitations/xezim.json @@ -0,0 +1,565 @@ +{ + "counts": { + "compile_error": 0, + "emission_error": 68, + "ignored": 0, + "mismatch": 0, + "passed": 0, + "rejected": 0, + "runtime_error": 0, + "unexpected_accept": 0, + "unsupported": 0 + }, + "include_ignored": false, + "schema_version": 2, + "scope": "Reviewed failures retained before default exclusions; a subset of the complete 785-case verification run.", + "suite_version": "0.11.0", + "tool": "xezim", + "version": "xezim version 0.11.3", + "cases": [ + { + "category": "ControlFlow", + "detail": "compile concurrent_initial::clock_periods: internal error: entered unreachable code", + "expectation": "Simulation", + "name": "concurrent_initial::clock_periods", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "ControlFlow", + "detail": "compile concurrent_initial::control_flow: internal error: entered unreachable code", + "expectation": "Simulation", + "name": "concurrent_initial::control_flow", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "ControlFlow", + "detail": "compile concurrent_initial::gated_drive: internal error: entered unreachable code", + "expectation": "Simulation", + "name": "concurrent_initial::gated_drive", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "ControlFlow", + "detail": "compile concurrent_initial::hierarchy: internal error: entered unreachable code", + "expectation": "Simulation", + "name": "concurrent_initial::hierarchy", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "ControlFlow", + "detail": "compile concurrent_initial::mixed_edges: internal error: entered unreachable code", + "expectation": "Simulation", + "name": "concurrent_initial::mixed_edges", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "ControlFlow", + "detail": "compile concurrent_initial::reset: internal error: entered unreachable code", + "expectation": "Simulation", + "name": "concurrent_initial::reset", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "ControlFlow", + "detail": "compile concurrent_initial::reset_between_edges: internal error: entered unreachable code", + "expectation": "Simulation", + "name": "concurrent_initial::reset_between_edges", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "ControlFlow", + "detail": "compile concurrent_initial::reset_only_clock: internal error: entered unreachable code", + "expectation": "Simulation", + "name": "concurrent_initial::reset_only_clock", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "ControlFlow", + "detail": "compile concurrent_initial::shared_clock: internal error: entered unreachable code", + "expectation": "Simulation", + "name": "concurrent_initial::shared_clock", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "ControlFlow", + "detail": "compile concurrent_initial::simultaneous_edges: internal error: entered unreachable code", + "expectation": "Simulation", + "name": "concurrent_initial::simultaneous_edges", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"message_value\", output: \"written\", destination: \"effect\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n ok: input logic,\\n d: input logic<8>,\\n effect: output logic<8>\\n ) {\\n function message_value (\\n x: input logic<8>,\\n written: output logic<8>\\n ) -> logic<8> {\\n written = x + 8'd1;\\n return x + 8'd2;\\n }\\n\\n always_ff (clk) {\\n $assert_continue(ok, \\\"value=%0d\\\", message_value(d, effect));\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n ok: input logic,\\n d: input logic<8>,\\n effect: output logic<8>\\n ) {\\n function message_value (\\n x: input logic<8>,\\n written: output logic<8>\\n ) -> logic<8> {\\n written = x + 8'd1;\\n return x + 8'd2;\\n }\\n\\n always_ff (clk) {\\n $assert_continue(ok, \\\"value=%0d\\\", message_value(d, effect));\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(482), length: 6 }, output_declaration: [SourceSpan { offset: SourceOffset(769), length: 7 }], token_source: File { path: PathId(1), text: TextId(66) }, instance: None }, UnassignVariable { identifier: \"effect\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n ok: input logic,\\n d: input logic<8>,\\n effect: output logic<8>\\n ) {\\n function message_value (\\n x: input logic<8>,\\n written: output logic<8>\\n ) -> logic<8> {\\n written = x + 8'd1;\\n return x + 8'd2;\\n }\\n\\n always_ff (clk) {\\n $assert_continue(ok, \\\"value=%0d\\\", message_value(d, effect));\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(124), length: 6 }, token_source: File { path: PathId(1), text: TextId(66) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_assert_message_output_argument_is_eager", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"set_sample\", output: \"written\", destination: \"samples\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n q: output logic<32>\\n ) {\\n var samples: logic<8>[2];\\n\\n function set_sample (written: output logic<8>) -> logic<32> {\\n written = 8'h5a;\\n return 0;\\n }\\n\\n function pick (\\n values: input logic<32>[2],\\n ignored: input logic<32>\\n ) -> logic<32> {\\n return values[0];\\n }\\n\\n always_ff (clk) {\\n q = pick(\\n '{$bits(samples), default: 0},\\n set_sample(samples[0])\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n q: output logic<32>\\n ) {\\n var samples: logic<8>[2];\\n\\n function set_sample (written: output logic<8>) -> logic<32> {\\n written = 8'h5a;\\n return 0;\\n }\\n\\n function pick (\\n values: input logic<32>[2],\\n ignored: input logic<32>\\n ) -> logic<32> {\\n return values[0];\\n }\\n\\n always_ff (clk) {\\n q = pick(\\n '{$bits(samples), default: 0},\\n set_sample(samples[0])\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(612), length: 10 }, output_declaration: [SourceSpan { offset: SourceOffset(840), length: 7 }], token_source: File { path: PathId(1), text: TextId(103) }, instance: None }, UnassignVariable { identifier: \"samples[32'h00000001]\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n q: output logic<32>\\n ) {\\n var samples: logic<8>[2];\\n\\n function set_sample (written: output logic<8>) -> logic<32> {\\n written = 8'h5a;\\n return 0;\\n }\\n\\n function pick (\\n values: input logic<32>[2],\\n ignored: input logic<32>\\n ) -> logic<32> {\\n return values[0];\\n }\\n\\n always_ff (clk) {\\n q = pick(\\n '{$bits(samples), default: 0},\\n set_sample(samples[0])\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(112), length: 7 }, token_source: File { path: PathId(1), text: TextId(103) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_bits_and_size_array_dependencies_do_not_alias_later_write", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"update\", output: \"written\", destination: \"samples\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n q: output logic<8>\\n ) {\\n var samples: logic<8>[2];\\n\\n function update (\\n x: input logic<8>,\\n written: output logic<8>\\n ) -> logic<8> {\\n written = x + 8'd1;\\n return x;\\n }\\n\\n function pick (\\n values: input logic<8>[2],\\n shape: input logic<32>\\n ) -> logic<8> {\\n return values[0] + shape[0];\\n }\\n\\n always_ff (clk) {\\n samples = '{8'h12, 8'h34};\\n q = pick(\\n samples,\\n $bits(update(samples[0], samples[0]))\\n + $size(update(samples[0], samples[0]))\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n q: output logic<8>\\n ) {\\n var samples: logic<8>[2];\\n\\n function update (\\n x: input logic<8>,\\n written: output logic<8>\\n ) -> logic<8> {\\n written = x + 8'd1;\\n return x;\\n }\\n\\n function pick (\\n values: input logic<8>[2],\\n shape: input logic<32>\\n ) -> logic<8> {\\n return values[0] + shape[0];\\n }\\n\\n always_ff (clk) {\\n samples = '{8'h12, 8'h34};\\n q = pick(\\n samples,\\n $bits(update(samples[0], samples[0]))\\n + $size(update(samples[0], samples[0]))\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(716), length: 10 }, output_declaration: [SourceSpan { offset: SourceOffset(1056), length: 7 }], token_source: File { path: PathId(1), text: TextId(74) }, instance: None }, FunctionOutputInAlwaysFf { function: \"update\", output: \"written\", destination: \"samples\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n q: output logic<8>\\n ) {\\n var samples: logic<8>[2];\\n\\n function update (\\n x: input logic<8>,\\n written: output logic<8>\\n ) -> logic<8> {\\n written = x + 8'd1;\\n return x;\\n }\\n\\n function pick (\\n values: input logic<8>[2],\\n shape: input logic<32>\\n ) -> logic<8> {\\n return values[0] + shape[0];\\n }\\n\\n always_ff (clk) {\\n samples = '{8'h12, 8'h34};\\n q = pick(\\n samples,\\n $bits(update(samples[0], samples[0]))\\n + $size(update(samples[0], samples[0]))\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n q: output logic<8>\\n ) {\\n var samples: logic<8>[2];\\n\\n function update (\\n x: input logic<8>,\\n written: output logic<8>\\n ) -> logic<8> {\\n written = x + 8'd1;\\n return x;\\n }\\n\\n function pick (\\n values: input logic<8>[2],\\n shape: input logic<32>\\n ) -> logic<8> {\\n return values[0] + shape[0];\\n }\\n\\n always_ff (clk) {\\n samples = '{8'h12, 8'h34};\\n q = pick(\\n samples,\\n $bits(update(samples[0], samples[0]))\\n + $size(update(samples[0], samples[0]))\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(780), length: 10 }, output_declaration: [SourceSpan { offset: SourceOffset(1056), length: 7 }], token_source: File { path: PathId(1), text: TextId(74) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_bits_and_size_operands_do_not_alias_earlier_array_argument", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [InvalidForRange { kind: NegativeBound, help: \"for-loop range bounds are elaborated as unsigned; rewrite the range to start at 0 and offset inside the body\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n q_fwd: output logic<32>,\\n q_rev_last: output logic<32>\\n ) {\\n always_ff (clk) {\\n q_fwd = 0;\\n for i in (0 - 1)..=1 {\\n q_fwd += i as 32;\\n }\\n\\n q_rev_last = 32'hdead_beef;\\n for i in rev (0 - 1)..=1 {\\n q_rev_last = (i + 1) as 32;\\n }\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(224), length: 11 }, token_source: File { path: PathId(1), text: TextId(35) }, instance: None }, InvalidForRange { kind: NegativeBound, help: \"for-loop range bounds are elaborated as unsigned; rewrite the range to start at 0 and offset inside the body\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n q_fwd: output logic<32>,\\n q_rev_last: output logic<32>\\n ) {\\n always_ff (clk) {\\n q_fwd = 0;\\n for i in (0 - 1)..=1 {\\n q_fwd += i as 32;\\n }\\n\\n q_rev_last = 32'hdead_beef;\\n for i in rev (0 - 1)..=1 {\\n q_rev_last = (i + 1) as 32;\\n }\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(368), length: 11 }, token_source: File { path: PathId(1), text: TextId(35) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_constant_signed_bounds_in_unrolled_loops", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [SideEffectFunctionCallInAlwaysFf { identifier: \"write_at\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n index: input logic<3>,\\n global_value: output logic<8>\\n ) {\\n function write_at (index: input logic<3>) {\\n global_value = 8'hff;\\n global_value[index] = 1'b0;\\n }\\n\\n always_ff (clk) {\\n write_at(index);\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n index: input logic<3>,\\n global_value: output logic<8>\\n ) {\\n function write_at (index: input logic<3>) {\\n global_value = 8'hff;\\n global_value[index] = 1'b0;\\n }\\n\\n always_ff (clk) {\\n write_at(index);\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(340), length: 16 }, call_stack: [], external_writes: [SourceSpan { offset: SourceOffset(599), length: 12 }], function_definition: [], token_source: File { path: PathId(1), text: TextId(72) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_dynamic_nonlocal_store_follows_pending_whole_write", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"make\", output: \"written\", destination: \"effect\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n effect: output logic<8>,\\n q: output logic<8>\\n ) {\\n function make (written: output logic<8>) -> logic<8> {\\n written = 8'h5a;\\n return 8'h11;\\n }\\n\\n function pick (\\n values: input logic<8>[1],\\n written: output logic<8>\\n ) -> logic<8> {\\n written = 8'ha5;\\n return values[0];\\n }\\n\\n always_ff (clk) {\\n q = pick('{make(effect)}, effect);\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n effect: output logic<8>,\\n q: output logic<8>\\n ) {\\n function make (written: output logic<8>) -> logic<8> {\\n written = 8'h5a;\\n return 8'h11;\\n }\\n\\n function pick (\\n values: input logic<8>[1],\\n written: output logic<8>\\n ) -> logic<8> {\\n written = 8'ha5;\\n return values[0];\\n }\\n\\n always_ff (clk) {\\n q = pick('{make(effect)}, effect);\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(561), length: 6 }, output_declaration: [SourceSpan { offset: SourceOffset(768), length: 7 }], token_source: File { path: PathId(1), text: TextId(75) }, instance: None }, FunctionOutputInAlwaysFf { function: \"pick\", output: \"written\", destination: \"effect\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n effect: output logic<8>,\\n q: output logic<8>\\n ) {\\n function make (written: output logic<8>) -> logic<8> {\\n written = 8'h5a;\\n return 8'h11;\\n }\\n\\n function pick (\\n values: input logic<8>[1],\\n written: output logic<8>\\n ) -> logic<8> {\\n written = 8'ha5;\\n return values[0];\\n }\\n\\n always_ff (clk) {\\n q = pick('{make(effect)}, effect);\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n effect: output logic<8>,\\n q: output logic<8>\\n ) {\\n function make (written: output logic<8>) -> logic<8> {\\n written = 8'h5a;\\n return 8'h11;\\n }\\n\\n function pick (\\n values: input logic<8>[1],\\n written: output logic<8>\\n ) -> logic<8> {\\n written = 8'ha5;\\n return values[0];\\n }\\n\\n always_ff (clk) {\\n q = pick('{make(effect)}, effect);\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(571), length: 6 }, output_declaration: [SourceSpan { offset: SourceOffset(973), length: 7 }], token_source: File { path: PathId(1), text: TextId(75) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_effectful_array_item_output_is_not_a_read_alias", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"pick_then_first\", output: \"first\", destination: \"first\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n in0: input logic<8>,\\n out_q: output logic<8>\\n ) {\\n function pick_then_first (\\n x: input logic<8>[2],\\n index: input logic,\\n guard: input logic,\\n first: output logic<8>\\n ) -> logic<8> {\\n first = if guard ? x[index] : 8'h00;\\n return x[0];\\n }\\n var first: logic<8>;\\n always_ff (clk) {\\n out_q = pick_then_first(\\n '{in0, default: 8'h00},\\n 0,\\n guard,\\n first\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n in0: input logic<8>,\\n out_q: output logic<8>\\n ) {\\n function pick_then_first (\\n x: input logic<8>[2],\\n index: input logic,\\n guard: input logic,\\n first: output logic<8>\\n ) -> logic<8> {\\n first = if guard ? x[index] : 8'h00;\\n return x[0];\\n }\\n var first: logic<8>;\\n always_ff (clk) {\\n out_q = pick_then_first(\\n '{in0, default: 8'h00},\\n 0,\\n guard,\\n first\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(694), length: 5 }, output_declaration: [SourceSpan { offset: SourceOffset(1077), length: 5 }], token_source: File { path: PathId(1), text: TextId(132) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_array_literal_branch_view_is_reused_after_merge", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"observe\", output: \"side\", destination: \"and_side\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n in0: input logic<8>,\\n out_and: output logic,\\n out_or: output logic,\\n and_side: output logic<8>,\\n or_side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function pick_and (\\n x: input logic<8>[2],\\n index: input logic,\\n guard: input logic\\n ) -> logic {\\n return guard && x[index] != 0;\\n }\\n function pick_or (\\n x: input logic<8>[2],\\n index: input logic,\\n guard: input logic\\n ) -> logic {\\n return guard || x[index] != 0;\\n }\\n always_ff (clk) {\\n and_side = 0;\\n or_side = 0;\\n out_and = pick_and(\\n '{observe(in0, and_side), default: 8'h00},\\n 0,\\n guard\\n );\\n out_or = pick_or(\\n '{observe(in0, or_side), default: 8'h00},\\n 0,\\n guard\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n in0: input logic<8>,\\n out_and: output logic,\\n out_or: output logic,\\n and_side: output logic<8>,\\n or_side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function pick_and (\\n x: input logic<8>[2],\\n index: input logic,\\n guard: input logic\\n ) -> logic {\\n return guard && x[index] != 0;\\n }\\n function pick_or (\\n x: input logic<8>[2],\\n index: input logic,\\n guard: input logic\\n ) -> logic {\\n return guard || x[index] != 0;\\n }\\n always_ff (clk) {\\n and_side = 0;\\n or_side = 0;\\n out_and = pick_and(\\n '{observe(in0, and_side), default: 8'h00},\\n 0,\\n guard\\n );\\n out_or = pick_or(\\n '{observe(in0, or_side), default: 8'h00},\\n 0,\\n guard\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(1085), length: 8 }, output_declaration: [SourceSpan { offset: SourceOffset(1730), length: 4 }], token_source: File { path: PathId(1), text: TextId(129) }, instance: None }, FunctionOutputInAlwaysFf { function: \"observe\", output: \"side\", destination: \"or_side\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n in0: input logic<8>,\\n out_and: output logic,\\n out_or: output logic,\\n and_side: output logic<8>,\\n or_side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function pick_and (\\n x: input logic<8>[2],\\n index: input logic,\\n guard: input logic\\n ) -> logic {\\n return guard && x[index] != 0;\\n }\\n function pick_or (\\n x: input logic<8>[2],\\n index: input logic,\\n guard: input logic\\n ) -> logic {\\n return guard || x[index] != 0;\\n }\\n always_ff (clk) {\\n and_side = 0;\\n or_side = 0;\\n out_and = pick_and(\\n '{observe(in0, and_side), default: 8'h00},\\n 0,\\n guard\\n );\\n out_or = pick_or(\\n '{observe(in0, or_side), default: 8'h00},\\n 0,\\n guard\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n in0: input logic<8>,\\n out_and: output logic,\\n out_or: output logic,\\n and_side: output logic<8>,\\n or_side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function pick_and (\\n x: input logic<8>[2],\\n index: input logic,\\n guard: input logic\\n ) -> logic {\\n return guard && x[index] != 0;\\n }\\n function pick_or (\\n x: input logic<8>[2],\\n index: input logic,\\n guard: input logic\\n ) -> logic {\\n return guard || x[index] != 0;\\n }\\n always_ff (clk) {\\n and_side = 0;\\n or_side = 0;\\n out_and = pick_and(\\n '{observe(in0, and_side), default: 8'h00},\\n 0,\\n guard\\n );\\n out_or = pick_or(\\n '{observe(in0, or_side), default: 8'h00},\\n 0,\\n guard\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(1250), length: 7 }, output_declaration: [SourceSpan { offset: SourceOffset(1730), length: 4 }], token_source: File { path: PathId(1), text: TextId(129) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_array_literal_effect_is_eager_in_short_circuit_rhs", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"observe\", output: \"side\", destination: \"side\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n in0: input logic<8>,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function pick_if (\\n x: input logic<8>[2],\\n index: input logic,\\n guard: input logic\\n ) -> logic<8> {\\n return if guard ? x[index] : 8'h00;\\n }\\n always_ff (clk) {\\n out_q = pick_if(\\n '{observe(in0, side), default: 8'h00},\\n 0,\\n guard\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n in0: input logic<8>,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function pick_if (\\n x: input logic<8>[2],\\n index: input logic,\\n guard: input logic\\n ) -> logic<8> {\\n return if guard ? x[index] : 8'h00;\\n }\\n always_ff (clk) {\\n out_q = pick_if(\\n '{observe(in0, side), default: 8'h00},\\n 0,\\n guard\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(729), length: 4 }, output_declaration: [SourceSpan { offset: SourceOffset(1131), length: 4 }], token_source: File { path: PathId(1), text: TextId(128) }, instance: None }, UnassignVariable { identifier: \"side\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n in0: input logic<8>,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function pick_if (\\n x: input logic<8>[2],\\n index: input logic,\\n guard: input logic\\n ) -> logic<8> {\\n return if guard ? x[index] : 8'h00;\\n }\\n always_ff (clk) {\\n out_q = pick_if(\\n '{observe(in0, side), default: 8'h00},\\n 0,\\n guard\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(165), length: 4 }, token_source: File { path: PathId(1), text: TextId(128) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_array_literal_effect_is_eager_in_ternary_arm", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [SideEffectFunctionCallInAlwaysFf { identifier: \"pick\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n global_value: output logic<8>,\\n out_q: output logic<8>\\n ) {\\n function mutate_global () -> logic {\\n global_value = 8'd9;\\n return 1'b0;\\n }\\n\\n function pick (values: input logic<8>[2]) -> logic<8> {\\n var ignored: logic;\\n ignored = mutate_global();\\n return values[0];\\n }\\n\\n always_ff (clk) {\\n out_q = pick('{global_value, default: 8'h00});\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n global_value: output logic<8>,\\n out_q: output logic<8>\\n ) {\\n function mutate_global () -> logic {\\n global_value = 8'd9;\\n return 1'b0;\\n }\\n\\n function pick (values: input logic<8>[2]) -> logic<8> {\\n var ignored: logic;\\n ignored = mutate_global();\\n return values[0];\\n }\\n\\n always_ff (clk) {\\n out_q = pick('{global_value, default: 8'h00});\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n global_value: output logic<8>,\\n out_q: output logic<8>\\n ) {\\n function mutate_global () -> logic {\\n global_value = 8'd9;\\n return 1'b0;\\n }\\n\\n function pick (values: input logic<8>[2]) -> logic<8> {\\n var ignored: logic;\\n ignored = mutate_global();\\n return values[0];\\n }\\n\\n always_ff (clk) {\\n out_q = pick('{global_value, default: 8'h00});\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(522), length: 37 }, call_stack: [SourceSpan { offset: SourceOffset(992), length: 15 }], external_writes: [SourceSpan { offset: SourceOffset(1387), length: 12 }], function_definition: [], token_source: File { path: PathId(1), text: TextId(100) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_array_literal_snapshots_scalar_before_callee_write", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"update\", output: \"written\", destination: \"changing\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n changing: output logic<8>,\\n out_q: output logic<8>\\n ) {\\n function pick (\\n values: input logic<8>[2],\\n ignored: input logic<8>\\n ) -> logic<8> {\\n return values[0];\\n }\\n\\n function update (\\n value: input logic<8>,\\n written: output logic<8>\\n ) -> logic<8> {\\n written = value + 8'd1;\\n return 8'h00;\\n }\\n\\n always_ff (clk) {\\n out_q = pick('{changing, default: 8'h00}, update(changing, changing));\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n changing: output logic<8>,\\n out_q: output logic<8>\\n ) {\\n function pick (\\n values: input logic<8>[2],\\n ignored: input logic<8>\\n ) -> logic<8> {\\n return values[0];\\n }\\n\\n function update (\\n value: input logic<8>,\\n written: output logic<8>\\n ) -> logic<8> {\\n written = value + 8'd1;\\n return 8'h00;\\n }\\n\\n always_ff (clk) {\\n out_q = pick('{changing, default: 8'h00}, update(changing, changing));\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(654), length: 8 }, output_declaration: [SourceSpan { offset: SourceOffset(1106), length: 7 }], token_source: File { path: PathId(1), text: TextId(131) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_array_literal_snapshots_scalar_before_later_write", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"observe\", output: \"side\", destination: \"side\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function ordered (\\n x: input logic<8>[2],\\n index: input logic,\\n left: input logic<8>\\n ) -> logic<8> {\\n return left + x[index];\\n }\\n always_ff (clk) {\\n out_q = ordered(\\n '{observe(8'h22, side), default: 8'h00},\\n 0,\\n observe(8'h11, side)\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function ordered (\\n x: input logic<8>[2],\\n index: input logic,\\n left: input logic<8>\\n ) -> logic<8> {\\n return left + x[index];\\n }\\n always_ff (clk) {\\n out_q = ordered(\\n '{observe(8'h22, side), default: 8'h00},\\n 0,\\n observe(8'h11, side)\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(656), length: 4 }, output_declaration: [SourceSpan { offset: SourceOffset(1008), length: 4 }], token_source: File { path: PathId(1), text: TextId(130) }, instance: None }, FunctionOutputInAlwaysFf { function: \"observe\", output: \"side\", destination: \"side\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function ordered (\\n x: input logic<8>[2],\\n index: input logic,\\n left: input logic<8>\\n ) -> logic<8> {\\n return left + x[index];\\n }\\n always_ff (clk) {\\n out_q = ordered(\\n '{observe(8'h22, side), default: 8'h00},\\n 0,\\n observe(8'h11, side)\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function ordered (\\n x: input logic<8>[2],\\n index: input logic,\\n left: input logic<8>\\n ) -> logic<8> {\\n return left + x[index];\\n }\\n always_ff (clk) {\\n out_q = ordered(\\n '{observe(8'h22, side), default: 8'h00},\\n 0,\\n observe(8'h11, side)\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(738), length: 4 }, output_declaration: [SourceSpan { offset: SourceOffset(1008), length: 4 }], token_source: File { path: PathId(1), text: TextId(130) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_array_literal_view_preserves_expression_order", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"observe\", output: \"side\", destination: \"side\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n index: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function pick (x: input logic<8>[2], index: input logic) -> logic<8> {\\n return x[index];\\n }\\n always_ff (clk) {\\n out_q = pick(\\n '{default: observe(8'h11, side), observe(8'h22, side)},\\n index\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n index: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function pick (x: input logic<8>[2], index: input logic) -> logic<8> {\\n return x[index];\\n }\\n always_ff (clk) {\\n out_q = pick(\\n '{default: observe(8'h11, side), observe(8'h22, side)},\\n index\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(600), length: 4 }, output_declaration: [SourceSpan { offset: SourceOffset(952), length: 4 }], token_source: File { path: PathId(1), text: TextId(110) }, instance: None }, FunctionOutputInAlwaysFf { function: \"observe\", output: \"side\", destination: \"side\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n index: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function pick (x: input logic<8>[2], index: input logic) -> logic<8> {\\n return x[index];\\n }\\n always_ff (clk) {\\n out_q = pick(\\n '{default: observe(8'h11, side), observe(8'h22, side)},\\n index\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n index: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function pick (x: input logic<8>[2], index: input logic) -> logic<8> {\\n return x[index];\\n }\\n always_ff (clk) {\\n out_q = pick(\\n '{default: observe(8'h11, side), observe(8'h22, side)},\\n index\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(622), length: 4 }, output_declaration: [SourceSpan { offset: SourceOffset(952), length: 4 }], token_source: File { path: PathId(1), text: TextId(110) }, instance: None }, UnassignVariable { identifier: \"side\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n index: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function pick (x: input logic<8>[2], index: input logic) -> logic<8> {\\n return x[index];\\n }\\n always_ff (clk) {\\n out_q = pick(\\n '{default: observe(8'h11, side), observe(8'h22, side)},\\n index\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(132), length: 4 }, token_source: File { path: PathId(1), text: TextId(110) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_array_literal_view_preserves_source_order", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"observe\", output: \"side\", destination: \"bits_side\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n in0: input logic<8>,\\n out_bits: output logic<32>,\\n out_size: output logic<32>,\\n bits_side: output logic<8>,\\n size_side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function array_bits (x: input logic<8>[2]) -> logic<32> {\\n return $bits(x);\\n }\\n function array_size (x: input logic<8>[2]) -> logic<32> {\\n return $size(x);\\n }\\n always_ff (clk) {\\n out_bits = array_bits('{observe(in0, bits_side), default: 0});\\n out_size = array_size('{observe(in0, size_side), default: 0});\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n in0: input logic<8>,\\n out_bits: output logic<32>,\\n out_size: output logic<32>,\\n bits_side: output logic<8>,\\n size_side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function array_bits (x: input logic<8>[2]) -> logic<32> {\\n return $bits(x);\\n }\\n function array_size (x: input logic<8>[2]) -> logic<32> {\\n return $size(x);\\n }\\n always_ff (clk) {\\n out_bits = array_bits('{observe(in0, bits_side), default: 0});\\n out_size = array_size('{observe(in0, size_side), default: 0});\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(771), length: 9 }, output_declaration: [SourceSpan { offset: SourceOffset(1243), length: 4 }], token_source: File { path: PathId(1), text: TextId(140) }, instance: None }, FunctionOutputInAlwaysFf { function: \"observe\", output: \"side\", destination: \"size_side\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n in0: input logic<8>,\\n out_bits: output logic<32>,\\n out_size: output logic<32>,\\n bits_side: output logic<8>,\\n size_side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function array_bits (x: input logic<8>[2]) -> logic<32> {\\n return $bits(x);\\n }\\n function array_size (x: input logic<8>[2]) -> logic<32> {\\n return $size(x);\\n }\\n always_ff (clk) {\\n out_bits = array_bits('{observe(in0, bits_side), default: 0});\\n out_size = array_size('{observe(in0, size_side), default: 0});\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n in0: input logic<8>,\\n out_bits: output logic<32>,\\n out_size: output logic<32>,\\n bits_side: output logic<8>,\\n size_side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function array_bits (x: input logic<8>[2]) -> logic<32> {\\n return $bits(x);\\n }\\n function array_size (x: input logic<8>[2]) -> logic<32> {\\n return $size(x);\\n }\\n always_ff (clk) {\\n out_bits = array_bits('{observe(in0, bits_side), default: 0});\\n out_size = array_size('{observe(in0, size_side), default: 0});\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(850), length: 9 }, output_declaration: [SourceSpan { offset: SourceOffset(1243), length: 4 }], token_source: File { path: PathId(1), text: TextId(140) }, instance: None }, UnassignVariable { identifier: \"bits_side\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n in0: input logic<8>,\\n out_bits: output logic<32>,\\n out_size: output logic<32>,\\n bits_side: output logic<8>,\\n size_side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function array_bits (x: input logic<8>[2]) -> logic<32> {\\n return $bits(x);\\n }\\n function array_size (x: input logic<8>[2]) -> logic<32> {\\n return $size(x);\\n }\\n always_ff (clk) {\\n out_bits = array_bits('{observe(in0, bits_side), default: 0});\\n out_size = array_size('{observe(in0, size_side), default: 0});\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(177), length: 9 }, token_source: File { path: PathId(1), text: TextId(140) }, instance: None }, UnassignVariable { identifier: \"size_side\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n in0: input logic<8>,\\n out_bits: output logic<32>,\\n out_size: output logic<32>,\\n bits_side: output logic<8>,\\n size_side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function array_bits (x: input logic<8>[2]) -> logic<32> {\\n return $bits(x);\\n }\\n function array_size (x: input logic<8>[2]) -> logic<32> {\\n return $size(x);\\n }\\n always_ff (clk) {\\n out_bits = array_bits('{observe(in0, bits_side), default: 0});\\n out_size = array_size('{observe(in0, size_side), default: 0});\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(217), length: 9 }, token_source: File { path: PathId(1), text: TextId(140) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_bits_and_size_evaluate_effectful_array_argument", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"observe\", output: \"side\", destination: \"side\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function branch_then_static (\\n x: input logic<8>[2],\\n guard: input logic,\\n first: output logic<8>\\n ) -> logic<8> {\\n first = if guard ? x[0] : 8'h00;\\n return x[0];\\n }\\n var first: logic<8>;\\n always_ff (clk) {\\n side = 0;\\n out_q = branch_then_static(\\n '{observe(side + 1, side), default: 8'h00},\\n guard,\\n first\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function branch_then_static (\\n x: input logic<8>[2],\\n guard: input logic,\\n first: output logic<8>\\n ) -> logic<8> {\\n first = if guard ? x[0] : 8'h00;\\n return x[0];\\n }\\n var first: logic<8>;\\n always_ff (clk) {\\n side = 0;\\n out_q = branch_then_static(\\n '{observe(side + 1, side), default: 8'h00},\\n guard,\\n first\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(812), length: 4 }, output_declaration: [SourceSpan { offset: SourceOffset(1185), length: 4 }], token_source: File { path: PathId(1), text: TextId(133) }, instance: None }, FunctionOutputInAlwaysFf { function: \"branch_then_static\", output: \"first\", destination: \"first\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function branch_then_static (\\n x: input logic<8>[2],\\n guard: input logic,\\n first: output logic<8>\\n ) -> logic<8> {\\n first = if guard ? x[0] : 8'h00;\\n return x[0];\\n }\\n var first: logic<8>;\\n always_ff (clk) {\\n side = 0;\\n out_q = branch_then_static(\\n '{observe(side + 1, side), default: 8'h00},\\n guard,\\n first\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function branch_then_static (\\n x: input logic<8>[2],\\n guard: input logic,\\n first: output logic<8>\\n ) -> logic<8> {\\n first = if guard ? x[0] : 8'h00;\\n return x[0];\\n }\\n var first: logic<8>;\\n always_ff (clk) {\\n side = 0;\\n out_q = branch_then_static(\\n '{observe(side + 1, side), default: 8'h00},\\n guard,\\n first\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(883), length: 5 }, output_declaration: [SourceSpan { offset: SourceOffset(1433), length: 5 }], token_source: File { path: PathId(1), text: TextId(133) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_carries_branch_local_static_array_item_cache", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"observe\", output: \"side\", destination: \"side0\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side0: output logic<8>,\\n side1: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function static_then_dynamic (\\n x: input logic<8>[2],\\n index: input logic,\\n guard: input logic,\\n first: output logic<8>\\n ) -> logic<8> {\\n first = x[0];\\n return if guard ? x[index] : 8'h00;\\n }\\n var first: logic<8>;\\n always_ff (clk) {\\n side0 = 0;\\n side1 = 0;\\n out_q = static_then_dynamic(\\n '{observe(8'h11, side0), observe(8'h22, side1)},\\n 1,\\n guard,\\n first\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side0: output logic<8>,\\n side1: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function static_then_dynamic (\\n x: input logic<8>[2],\\n index: input logic,\\n guard: input logic,\\n first: output logic<8>\\n ) -> logic<8> {\\n first = x[0];\\n return if guard ? x[index] : 8'h00;\\n }\\n var first: logic<8>;\\n always_ff (clk) {\\n side0 = 0;\\n side1 = 0;\\n out_q = static_then_dynamic(\\n '{observe(8'h11, side0), observe(8'h22, side1)},\\n 1,\\n guard,\\n first\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(916), length: 5 }, output_declaration: [SourceSpan { offset: SourceOffset(1357), length: 4 }], token_source: File { path: PathId(1), text: TextId(101) }, instance: None }, FunctionOutputInAlwaysFf { function: \"observe\", output: \"side\", destination: \"side1\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side0: output logic<8>,\\n side1: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function static_then_dynamic (\\n x: input logic<8>[2],\\n index: input logic,\\n guard: input logic,\\n first: output logic<8>\\n ) -> logic<8> {\\n first = x[0];\\n return if guard ? x[index] : 8'h00;\\n }\\n var first: logic<8>;\\n always_ff (clk) {\\n side0 = 0;\\n side1 = 0;\\n out_q = static_then_dynamic(\\n '{observe(8'h11, side0), observe(8'h22, side1)},\\n 1,\\n guard,\\n first\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side0: output logic<8>,\\n side1: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function static_then_dynamic (\\n x: input logic<8>[2],\\n index: input logic,\\n guard: input logic,\\n first: output logic<8>\\n ) -> logic<8> {\\n first = x[0];\\n return if guard ? x[index] : 8'h00;\\n }\\n var first: logic<8>;\\n always_ff (clk) {\\n side0 = 0;\\n side1 = 0;\\n out_q = static_then_dynamic(\\n '{observe(8'h11, side0), observe(8'h22, side1)},\\n 1,\\n guard,\\n first\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(939), length: 5 }, output_declaration: [SourceSpan { offset: SourceOffset(1357), length: 4 }], token_source: File { path: PathId(1), text: TextId(101) }, instance: None }, FunctionOutputInAlwaysFf { function: \"static_then_dynamic\", output: \"first\", destination: \"first\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side0: output logic<8>,\\n side1: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function static_then_dynamic (\\n x: input logic<8>[2],\\n index: input logic,\\n guard: input logic,\\n first: output logic<8>\\n ) -> logic<8> {\\n first = x[0];\\n return if guard ? x[index] : 8'h00;\\n }\\n var first: logic<8>;\\n always_ff (clk) {\\n side0 = 0;\\n side1 = 0;\\n out_q = static_then_dynamic(\\n '{observe(8'h11, side0), observe(8'h22, side1)},\\n 1,\\n guard,\\n first\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side0: output logic<8>,\\n side1: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function static_then_dynamic (\\n x: input logic<8>[2],\\n index: input logic,\\n guard: input logic,\\n first: output logic<8>\\n ) -> logic<8> {\\n first = x[0];\\n return if guard ? x[index] : 8'h00;\\n }\\n var first: logic<8>;\\n always_ff (clk) {\\n side0 = 0;\\n side1 = 0;\\n out_q = static_then_dynamic(\\n '{observe(8'h11, side0), observe(8'h22, side1)},\\n 1,\\n guard,\\n first\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(1018), length: 5 }, output_declaration: [SourceSpan { offset: SourceOffset(1642), length: 5 }], token_sou", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_effectful_array_items_are_eager_before_conditional_access", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"f\", output: \"y\", destination: \"tmp\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (clk: input clock, in_a: input logic<8>, out_q1: output logic<8>, out_q2: output logic<8>) {\\n function f (x: input logic<8>, y: output logic<8>) -> logic<8> {\\n y = x + 5;\\n return x + 6;\\n }\\n var tmp: logic<8>;\\n always_ff (clk) {\\n out_q1 = f(in_a, tmp) + 1;\\n out_q2 = tmp + 1;\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (clk: input clock, in_a: input logic<8>, out_q1: output logic<8>, out_q2: output logic<8>) {\\n function f (x: input logic<8>, y: output logic<8>) -> logic<8> {\\n y = x + 5;\\n return x + 6;\\n }\\n var tmp: logic<8>;\\n always_ff (clk) {\\n out_q1 = f(in_a, tmp) + 1;\\n out_q2 = tmp + 1;\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(355), length: 3 }, output_declaration: [SourceSpan { offset: SourceOffset(584), length: 1 }], token_source: File { path: PathId(1), text: TextId(90) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_expression_with_output_argument_and_return_value", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"pick\", output: \"selected\", destination: \"inner_selected\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n out_q: output logic<8>\\n ) {\\n function pick (\\n x: input logic<8>[2],\\n index: input logic,\\n selected: output logic<8>\\n ) -> logic<8> {\\n selected = x[index];\\n return x[0];\\n }\\n var selected: logic<8>[2];\\n var inner_selected: logic<8>;\\n always_ff (clk) {\\n out_q = pick(\\n '{8'h11, 8'h22},\\n 1,\\n selected[pick('{8'h01, 8'h00}, 0, inner_selected)]\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n out_q: output logic<8>\\n ) {\\n function pick (\\n x: input logic<8>[2],\\n index: input logic,\\n selected: output logic<8>\\n ) -> logic<8> {\\n selected = x[index];\\n return x[0];\\n }\\n var selected: logic<8>[2];\\n var inner_selected: logic<8>;\\n always_ff (clk) {\\n out_q = pick(\\n '{8'h11, 8'h22},\\n 1,\\n selected[pick('{8'h01, 8'h00}, 0, inner_selected)]\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(606), length: 14 }, output_declaration: [SourceSpan { offset: SourceOffset(888), length: 8 }], token_source: File { path: PathId(1), text: TextId(138) }, instance: None }, FunctionOutputInAlwaysFf { function: \"pick\", output: \"selected\", destination: \"selected\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n out_q: output logic<8>\\n ) {\\n function pick (\\n x: input logic<8>[2],\\n index: input logic,\\n selected: output logic<8>\\n ) -> logic<8> {\\n selected = x[index];\\n return x[0];\\n }\\n var selected: logic<8>[2];\\n var inner_selected: logic<8>;\\n always_ff (clk) {\\n out_q = pick(\\n '{8'h11, 8'h22},\\n 1,\\n selected[pick('{8'h01, 8'h00}, 0, inner_selected)]\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n out_q: output logic<8>\\n ) {\\n function pick (\\n x: input logic<8>[2],\\n index: input logic,\\n selected: output logic<8>\\n ) -> logic<8> {\\n selected = x[index];\\n return x[0];\\n }\\n var selected: logic<8>[2];\\n var inner_selected: logic<8>;\\n always_ff (clk) {\\n out_q = pick(\\n '{8'h11, 8'h22},\\n 1,\\n selected[pick('{8'h01, 8'h00}, 0, inner_selected)]\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(572), length: 50 }, output_declaration: [SourceSpan { offset: SourceOffset(888), length: 8 }], token_source: File { path: PathId(1), text: TextId(138) }, instance: None }, UnassignVariable { identifier: \"selected[32'h00000000]\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n out_q: output logic<8>\\n ) {\\n function pick (\\n x: input logic<8>[2],\\n index: input logic,\\n selected: output logic<8>\\n ) -> logic<8> {\\n selected = x[index];\\n return x[0];\\n }\\n var selected: logic<8>[2];\\n var inner_selected: logic<8>;\\n always_ff (clk) {\\n out_q = pick(\\n '{8'h11, 8'h22},\\n 1,\\n selected[pick('{8'h01, 8'h00}, 0, inner_selected)]\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(367), length: 8 }, token_source: File { path: PathId(1), text: TextId(138) }, instance: None }, UnassignVariable { identifier: \"selected[32'h00000001]\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n out_q: output logic<8>\\n ) {\\n function pick (\\n x: input logic<8>[2],\\n index: input logic,\\n selected: output logic<8>\\n ) -> logic<8> {\\n selected = x[index];\\n return x[0];\\n }\\n var selected: logic<8>[2];\\n var inner_selected: logic<8>;\\n always_ff (clk) {\\n out_q = pick(\\n '{8'h11, 8'h22},\\n 1,\\n selected[pick('{8'h01, 8'h00}, 0, inner_selected)]\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(367), length: 8 }, token_source: File { path: PathId(1), text: TextId(138) }, instance: None }, UnassignVariable { identifier: \"inner_selected\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n out_q: output logic<8>\\n ) {\\n function pick (\\n x: input logic<8>[2],\\n index: input logic,\\n selected: output logic<8>\\n ) -> logic<8> {\\n selected = x[index];\\n return x[0];\\n }\\n var selected: logic<8>[2];\\n var inner_selected: logic<8>;\\n always_ff (clk) {\\n out_q = pick(\\n '{8'h11, 8'h22},\\n 1,\\n selected[pick('{8'h01, 8'h00}, 0, inner_selected)]\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(406), length: 14 }, token_source: File { path: PathId(1), text: TextId(138) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_keeps_array_view_active_for_output_index", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"observe\", output: \"side\", destination: \"side\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function inner (\\n x: input logic<8>[2],\\n guard: input logic\\n ) -> logic<8> {\\n return if guard ? x[0] : 8'h00;\\n }\\n function outer (\\n y: input logic<8>[2],\\n guard: input logic,\\n middle: input logic<8>\\n ) -> logic<8> {\\n return inner(y, guard) + middle + y[0];\\n }\\n always_ff (clk) {\\n out_q = outer(\\n '{observe(8'h11, side), default: 8'h00},\\n guard,\\n observe(8'h55, side)\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function inner (\\n x: input logic<8>[2],\\n guard: input logic\\n ) -> logic<8> {\\n return if guard ? x[0] : 8'h00;\\n }\\n function outer (\\n y: input logic<8>[2],\\n guard: input logic,\\n middle: input logic<8>\\n ) -> logic<8> {\\n return inner(y, guard) + middle + y[0];\\n }\\n always_ff (clk) {\\n out_q = outer(\\n '{observe(8'h11, side), default: 8'h00},\\n guard,\\n observe(8'h55, side)\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(894), length: 4 }, output_declaration: [SourceSpan { offset: SourceOffset(1282), length: 4 }], token_source: File { path: PathId(1), text: TextId(104) }, instance: None }, FunctionOutputInAlwaysFf { function: \"observe\", output: \"side\", destination: \"side\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function inner (\\n x: input logic<8>[2],\\n guard: input logic\\n ) -> logic<8> {\\n return if guard ? x[0] : 8'h00;\\n }\\n function outer (\\n y: input logic<8>[2],\\n guard: input logic,\\n middle: input logic<8>\\n ) -> logic<8> {\\n return inner(y, guard) + middle + y[0];\\n }\\n always_ff (clk) {\\n out_q = outer(\\n '{observe(8'h11, side), default: 8'h00},\\n guard,\\n observe(8'h55, side)\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function inner (\\n x: input logic<8>[2],\\n guard: input logic\\n ) -> logic<8> {\\n return if guard ? x[0] : 8'h00;\\n }\\n function outer (\\n y: input logic<8>[2],\\n guard: input logic,\\n middle: input logic<8>\\n ) -> logic<8> {\\n return inner(y, guard) + middle + y[0];\\n }\\n always_ff (clk) {\\n out_q = outer(\\n '{observe(8'h11, side), default: 8'h00},\\n guard,\\n observe(8'h55, side)\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(980), length: 4 }, output_declaration: [SourceSpan { offset: SourceOffset(1282), length: 4 }], token_source: File { path: PathId(1), text: TextId(104) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_merges_directly_forwarded_array_cache", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"observe\", output: \"side\", destination: \"side\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function middle (\\n x: input logic<8>[2],\\n index: input logic,\\n guard: input logic\\n ) -> logic<8> {\\n return (if guard ? x[0] : 8'h00) + x[index];\\n }\\n function outer (\\n y: input logic<8>[2],\\n index: input logic,\\n guard: input logic\\n ) -> logic<8> {\\n return middle(\\n '{y[index], default: 8'h00},\\n 0,\\n guard\\n ) + y[0];\\n }\\n always_ff (clk) {\\n side = 0;\\n out_q = outer(\\n '{observe(side + 1, side), default: 8'h00},\\n 0,\\n guard\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function middle (\\n x: input logic<8>[2],\\n index: input logic,\\n guard: input logic\\n ) -> logic<8> {\\n return (if guard ? x[0] : 8'h00) + x[index];\\n }\\n function outer (\\n y: input logic<8>[2],\\n index: input logic,\\n guard: input logic\\n ) -> logic<8> {\\n return middle(\\n '{y[index], default: 8'h00},\\n 0,\\n guard\\n ) + y[0];\\n }\\n always_ff (clk) {\\n side = 0;\\n out_q = outer(\\n '{observe(side + 1, side), default: 8'h00},\\n 0,\\n guard\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(1068), length: 4 }, output_declaration: [SourceSpan { offset: SourceOffset(1437), length: 4 }], token_source: File { path: PathId(1), text: TextId(103) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_merges_nested_array_state_at_cache_completion", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"observe\", output: \"side\", destination: \"side\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function middle (\\n x: input logic<8>[2],\\n guard: input logic\\n ) -> logic<8> {\\n return (if guard ? x[0] : 8'h00) + x[0];\\n }\\n function outer (\\n y: input logic<8>[2],\\n index: input logic,\\n guard: input logic\\n ) -> logic<8> {\\n return middle(\\n '{y[index], default: 8'h00},\\n guard\\n ) + y[0];\\n }\\n always_ff (clk) {\\n side = 0;\\n out_q = outer(\\n '{observe(side + 1, side), default: 8'h00},\\n 0,\\n guard\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function middle (\\n x: input logic<8>[2],\\n guard: input logic\\n ) -> logic<8> {\\n return (if guard ? x[0] : 8'h00) + x[0];\\n }\\n function outer (\\n y: input logic<8>[2],\\n index: input logic,\\n guard: input logic\\n ) -> logic<8> {\\n return middle(\\n '{y[index], default: 8'h00},\\n guard\\n ) + y[0];\\n }\\n always_ff (clk) {\\n side = 0;\\n out_q = outer(\\n '{observe(side + 1, side), default: 8'h00},\\n 0,\\n guard\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(1005), length: 4 }, output_declaration: [SourceSpan { offset: SourceOffset(1374), length: 4 }], token_source: File { path: PathId(1), text: TextId(135) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_merges_nested_array_state_at_static_cache_completion", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"observe\", output: \"side\", destination: \"side\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n in0: input logic<8>,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function inner (y: input logic[2], index: input logic) -> logic {\\n return y[index];\\n }\\n function outer (\\n x: input logic<8>[2],\\n index: input logic,\\n guard: input logic\\n ) -> logic<8> {\\n return inner('{guard && x[index] != 0, default: 0}, 0) + x[0];\\n }\\n always_ff (clk) {\\n side = 0;\\n out_q = outer(\\n '{observe(in0, side), default: 8'h00},\\n 0,\\n guard\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n in0: input logic<8>,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function inner (y: input logic[2], index: input logic) -> logic {\\n return y[index];\\n }\\n function outer (\\n x: input logic<8>[2],\\n index: input logic,\\n guard: input logic\\n ) -> logic<8> {\\n return inner('{guard && x[index] != 0, default: 0}, 0) + x[0];\\n }\\n always_ff (clk) {\\n side = 0;\\n out_q = outer(\\n '{observe(in0, side), default: 8'h00},\\n 0,\\n guard\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(903), length: 4 }, output_declaration: [SourceSpan { offset: SourceOffset(1305), length: 4 }], token_source: File { path: PathId(1), text: TextId(106) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_merges_outer_array_view_across_nested_short_circuit", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"observe\", output: \"side\", destination: \"side\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n in0: input logic<8>,\\n out_q: output logic<32>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function inner (x: input logic<8>[2]) -> logic<32> {\\n return $bits(x);\\n }\\n function outer (x: input logic<8>[2]) -> logic<32> {\\n return inner(x);\\n }\\n always_ff (clk) {\\n out_q = outer('{observe(in0, side), default: 8'h00});\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n in0: input logic<8>,\\n out_q: output logic<32>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function inner (x: input logic<8>[2]) -> logic<32> {\\n return $bits(x);\\n }\\n function outer (x: input logic<8>[2]) -> logic<32> {\\n return inner(x);\\n }\\n always_ff (clk) {\\n out_q = outer('{observe(in0, side), default: 8'h00});\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(665), length: 4 }, output_declaration: [SourceSpan { offset: SourceOffset(969), length: 4 }], token_source: File { path: PathId(1), text: TextId(109) }, instance: None }, UnassignVariable { identifier: \"side\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n in0: input logic<8>,\\n out_q: output logic<32>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function inner (x: input logic<8>[2]) -> logic<32> {\\n return $bits(x);\\n }\\n function outer (x: input logic<8>[2]) -> logic<32> {\\n return inner(x);\\n }\\n always_ff (clk) {\\n out_q = outer('{observe(in0, side), default: 8'h00});\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(134), length: 4 }, token_source: File { path: PathId(1), text: TextId(109) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_nested_bits_evaluates_effectful_array_argument", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"g\", output: \"y\", destination: \"tmp\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (clk: input clock, in_a: input logic<8>, out_q: output logic<8>) {\\n function f (x: input logic<8>, y: output logic<8>) {\\n y = x + 1;\\n }\\n function g (x: input logic<8>, y: output logic<8>) {\\n f(x, y);\\n }\\n var tmp: logic<8>;\\n always_ff (clk) {\\n g(in_a, tmp);\\n out_q = tmp;\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (clk: input clock, in_a: input logic<8>, out_q: output logic<8>) {\\n function f (x: input logic<8>, y: output logic<8>) {\\n y = x + 1;\\n }\\n function g (x: input logic<8>, y: output logic<8>) {\\n f(x, y);\\n }\\n var tmp: logic<8>;\\n always_ff (clk) {\\n g(in_a, tmp);\\n out_q = tmp;\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(382), length: 3 }, output_declaration: [SourceSpan { offset: SourceOffset(682), length: 1 }], token_source: File { path: PathId(1), text: TextId(121) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_nested_output_statement_in_function_body", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"update\", output: \"written\", destination: \"changing\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (clk: input clock, q: output logic<8>, changing: output logic<8>) {\\n function update (\\n value: input logic<8>,\\n written: output logic<8>\\n ) -> logic<8> {\\n written = value + 1;\\n return 0;\\n }\\n function pick (x: input logic<8>[2]) -> logic<8> {\\n return x[0];\\n }\\n always_ff (clk) {\\n q = pick('{changing, update(changing, changing)});\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (clk: input clock, q: output logic<8>, changing: output logic<8>) {\\n function update (\\n value: input logic<8>,\\n written: output logic<8>\\n ) -> logic<8> {\\n written = value + 1;\\n return 0;\\n }\\n function pick (x: input logic<8>[2]) -> logic<8> {\\n return x[0];\\n }\\n always_ff (clk) {\\n q = pick('{changing, update(changing, changing)});\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(493), length: 8 }, output_declaration: [SourceSpan { offset: SourceOffset(708), length: 7 }], token_source: File { path: PathId(1), text: TextId(141) }, instance: None }, UnassignVariable { identifier: \"changing\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (clk: input clock, q: output logic<8>, changing: output logic<8>) {\\n function update (\\n value: input logic<8>,\\n written: output logic<8>\\n ) -> logic<8> {\\n written = value + 1;\\n return 0;\\n }\\n function pick (x: input logic<8>[2]) -> logic<8> {\\n return x[0];\\n }\\n always_ff (clk) {\\n q = pick('{changing, update(changing, changing)});\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(59), length: 8 }, token_source: File { path: PathId(1), text: TextId(141) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_snapshots_pure_array_items_before_later_effect", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"f\", output: \"y\", destination: \"tmp\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (clk: input clock, in_a: input logic<8>, out_q: output logic<8>) {\\n function f (x: input logic<8>, y: output logic<8>) {\\n y = x + 2;\\n }\\n var tmp: logic<8>;\\n always_ff (clk) {\\n f(in_a, tmp);\\n out_q = tmp;\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (clk: input clock, in_a: input logic<8>, out_q: output logic<8>) {\\n function f (x: input logic<8>, y: output logic<8>) {\\n y = x + 2;\\n }\\n var tmp: logic<8>;\\n always_ff (clk) {\\n f(in_a, tmp);\\n out_q = tmp;\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(278), length: 3 }, output_declaration: [SourceSpan { offset: SourceOffset(472), length: 1 }], token_source: File { path: PathId(1), text: TextId(89) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_statement_with_output_argument", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"f\", output: \"y\", destination: \"tmp\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (clk: input clock, in_a: input logic<8>, out_q1: output logic<8>, out_q2: output logic<8>) {\\n function f (x: input logic<8>, y: output logic<8>) -> logic<8> {\\n y = x + 3;\\n return x + 4;\\n }\\n var tmp: logic<8>;\\n always_ff (clk) {\\n out_q1 = f(in_a, tmp);\\n out_q2 = tmp;\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (clk: input clock, in_a: input logic<8>, out_q1: output logic<8>, out_q2: output logic<8>) {\\n function f (x: input logic<8>, y: output logic<8>) -> logic<8> {\\n y = x + 3;\\n return x + 4;\\n }\\n var tmp: logic<8>;\\n always_ff (clk) {\\n out_q1 = f(in_a, tmp);\\n out_q2 = tmp;\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(355), length: 3 }, output_declaration: [SourceSpan { offset: SourceOffset(576), length: 1 }], token_source: File { path: PathId(1), text: TextId(118) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_statement_with_output_argument_and_return_value", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"observe\", output: \"side\", destination: \"side\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n var scratch: logic<8>[2];\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function write (\\n value: input logic<8>,\\n dst: output logic<8>\\n ) -> logic<8> {\\n dst = value;\\n return 0;\\n }\\n function outer (\\n x: input logic<8>[2],\\n guard: input logic,\\n middle: input logic<8>\\n ) -> logic<8> {\\n return (if guard ? write(0, scratch[x[0]]) : 0) + middle + x[0];\\n }\\n always_ff (clk) {\\n out_q = outer(\\n '{observe(8'h01, side), default: 8'h00},\\n guard,\\n observe(8'h55, side)\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n var scratch: logic<8>[2];\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function write (\\n value: input logic<8>,\\n dst: output logic<8>\\n ) -> logic<8> {\\n dst = value;\\n return 0;\\n }\\n function outer (\\n x: input logic<8>[2],\\n guard: input logic,\\n middle: input logic<8>\\n ) -> logic<8> {\\n return (if guard ? write(0, scratch[x[0]]) : 0) + middle + x[0];\\n }\\n always_ff (clk) {\\n out_q = outer(\\n '{observe(8'h01, side), default: 8'h00},\\n guard,\\n observe(8'h55, side)\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(967), length: 4 }, output_declaration: [SourceSpan { offset: SourceOffset(1393), length: 4 }], token_source: File { path: PathId(1), text: TextId(136) }, instance: None }, FunctionOutputInAlwaysFf { function: \"observe\", output: \"side\", destination: \"side\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n var scratch: logic<8>[2];\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function write (\\n value: input logic<8>,\\n dst: output logic<8>\\n ) -> logic<8> {\\n dst = value;\\n return 0;\\n }\\n function outer (\\n x: input logic<8>[2],\\n guard: input logic,\\n middle: input logic<8>\\n ) -> logic<8> {\\n return (if guard ? write(0, scratch[x[0]]) : 0) + middle + x[0];\\n }\\n always_ff (clk) {\\n out_q = outer(\\n '{observe(8'h01, side), default: 8'h00},\\n guard,\\n observe(8'h55, side)\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n var scratch: logic<8>[2];\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function write (\\n value: input logic<8>,\\n dst: output logic<8>\\n ) -> logic<8> {\\n dst = value;\\n return 0;\\n }\\n function outer (\\n x: input logic<8>[2],\\n guard: input logic,\\n middle: input logic<8>\\n ) -> logic<8> {\\n return (if guard ? write(0, scratch[x[0]]) : 0) + middle + x[0];\\n }\\n always_ff (clk) {\\n out_q = outer(\\n '{observe(8'h01, side), default: 8'h00},\\n guard,\\n observe(8'h55, side)\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(1053), length: 4 }, output_declaration: [SourceSpan { offset: SourceOffset(1393), length: 4 }], token_source: File { path: PathId(1), text: TextId(136) }, instance: None }, SideEffectFunctionCallInAlwaysFf { identifier: \"outer\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n var scratch: logic<8>[2];\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function write (\\n value: input logic<8>,\\n dst: output logic<8>\\n ) -> logic<8> {\\n dst = value;\\n return 0;\\n }\\n function outer (\\n x: input logic<8>[2],\\n guard: input logic,\\n middle: input logic<8>\\n ) -> logic<8> {\\n return (if guard ? write(0, scratch[x[0]]) : 0) + middle + x[0];\\n }\\n always_ff (clk) {\\n out_q = outer(\\n '{observe(8'h01, side), default: 8'h00},\\n guard,\\n observe(8'h55, side)\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n var scratch: logic<8>[2];\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function write (\\n value: input logic<8>,\\n dst: output logic<8>\\n ) -> logic<8> {\\n dst = value;\\n return 0;\\n }\\n function outer (\\n x: input logic<8>[2],\\n guard: input logic,\\n middle: input logic<8>\\n ) -> logic<8> {\\n return (if guard ? write(0, scratch[x[0]]) : 0) + middle + x[0];\\n }\\n always_ff (clk) {\\n out_q = outer(\\n '{observe(8'h01, side), default: 8'h00},\\n guard,\\n observe(8'h55, side)\\n );\\n }\\n }\\n \\n\", line", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_tracks_array_reads_in_output_indices", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"observe\", output: \"side\", destination: \"side\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function middle (\\n x: input logic<8>[2],\\n index: input logic,\\n guard: input logic\\n ) -> logic<8> {\\n return if guard ? x[index] : 8'h00;\\n }\\n function outer (\\n y: input logic<8>[2],\\n index: input logic,\\n guard: input logic\\n ) -> logic<8> {\\n return middle('{y[index], default: 8'h00}, 0, guard) + y[0];\\n }\\n always_ff (clk) {\\n side = 0;\\n out_q = outer(\\n '{observe(side + 1, side), default: 8'h00},\\n 0,\\n guard\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function middle (\\n x: input logic<8>[2],\\n index: input logic,\\n guard: input logic\\n ) -> logic<8> {\\n return if guard ? x[index] : 8'h00;\\n }\\n function outer (\\n y: input logic<8>[2],\\n index: input logic,\\n guard: input logic\\n ) -> logic<8> {\\n return middle('{y[index], default: 8'h00}, 0, guard) + y[0];\\n }\\n always_ff (clk) {\\n side = 0;\\n out_q = outer(\\n '{observe(side + 1, side), default: 8'h00},\\n 0,\\n guard\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(981), length: 4 }, output_declaration: [SourceSpan { offset: SourceOffset(1350), length: 4 }], token_source: File { path: PathId(1), text: TextId(134) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_tracks_array_view_hidden_in_bound_literal", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"observe\", output: \"side\", destination: \"side\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n var scratch: logic<8>[2];\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function write (\\n value: input logic<8>,\\n dst: output logic<8>\\n ) -> logic<8> {\\n dst = value;\\n return 0;\\n }\\n function helper (x: input logic<8>[2]) -> logic<8> {\\n return write(0, scratch[x[0]]);\\n }\\n function outer (\\n x: input logic<8>[2],\\n guard: input logic,\\n middle: input logic<8>\\n ) -> logic<8> {\\n return (if guard ? helper(x) : 0) + middle + x[0];\\n }\\n always_ff (clk) {\\n out_q = outer(\\n '{observe(8'h01, side), default: 8'h00},\\n guard,\\n observe(8'h55, side)\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n var scratch: logic<8>[2];\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function write (\\n value: input logic<8>,\\n dst: output logic<8>\\n ) -> logic<8> {\\n dst = value;\\n return 0;\\n }\\n function helper (x: input logic<8>[2]) -> logic<8> {\\n return write(0, scratch[x[0]]);\\n }\\n function outer (\\n x: input logic<8>[2],\\n guard: input logic,\\n middle: input logic<8>\\n ) -> logic<8> {\\n return (if guard ? helper(x) : 0) + middle + x[0];\\n }\\n always_ff (clk) {\\n out_q = outer(\\n '{observe(8'h01, side), default: 8'h00},\\n guard,\\n observe(8'h55, side)\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(1080), length: 4 }, output_declaration: [SourceSpan { offset: SourceOffset(1506), length: 4 }], token_source: File { path: PathId(1), text: TextId(105) }, instance: None }, FunctionOutputInAlwaysFf { function: \"observe\", output: \"side\", destination: \"side\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n var scratch: logic<8>[2];\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function write (\\n value: input logic<8>,\\n dst: output logic<8>\\n ) -> logic<8> {\\n dst = value;\\n return 0;\\n }\\n function helper (x: input logic<8>[2]) -> logic<8> {\\n return write(0, scratch[x[0]]);\\n }\\n function outer (\\n x: input logic<8>[2],\\n guard: input logic,\\n middle: input logic<8>\\n ) -> logic<8> {\\n return (if guard ? helper(x) : 0) + middle + x[0];\\n }\\n always_ff (clk) {\\n out_q = outer(\\n '{observe(8'h01, side), default: 8'h00},\\n guard,\\n observe(8'h55, side)\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n var scratch: logic<8>[2];\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function write (\\n value: input logic<8>,\\n dst: output logic<8>\\n ) -> logic<8> {\\n dst = value;\\n return 0;\\n }\\n function helper (x: input logic<8>[2]) -> logic<8> {\\n return write(0, scratch[x[0]]);\\n }\\n function outer (\\n x: input logic<8>[2],\\n guard: input logic,\\n middle: input logic<8>\\n ) -> logic<8> {\\n return (if guard ? helper(x) : 0) + middle + x[0];\\n }\\n always_ff (clk) {\\n out_q = outer(\\n '{observe(8'h01, side), default: 8'h00},\\n guard,\\n observe(8'h55, side)\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(1166), length: 4 }, output_declaration: [SourceSpan { offset: SourceOffset(1506), length: 4 }], token_source: File { path: PathId(1), text: TextId(105) }, instance: None }, SideEffectFunctionCallInAlwaysFf { identifier: \"outer\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n var scratch: logic<8>[2];\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function write (\\n value: input logic<8>,\\n dst: output logic<8>\\n ) -> logic<8> {\\n dst = value;\\n return 0;\\n }\\n function helper (x: input logic<8>[2]) -> logic<8> {\\n return write(0, scratch[x[0]]);\\n }\\n function outer (\\n x: input logic<8>[2],\\n guard: input logic,\\n middle: input logic<8>\\n ) -> logic<8> {\\n return (if guard ? helper(x) : 0) + middle + x[0];\\n }\\n always_ff (clk) {\\n out_q = outer(\\n '{observe(8'h01, side), default: 8'h00},\\n guard,\\n observe(8'h55, side)\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n var scratch: logic<8>[2];\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function write (\\n value: input logic<8>,\\n dst: output logic<8>\\n ) -> logic<8> {\\n d", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_tracks_nested_array_reads_in_output_indices", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"observe\", output: \"side\", destination: \"side\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function inner (x: input logic<8>[2]) -> logic<8> {\\n return x[0];\\n }\\n function nested_then_static (\\n x: input logic<8>[2],\\n guard: input logic,\\n first: output logic<8>\\n ) -> logic<8> {\\n first = if guard ? inner(x) : 8'h00;\\n return x[0];\\n }\\n var first: logic<8>;\\n always_ff (clk) {\\n side = 0;\\n out_q = nested_then_static(\\n '{observe(side + 1, side), default: 8'h00},\\n guard,\\n first\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function inner (x: input logic<8>[2]) -> logic<8> {\\n return x[0];\\n }\\n function nested_then_static (\\n x: input logic<8>[2],\\n guard: input logic,\\n first: output logic<8>\\n ) -> logic<8> {\\n first = if guard ? inner(x) : 8'h00;\\n return x[0];\\n }\\n var first: logic<8>;\\n always_ff (clk) {\\n side = 0;\\n out_q = nested_then_static(\\n '{observe(side + 1, side), default: 8'h00},\\n guard,\\n first\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(923), length: 4 }, output_declaration: [SourceSpan { offset: SourceOffset(1296), length: 4 }], token_source: File { path: PathId(1), text: TextId(102) }, instance: None }, FunctionOutputInAlwaysFf { function: \"nested_then_static\", output: \"first\", destination: \"first\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function inner (x: input logic<8>[2]) -> logic<8> {\\n return x[0];\\n }\\n function nested_then_static (\\n x: input logic<8>[2],\\n guard: input logic,\\n first: output logic<8>\\n ) -> logic<8> {\\n first = if guard ? inner(x) : 8'h00;\\n return x[0];\\n }\\n var first: logic<8>;\\n always_ff (clk) {\\n side = 0;\\n out_q = nested_then_static(\\n '{observe(side + 1, side), default: 8'h00},\\n guard,\\n first\\n );\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n guard: input logic,\\n out_q: output logic<8>,\\n side: output logic<8>\\n ) {\\n function observe (\\n x: input logic<8>,\\n side: output logic<8>\\n ) -> logic<8> {\\n side = x;\\n return x;\\n }\\n function inner (x: input logic<8>[2]) -> logic<8> {\\n return x[0];\\n }\\n function nested_then_static (\\n x: input logic<8>[2],\\n guard: input logic,\\n first: output logic<8>\\n ) -> logic<8> {\\n first = if guard ? inner(x) : 8'h00;\\n return x[0];\\n }\\n var first: logic<8>;\\n always_ff (clk) {\\n side = 0;\\n out_q = nested_then_static(\\n '{observe(side + 1, side), default: 8'h00},\\n guard,\\n first\\n );\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(994), length: 5 }, output_declaration: [SourceSpan { offset: SourceOffset(1651), length: 5 }], token_source: File { path: PathId(1), text: TextId(102) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_tracks_nested_static_array_read_through_branch", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [SideEffectFunctionCallInAlwaysFf { identifier: \"set\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n index: output logic,\\n entries: output logic<8>[2]\\n ) {\\n function set (written: output logic<8>) {\\n index = 1'b1;\\n written = 8'ha5;\\n }\\n\\n always_ff (clk) {\\n set(entries[index]);\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n index: output logic,\\n entries: output logic<8>[2]\\n ) {\\n function set (written: output logic<8>) {\\n index = 1'b1;\\n written = 8'ha5;\\n }\\n\\n always_ff (clk) {\\n set(entries[index]);\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(315), length: 20 }, call_stack: [], external_writes: [SourceSpan { offset: SourceOffset(572), length: 5 }], function_definition: [], token_source: File { path: PathId(1), text: TextId(102) }, instance: None }, FunctionOutputInAlwaysFf { function: \"set\", output: \"written\", destination: \"entries\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n index: output logic,\\n entries: output logic<8>[2]\\n ) {\\n function set (written: output logic<8>) {\\n index = 1'b1;\\n written = 8'ha5;\\n }\\n\\n always_ff (clk) {\\n set(entries[index]);\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n index: output logic,\\n entries: output logic<8>[2]\\n ) {\\n function set (written: output logic<8>) {\\n index = 1'b1;\\n written = 8'ha5;\\n }\\n\\n always_ff (clk) {\\n set(entries[index]);\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(319), length: 14 }, output_declaration: [SourceSpan { offset: SourceOffset(528), length: 7 }], token_source: File { path: PathId(1), text: TextId(102) }, instance: None }, UnassignVariable { identifier: \"entries[32'h00000001]\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n index: output logic,\\n entries: output logic<8>[2]\\n ) {\\n function set (written: output logic<8>) {\\n index = 1'b1;\\n written = 8'ha5;\\n }\\n\\n always_ff (clk) {\\n set(entries[index]);\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(97), length: 7 }, token_source: File { path: PathId(1), text: TextId(102) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_output_index_uses_final_nonlocal_state", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [SideEffectFunctionCallInAlwaysFf { identifier: \"write_selected\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n select: input logic,\\n global_value: output logic<8>\\n ) {\\n function write_selected (select: input logic) {\\n global_value = if select ? 8'hf0 : 8'h0f;\\n }\\n\\n always_ff (clk) {\\n write_selected(select);\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n select: input logic,\\n global_value: output logic<8>\\n ) {\\n function write_selected (select: input logic) {\\n global_value = if select ? 8'hf0 : 8'h0f;\\n }\\n\\n always_ff (clk) {\\n write_selected(select);\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(318), length: 23 }, call_stack: [], external_writes: [SourceSpan { offset: SourceOffset(586), length: 12 }], function_definition: [], token_source: File { path: PathId(1), text: TextId(101) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_nonlocal_source_ternary_preserves_unknown_merge", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [SideEffectFunctionCallInAlwaysFf { identifier: \"update\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n global_value: output logic<8>,\\n q: output logic\\n ) {\\n function update (written: output logic<8>) -> logic {\\n global_value = 8'h01;\\n written = 8'h02;\\n return 0;\\n }\\n\\n always_ff (clk) {\\n q = update(global_value);\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n global_value: output logic<8>,\\n q: output logic\\n ) {\\n function update (written: output logic<8>) -> logic {\\n global_value = 8'h01;\\n written = 8'h02;\\n return 0;\\n }\\n\\n always_ff (clk) {\\n q = update(global_value);\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(363), length: 20 }, call_stack: [], external_writes: [SourceSpan { offset: SourceOffset(631), length: 12 }], function_definition: [], token_source: File { path: PathId(1), text: TextId(69) }, instance: None }, FunctionOutputInAlwaysFf { function: \"update\", output: \"written\", destination: \"global_value\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n global_value: output logic<8>,\\n q: output logic\\n ) {\\n function update (written: output logic<8>) -> logic {\\n global_value = 8'h01;\\n written = 8'h02;\\n return 0;\\n }\\n\\n always_ff (clk) {\\n q = update(global_value);\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n global_value: output logic<8>,\\n q: output logic\\n ) {\\n function update (written: output logic<8>) -> logic {\\n global_value = 8'h01;\\n written = 8'h02;\\n return 0;\\n }\\n\\n always_ff (clk) {\\n q = update(global_value);\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(370), length: 12 }, output_declaration: [SourceSpan { offset: SourceOffset(578), length: 7 }], token_source: File { path: PathId(1), text: TextId(69) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_nonlocal_write_precedes_aliased_formal_output_copyout", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [SideEffectFunctionCallInAlwaysFf { identifier: \"outer\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n index: input logic<3>,\\n value: input logic,\\n global_value: output logic<8>\\n ) {\\n function write_at (\\n index: input logic<3>,\\n value: input logic\\n ) -> logic {\\n global_value[index] = value;\\n return 1'b0;\\n }\\n\\n function outer (\\n index: input logic<3>,\\n value: input logic\\n ) {\\n var ignored: logic;\\n ignored = write_at(index, value);\\n }\\n\\n always_ff (clk) {\\n outer(index, value);\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n index: input logic<3>,\\n value: input logic,\\n global_value: output logic<8>\\n ) {\\n function write_at (\\n index: input logic<3>,\\n value: input logic\\n ) -> logic {\\n global_value[index] = value;\\n return 1'b0;\\n }\\n\\n function outer (\\n index: input logic<3>,\\n value: input logic\\n ) {\\n var ignored: logic;\\n ignored = write_at(index, value);\\n }\\n\\n always_ff (clk) {\\n outer(index, value);\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n index: input logic<3>,\\n value: input logic,\\n global_value: output logic<8>\\n ) {\\n function write_at (\\n index: input logic<3>,\\n value: input logic\\n ) -> logic {\\n global_value[index] = value;\\n return 1'b0;\\n }\\n\\n function outer (\\n index: input logic<3>,\\n value: input logic\\n ) {\\n var ignored: logic;\\n ignored = write_at(index, value);\\n }\\n\\n always_ff (clk) {\\n outer(index, value);\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(659), length: 20 }, call_stack: [SourceSpan { offset: SourceOffset(1283), length: 22 }], external_writes: [SourceSpan { offset: SourceOffset(1738), length: 19 }], function_definition: [], token_source: File { path: PathId(1), text: TextId(100) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_outputless_wrapper_direct_dynamic_nonlocal_assignment_is_observable", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [SideEffectFunctionCallInAlwaysFf { identifier: \"outer\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n index: input logic,\\n global_value: output logic<8>\\n ) {\\n function set (\\n value: input logic,\\n written: output logic\\n ) -> logic {\\n written = value;\\n return 1'b0;\\n }\\n\\n function outer (index: input logic) {\\n var ignored: logic;\\n ignored = set(1'b1, global_value[index]);\\n }\\n\\n always_ff (clk) {\\n outer(index);\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n index: input logic,\\n global_value: output logic<8>\\n ) {\\n function set (\\n value: input logic,\\n written: output logic\\n ) -> logic {\\n written = value;\\n return 1'b0;\\n }\\n\\n function outer (index: input logic) {\\n var ignored: logic;\\n ignored = set(1'b1, global_value[index]);\\n }\\n\\n always_ff (clk) {\\n outer(index);\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n index: input logic,\\n global_value: output logic<8>\\n ) {\\n function set (\\n value: input logic,\\n written: output logic\\n ) -> logic {\\n written = value;\\n return 1'b0;\\n }\\n\\n function outer (index: input logic) {\\n var ignored: logic;\\n ignored = set(1'b1, global_value[index]);\\n }\\n\\n always_ff (clk) {\\n outer(index);\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(546), length: 13 }, call_stack: [SourceSpan { offset: SourceOffset(1042), length: 30 }], external_writes: [SourceSpan { offset: SourceOffset(1458), length: 7 }], function_definition: [], token_source: File { path: PathId(1), text: TextId(71) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_outputless_wrapper_dynamic_indexed_copyout_to_nonlocal_is_observable", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [SideEffectFunctionCallInAlwaysFf { identifier: \"outer\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (clk: input clock, global_value: output logic<8>) {\\n function set (\\n value: input logic<8>,\\n written: output logic<8>\\n ) -> logic {\\n written = value;\\n return 1'b0;\\n }\\n\\n function outer () {\\n var ignored: logic;\\n ignored = set(8'h5a, global_value);\\n }\\n\\n always_ff (clk) {\\n outer();\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (clk: input clock, global_value: output logic<8>) {\\n function set (\\n value: input logic<8>,\\n written: output logic<8>\\n ) -> logic {\\n written = value;\\n return 1'b0;\\n }\\n\\n function outer () {\\n var ignored: logic;\\n ignored = set(8'h5a, global_value);\\n }\\n\\n always_ff (clk) {\\n outer();\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (clk: input clock, global_value: output logic<8>) {\\n function set (\\n value: input logic<8>,\\n written: output logic<8>\\n ) -> logic {\\n written = value;\\n return 1'b0;\\n }\\n\\n function outer () {\\n var ignored: logic;\\n ignored = set(8'h5a, global_value);\\n }\\n\\n always_ff (clk) {\\n outer();\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(462), length: 8 }, call_stack: [SourceSpan { offset: SourceOffset(875), length: 24 }], external_writes: [SourceSpan { offset: SourceOffset(1220), length: 7 }], function_definition: [], token_source: File { path: PathId(1), text: TextId(70) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_outputless_wrapper_expression_copyout_to_nonlocal_is_observable", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [SideEffectFunctionCallInAlwaysFf { identifier: \"outer\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (clk: input clock, global_value: output logic<8>) {\\n function set (\\n value: input logic,\\n written: output logic\\n ) -> logic {\\n written = value;\\n return 1'b0;\\n }\\n\\n function outer () {\\n var ignored: logic;\\n ignored = set(1'b1, global_value[0]);\\n }\\n\\n always_ff (clk) {\\n outer();\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (clk: input clock, global_value: output logic<8>) {\\n function set (\\n value: input logic,\\n written: output logic\\n ) -> logic {\\n written = value;\\n return 1'b0;\\n }\\n\\n function outer () {\\n var ignored: logic;\\n ignored = set(1'b1, global_value[0]);\\n }\\n\\n always_ff (clk) {\\n outer();\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (clk: input clock, global_value: output logic<8>) {\\n function set (\\n value: input logic,\\n written: output logic\\n ) -> logic {\\n written = value;\\n return 1'b0;\\n }\\n\\n function outer () {\\n var ignored: logic;\\n ignored = set(1'b1, global_value[0]);\\n }\\n\\n always_ff (clk) {\\n outer();\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(458), length: 8 }, call_stack: [SourceSpan { offset: SourceOffset(865), length: 26 }], external_writes: [SourceSpan { offset: SourceOffset(1206), length: 7 }], function_definition: [], token_source: File { path: PathId(1), text: TextId(99) }, instance: None }, UnassignVariable { identifier: \"global_value\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (clk: input clock, global_value: output logic<8>) {\\n function set (\\n value: input logic,\\n written: output logic\\n ) -> logic {\\n written = value;\\n return 1'b0;\\n }\\n\\n function outer () {\\n var ignored: logic;\\n ignored = set(1'b1, global_value[0]);\\n }\\n\\n always_ff (clk) {\\n outer();\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(39), length: 12 }, token_source: File { path: PathId(1), text: TextId(99) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_outputless_wrapper_indexed_copyout_to_nonlocal_is_observable", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [SideEffectFunctionCallInAlwaysFf { identifier: \"outer\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (clk: input clock, global_value: output logic<8>) {\\n function set (written: output logic<8>) {\\n written = 8'h5a;\\n }\\n\\n function outer () {\\n set(global_value);\\n }\\n\\n always_ff (clk) {\\n outer();\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (clk: input clock, global_value: output logic<8>) {\\n function set (written: output logic<8>) {\\n written = 8'h5a;\\n }\\n\\n function outer () {\\n set(global_value);\\n }\\n\\n always_ff (clk) {\\n outer();\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (clk: input clock, global_value: output logic<8>) {\\n function set (written: output logic<8>) {\\n written = 8'h5a;\\n }\\n\\n function outer () {\\n set(global_value);\\n }\\n\\n always_ff (clk) {\\n outer();\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(302), length: 8 }, call_stack: [SourceSpan { offset: SourceOffset(562), length: 17 }], external_writes: [SourceSpan { offset: SourceOffset(822), length: 7 }], function_definition: [], token_source: File { path: PathId(1), text: TextId(98) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_outputless_wrapper_nested_copyout_to_nonlocal_is_observable", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"update\", output: \"written\", destination: \"effect\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (clk: input clock, effect: output logic<8>, q: output logic<8>) {\\n function update (\\n x: input logic<8>,\\n written: output logic<8>\\n ) -> logic<8> {\\n written = x + 8'd1;\\n return x + 8'd1;\\n }\\n\\n function combine (\\n first: input logic<8>,\\n second: input logic<8>\\n ) -> logic<8> {\\n return first;\\n }\\n\\n always_ff (clk) {\\n q = combine(effect, update(effect, effect));\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (clk: input clock, effect: output logic<8>, q: output logic<8>) {\\n function update (\\n x: input logic<8>,\\n written: output logic<8>\\n ) -> logic<8> {\\n written = x + 8'd1;\\n return x + 8'd1;\\n }\\n\\n function combine (\\n first: input logic<8>,\\n second: input logic<8>\\n ) -> logic<8> {\\n return first;\\n }\\n\\n always_ff (clk) {\\n q = combine(effect, update(effect, effect));\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(567), length: 6 }, output_declaration: [SourceSpan { offset: SourceOffset(773), length: 7 }], token_source: File { path: PathId(1), text: TextId(104) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_pure_input_is_snapshotted_before_later_effectful_input", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [SideEffectFunctionCallInAlwaysFf { identifier: \"update_global\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n global_value: output logic<8>,\\n q: output logic<8>\\n ) {\\n function read_global () -> logic<8> {\\n return global_value;\\n }\\n\\n function update_global (value: input logic<8>) -> logic<8> {\\n global_value = 8'd9;\\n if value == 8'd1 {\\n return 8'd7;\\n } else {\\n return 8'd8;\\n }\\n }\\n\\n always_ff (clk) {\\n q = update_global(read_global());\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n global_value: output logic<8>,\\n q: output logic<8>\\n ) {\\n function read_global () -> logic<8> {\\n return global_value;\\n }\\n\\n function update_global (value: input logic<8>) -> logic<8> {\\n global_value = 8'd9;\\n if value == 8'd1 {\\n return 8'd7;\\n } else {\\n return 8'd8;\\n }\\n }\\n\\n always_ff (clk) {\\n q = update_global(read_global());\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(559), length: 28 }, call_stack: [], external_writes: [SourceSpan { offset: SourceOffset(947), length: 12 }], function_definition: [], token_source: File { path: PathId(1), text: TextId(96) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_runtime_function_snapshots_helper_input_before_callee_nonlocal_write", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [SideEffectFunctionCallInAlwaysFf { identifier: \"update_global\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n global_value: output logic<8>,\\n q: output logic<8>\\n ) {\\n function update_global (value: input logic<8>) -> logic<8> {\\n global_value = 8'd9;\\n if value == 8'd1 {\\n return 8'd7;\\n } else {\\n return 8'd8;\\n }\\n }\\n\\n always_ff (clk) {\\n q = update_global(global_value);\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n global_value: output logic<8>,\\n q: output logic<8>\\n ) {\\n function update_global (value: input logic<8>) -> logic<8> {\\n global_value = 8'd9;\\n if value == 8'd1 {\\n return 8'd7;\\n } else {\\n return 8'd8;\\n }\\n }\\n\\n always_ff (clk) {\\n q = update_global(global_value);\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(457), length: 27 }, call_stack: [], external_writes: [SourceSpan { offset: SourceOffset(742), length: 12 }], function_definition: [], token_source: File { path: PathId(1), text: TextId(67) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_runtime_function_snapshots_input_before_callee_nonlocal_write", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [SideEffectFunctionCallInAlwaysFf { identifier: \"write_state\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n gate: input logic,\\n d: input logic<8>,\\n state: output logic<8>,\\n q: output logic<8>\\n ) {\\n var ignored: logic;\\n\\n function write_state (x: input logic<8>) -> logic {\\n state = x;\\n return 1'b1;\\n }\\n\\n always_ff (clk) {\\n ignored = gate && write_state(d);\\n q = state;\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n gate: input logic,\\n d: input logic<8>,\\n state: output logic<8>,\\n q: output logic<8>\\n ) {\\n var ignored: logic;\\n\\n function write_state (x: input logic<8>) -> logic {\\n state = x;\\n return 1'b1;\\n }\\n\\n always_ff (clk) {\\n ignored = gate && write_state(d);\\n q = state;\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(425), length: 14 }, call_stack: [], external_writes: [SourceSpan { offset: SourceOffset(803), length: 5 }], function_definition: [], token_source: File { path: PathId(1), text: TextId(73) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_short_circuit_runtime_write_preserves_later_state_source", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [SideEffectFunctionCallInAlwaysFf { identifier: \"maybe_write\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n gate: input logic,\\n global_value: output logic<8>\\n ) {\\n function maybe_write (gate: input logic) {\\n if gate {\\n global_value = 8'h01;\\n }\\n }\\n\\n always_ff (clk) {\\n global_value = 8'h05;\\n maybe_write(gate);\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n gate: input logic,\\n global_value: output logic<8>\\n ) {\\n function maybe_write (gate: input logic) {\\n if gate {\\n global_value = 8'h01;\\n }\\n }\\n\\n always_ff (clk) {\\n global_value = 8'h05;\\n maybe_write(gate);\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(377), length: 18 }, call_stack: [], external_writes: [SourceSpan { offset: SourceOffset(663), length: 12 }], function_definition: [], token_source: File { path: PathId(1), text: TextId(97) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_skipped_conditional_nonlocal_write_preserves_prior_ff_assignment", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Sequential", + "detail": "Veryl analyze_pass2 errors: [SideEffectFunctionCallInAlwaysFf { identifier: \"set_global\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n d: input logic<8>,\\n global_value: output logic<8>\\n ) {\\n function set_global (value: input logic<8>) {\\n global_value = value;\\n }\\n\\n always_ff (clk) {\\n set_global(d);\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock,\\n d: input logic<8>,\\n global_value: output logic<8>\\n ) {\\n function set_global (value: input logic<8>) {\\n global_value = value;\\n }\\n\\n always_ff (clk) {\\n set_global(d);\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(294), length: 14 }, call_stack: [], external_writes: [SourceSpan { offset: SourceOffset(549), length: 12 }], function_definition: [], token_source: File { path: PathId(1), text: TextId(68) }, instance: None }]", + "expectation": "Simulation", + "name": "flip_flop::test_ff_statement_function_direct_nonlocal_assignment_is_observable", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "FourState", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"set_side_effect\", output: \"y\", destination: \"side_effect\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\nmodule Top (\\n clk: input clock,\\n clear: input logic,\\n cond: input logic<130>,\\n side_state: output logic,\\n result: output logic,\\n) {\\n var side_effect: logic;\\n function set_side_effect (y: output logic) -> logic {\\n y = 1'b1;\\n return 1'b0;\\n }\\n always_ff (clk) {\\n if clear {\\n side_effect = 1'b0;\\n result = 1'b0;\\n } else {\\n result = if cond ? 1'b1 : set_side_effect(side_effect);\\n }\\n }\\n assign side_state = side_effect;\\n}\\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\nmodule Top (\\n clk: input clock,\\n clear: input logic,\\n cond: input logic<130>,\\n side_state: output logic,\\n result: output logic,\\n) {\\n var side_effect: logic;\\n function set_side_effect (y: output logic) -> logic {\\n y = 1'b1;\\n return 1'b0;\\n }\\n always_ff (clk) {\\n if clear {\\n side_effect = 1'b0;\\n result = 1'b0;\\n } else {\\n result = if cond ? 1'b1 : set_side_effect(side_effect);\\n }\\n }\\n assign side_state = side_effect;\\n}\\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(450), length: 11 }, output_declaration: [SourceSpan { offset: SourceOffset(725), length: 1 }], token_source: File { path: PathId(1), text: TextId(198) }, instance: None }, InvalidLogicalOperand { kind: \"Operand of logical operator\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\nmodule Top (\\n clk: input clock,\\n clear: input logic,\\n cond: input logic<130>,\\n side_state: output logic,\\n result: output logic,\\n) {\\n var side_effect: logic;\\n function set_side_effect (y: output logic) -> logic {\\n y = 1'b1;\\n return 1'b0;\\n }\\n always_ff (clk) {\\n if clear {\\n side_effect = 1'b0;\\n result = 1'b0;\\n } else {\\n result = if cond ? 1'b1 : set_side_effect(side_effect);\\n }\\n }\\n assign side_state = side_effect;\\n}\\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(420), length: 4 }, token_source: File { path: PathId(1), text: TextId(198) }, instance: None }]", + "expectation": "Simulation", + "name": "four_state_expression_semantics::effectful_ternary_takes_known_true_branch_despite_unknown_bits", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "FourState", + "detail": "Veryl analyze_pass2 errors: [InvalidLogicalOperand { kind: \"Conditional expression\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\nmodule Top (\\n clk: input clock,\\n cond: input logic<8>,\\n wide_cond: input logic<130>,\\n if_result: output logic,\\n wide_if_result: output logic,\\n case_result: output logic,\\n function_result: output logic,\\n function_side: output logic,\\n) {\\n function choose (c: input logic<8>, side: output logic) -> logic {\\n if c {\\n side = 1'b1;\\n return 1'b1;\\n } else {\\n side = 1'b0;\\n return 1'b0;\\n }\\n }\\n always_ff (clk) {\\n if cond {\\n if_result = 1'b1;\\n } else {\\n if_result = 1'b0;\\n }\\n if wide_cond {\\n wide_if_result = 1'b1;\\n } else {\\n wide_if_result = 1'b0;\\n }\\n case cond {\\n 8'h80: case_result = 1'b1;\\n default: case_result = 1'b0;\\n }\\n function_result = choose(cond, function_side);\\n }\\n}\\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(343), length: 1 }, token_source: File { path: PathId(1), text: TextId(199) }, instance: None }, InvalidLogicalOperand { kind: \"Conditional expression\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\nmodule Top (\\n clk: input clock,\\n cond: input logic<8>,\\n wide_cond: input logic<130>,\\n if_result: output logic,\\n wide_if_result: output logic,\\n case_result: output logic,\\n function_result: output logic,\\n function_side: output logic,\\n) {\\n function choose (c: input logic<8>, side: output logic) -> logic {\\n if c {\\n side = 1'b1;\\n return 1'b1;\\n } else {\\n side = 1'b0;\\n return 1'b0;\\n }\\n }\\n always_ff (clk) {\\n if cond {\\n if_result = 1'b1;\\n } else {\\n if_result = 1'b0;\\n }\\n if wide_cond {\\n wide_if_result = 1'b1;\\n } else {\\n wide_if_result = 1'b0;\\n }\\n case cond {\\n 8'h80: case_result = 1'b1;\\n default: case_result = 1'b0;\\n }\\n function_result = choose(cond, function_side);\\n }\\n}\\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(513), length: 4 }, token_source: File { path: PathId(1), text: TextId(199) }, instance: None }, InvalidLogicalOperand { kind: \"Conditional expression\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\nmodule Top (\\n clk: input clock,\\n cond: input logic<8>,\\n wide_cond: input logic<130>,\\n if_result: output logic,\\n wide_if_result: output logic,\\n case_result: output logic,\\n function_result: output logic,\\n function_side: output logic,\\n) {\\n function choose (c: input logic<8>, side: output logic) -> logic {\\n if c {\\n side = 1'b1;\\n return 1'b1;\\n } else {\\n side = 1'b0;\\n return 1'b0;\\n }\\n }\\n always_ff (clk) {\\n if cond {\\n if_result = 1'b1;\\n } else {\\n if_result = 1'b0;\\n }\\n if wide_cond {\\n wide_if_result = 1'b1;\\n } else {\\n wide_if_result = 1'b0;\\n }\\n case cond {\\n 8'h80: case_result = 1'b1;\\n default: case_result = 1'b0;\\n }\\n function_result = choose(cond, function_side);\\n }\\n}\\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(618), length: 9 }, token_source: File { path: PathId(1), text: TextId(199) }, instance: None }, FunctionOutputInAlwaysFf { function: \"choose\", output: \"side\", destination: \"function_side\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\nmodule Top (\\n clk: input clock,\\n cond: input logic<8>,\\n wide_cond: input logic<130>,\\n if_result: output logic,\\n wide_if_result: output logic,\\n case_result: output logic,\\n function_result: output logic,\\n function_side: output logic,\\n) {\\n function choose (c: input logic<8>, side: output logic) -> logic {\\n if c {\\n side = 1'b1;\\n return 1'b1;\\n } else {\\n side = 1'b0;\\n return 1'b0;\\n }\\n }\\n always_ff (clk) {\\n if cond {\\n if_result = 1'b1;\\n } else {\\n if_result = 1'b0;\\n }\\n if wide_cond {\\n wide_if_result = 1'b1;\\n } else {\\n wide_if_result = 1'b0;\\n }\\n case cond {\\n 8'h80: case_result = 1'b1;\\n default: case_result = 1'b0;\\n }\\n function_result = choose(cond, function_side);\\n }\\n}\\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\nmodule Top (\\n clk: input clock,\\n cond: input logic<8>,\\n wide_cond: input logic<130>,\\n if_result: output logic,\\n wide_if_result: output logic,\\n case_result: output logic,\\n function_result: output logic,\\n function_side: output logic,\\n) {\\n function choose (c: input logic<8>, side: output logic) -> logic {\\n if c {\\n side = 1'b1;\\n return 1'b1;\\n } else {\\n side = 1'b0;\\n return 1'b0;\\n }\\n }\\n always_ff (clk) {\\n if cond {\\n if_result = 1'b1;\\n } else {\\n if_result = 1'b0;\\n }\\n if wide_cond {\\n wide_if_result = 1'b1;\\n } else {\\n wide_if_result = 1'b0;\\n }\\n case cond {\\n 8'h80: case_result = 1'b1;\\n default: case_result = 1'b0;\\n }\\n function_result = choose(cond, function_side);\\n }\\n}\\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(876), length: 13 }, output_declaration: [SourceSpan { offset: SourceOffset(1201), length: 4 }], token_source: File { path: PathId(1), text: TextId(199) }, instance: None }]", + "expectation": "Simulation", + "name": "four_state_expression_semantics::ff_procedural_control_uses_known_nonzero_truth", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Functions", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"produce\", output: \"dst\", destination: \"high\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock, d: input logic<8>,\\n high: output logic<8>, low: output logic<8>, returned: output logic<8>,\\n ) {\\n function produce (x: input logic<8>, dst: output signed logic<8>) -> logic<8> {\\n dst = x;\\n return x;\\n }\\n always_ff (clk) {\\n returned = produce(d, {high, low});\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock, d: input logic<8>,\\n high: output logic<8>, low: output logic<8>, returned: output logic<8>,\\n ) {\\n function produce (x: input logic<8>, dst: output signed logic<8>) -> logic<8> {\\n dst = x;\\n return x;\\n }\\n always_ff (clk) {\\n returned = produce(d, {high, low});\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(393), length: 4 }, output_declaration: [SourceSpan { offset: SourceOffset(651), length: 3 }], token_source: File { path: PathId(1), text: TextId(161) }, instance: None }, FunctionOutputInAlwaysFf { function: \"produce\", output: \"dst\", destination: \"low\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock, d: input logic<8>,\\n high: output logic<8>, low: output logic<8>, returned: output logic<8>,\\n ) {\\n function produce (x: input logic<8>, dst: output signed logic<8>) -> logic<8> {\\n dst = x;\\n return x;\\n }\\n always_ff (clk) {\\n returned = produce(d, {high, low});\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock, d: input logic<8>,\\n high: output logic<8>, low: output logic<8>, returned: output logic<8>,\\n ) {\\n function produce (x: input logic<8>, dst: output signed logic<8>) -> logic<8> {\\n dst = x;\\n return x;\\n }\\n always_ff (clk) {\\n returned = produce(d, {high, low});\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(399), length: 3 }, output_declaration: [SourceSpan { offset: SourceOffset(651), length: 3 }], token_source: File { path: PathId(1), text: TextId(161) }, instance: None }]", + "expectation": "Simulation", + "name": "function_arguments::test_ff_expression_output_copyout_extends_before_splitting_concat", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Functions", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"outer\", output: \"dst\", destination: \"copied\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock, d: input logic<8>, copied: output logic<8>,\\n returned: output logic<8>, sampled: output logic<8>,\\n ) {\\n function inner (x: input logic<8>, dst: output logic<8>) {\\n dst = x + 8'd1;\\n }\\n function outer (x: input logic<8>, dst: output logic<8>) -> logic<8> {\\n inner(x, dst);\\n dst += 8'd2;\\n return dst + 8'd4;\\n }\\n always_ff (clk) {\\n returned = outer(d, copied);\\n sampled = copied;\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock, d: input logic<8>, copied: output logic<8>,\\n returned: output logic<8>, sampled: output logic<8>,\\n ) {\\n function inner (x: input logic<8>, dst: output logic<8>) {\\n dst = x + 8'd1;\\n }\\n function outer (x: input logic<8>, dst: output logic<8>) -> logic<8> {\\n inner(x, dst);\\n dst += 8'd2;\\n return dst + 8'd4;\\n }\\n always_ff (clk) {\\n returned = outer(d, copied);\\n sampled = copied;\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(548), length: 6 }, output_declaration: [SourceSpan { offset: SourceOffset(957), length: 3 }], token_source: File { path: PathId(1), text: TextId(212) }, instance: None }]", + "expectation": "Simulation", + "name": "function_arguments::test_ff_nested_output_copyout_is_visible_before_outer_copyout", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Functions", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"write\", output: \"dst\", destination: \"word\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock, d: input logic<8>, index: input logic<2>,\\n word: output logic<32>, sampled: output logic<32>, returned: output logic<8>,\\n ) {\\n function write (x: input logic<8>, dst: output logic<8>) -> logic<8> {\\n dst = x;\\n return x ^ 8'hff;\\n }\\n always_ff (clk) {\\n returned = write(d, word[index step 8]);\\n sampled = word;\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock, d: input logic<8>, index: input logic<2>,\\n word: output logic<32>, sampled: output logic<32>, returned: output logic<8>,\\n ) {\\n function write (x: input logic<8>, dst: output logic<8>) -> logic<8> {\\n dst = x;\\n return x ^ 8'hff;\\n }\\n always_ff (clk) {\\n returned = write(d, word[index step 8]);\\n sampled = word;\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(418), length: 18 }, output_declaration: [SourceSpan { offset: SourceOffset(743), length: 3 }], token_source: File { path: PathId(1), text: TextId(165) }, instance: None }]", + "expectation": "Simulation", + "name": "function_arguments::test_ff_output_copyout_to_dynamic_slice_preserves_other_bits", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Functions", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"swap\", output: \"new_first\", destination: \"first\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock, first: output logic<8>,\\n second: output logic<8>, sampled: output logic<8>,\\n ) {\\n function swap (\\n old_first: input logic<8>, old_second: input logic<8>,\\n new_first: output logic<8>, new_second: output logic<8>,\\n ) {\\n new_first = old_second;\\n new_second = old_first;\\n }\\n always_ff (clk) {\\n swap(first, second, first, second);\\n sampled = first;\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock, first: output logic<8>,\\n second: output logic<8>, sampled: output logic<8>,\\n ) {\\n function swap (\\n old_first: input logic<8>, old_second: input logic<8>,\\n new_first: output logic<8>, new_second: output logic<8>,\\n ) {\\n new_first = old_second;\\n new_second = old_first;\\n }\\n always_ff (clk) {\\n swap(first, second, first, second);\\n sampled = first;\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(499), length: 5 }, output_declaration: [SourceSpan { offset: SourceOffset(843), length: 9 }], token_source: File { path: PathId(1), text: TextId(162) }, instance: None }, FunctionOutputInAlwaysFf { function: \"swap\", output: \"new_second\", destination: \"second\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock, first: output logic<8>,\\n second: output logic<8>, sampled: output logic<8>,\\n ) {\\n function swap (\\n old_first: input logic<8>, old_second: input logic<8>,\\n new_first: output logic<8>, new_second: output logic<8>,\\n ) {\\n new_first = old_second;\\n new_second = old_first;\\n }\\n always_ff (clk) {\\n swap(first, second, first, second);\\n sampled = first;\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock, first: output logic<8>,\\n second: output logic<8>, sampled: output logic<8>,\\n ) {\\n function swap (\\n old_first: input logic<8>, old_second: input logic<8>,\\n new_first: output logic<8>, new_second: output logic<8>,\\n ) {\\n new_first = old_second;\\n new_second = old_first;\\n }\\n always_ff (clk) {\\n swap(first, second, first, second);\\n sampled = first;\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(506), length: 6 }, output_declaration: [SourceSpan { offset: SourceOffset(871), length: 10 }], token_source: File { path: PathId(1), text: TextId(162) }, instance: None }]", + "expectation": "Simulation", + "name": "function_arguments::test_ff_statement_output_copyout_freezes_all_inputs", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Functions", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"split\", output: \"truncated\", destination: \"ff_narrow\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock, d: input logic<8>, narrow: output logic<4>,\\n signed_wide: output logic<16>, unsigned_wide: output logic<16>,\\n ff_narrow: output logic<4>,\\n ff_signed_wide: output logic<16>, ff_unsigned_wide: output logic<16>,\\n ) {\\n function split (\\n x: input logic<8>, truncated: output logic<8>,\\n negative: output signed logic<8>, positive: output logic<8>,\\n ) {\\n truncated = x;\\n negative = x;\\n positive = x;\\n }\\n always_comb {\\n split(d, narrow, signed_wide, unsigned_wide);\\n }\\n always_ff (clk) {\\n split(d, ff_narrow, ff_signed_wide, ff_unsigned_wide);\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock, d: input logic<8>, narrow: output logic<4>,\\n signed_wide: output logic<16>, unsigned_wide: output logic<16>,\\n ff_narrow: output logic<4>,\\n ff_signed_wide: output logic<16>, ff_unsigned_wide: output logic<16>,\\n ) {\\n function split (\\n x: input logic<8>, truncated: output logic<8>,\\n negative: output signed logic<8>, positive: output logic<8>,\\n ) {\\n truncated = x;\\n negative = x;\\n positive = x;\\n }\\n always_comb {\\n split(d, narrow, signed_wide, unsigned_wide);\\n }\\n always_ff (clk) {\\n split(d, ff_narrow, ff_signed_wide, ff_unsigned_wide);\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(753), length: 9 }, output_declaration: [SourceSpan { offset: SourceOffset(1198), length: 9 }], token_source: File { path: PathId(1), text: TextId(164) }, instance: None }, FunctionOutputInAlwaysFf { function: \"split\", output: \"negative\", destination: \"ff_signed_wide\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock, d: input logic<8>, narrow: output logic<4>,\\n signed_wide: output logic<16>, unsigned_wide: output logic<16>,\\n ff_narrow: output logic<4>,\\n ff_signed_wide: output logic<16>, ff_unsigned_wide: output logic<16>,\\n ) {\\n function split (\\n x: input logic<8>, truncated: output logic<8>,\\n negative: output signed logic<8>, positive: output logic<8>,\\n ) {\\n truncated = x;\\n negative = x;\\n positive = x;\\n }\\n always_comb {\\n split(d, narrow, signed_wide, unsigned_wide);\\n }\\n always_ff (clk) {\\n split(d, ff_narrow, ff_signed_wide, ff_unsigned_wide);\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock, d: input logic<8>, narrow: output logic<4>,\\n signed_wide: output logic<16>, unsigned_wide: output logic<16>,\\n ff_narrow: output logic<4>,\\n ff_signed_wide: output logic<16>, ff_unsigned_wide: output logic<16>,\\n ) {\\n function split (\\n x: input logic<8>, truncated: output logic<8>,\\n negative: output signed logic<8>, positive: output logic<8>,\\n ) {\\n truncated = x;\\n negative = x;\\n positive = x;\\n }\\n always_comb {\\n split(d, narrow, signed_wide, unsigned_wide);\\n }\\n always_ff (clk) {\\n split(d, ff_narrow, ff_signed_wide, ff_unsigned_wide);\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(764), length: 14 }, output_declaration: [SourceSpan { offset: SourceOffset(1242), length: 8 }], token_source: File { path: PathId(1), text: TextId(164) }, instance: None }, FunctionOutputInAlwaysFf { function: \"split\", output: \"positive\", destination: \"ff_unsigned_wide\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock, d: input logic<8>, narrow: output logic<4>,\\n signed_wide: output logic<16>, unsigned_wide: output logic<16>,\\n ff_narrow: output logic<4>,\\n ff_signed_wide: output logic<16>, ff_unsigned_wide: output logic<16>,\\n ) {\\n function split (\\n x: input logic<8>, truncated: output logic<8>,\\n negative: output signed logic<8>, positive: output logic<8>,\\n ) {\\n truncated = x;\\n negative = x;\\n positive = x;\\n }\\n always_comb {\\n split(d, narrow, signed_wide, unsigned_wide);\\n }\\n always_ff (clk) {\\n split(d, ff_narrow, ff_signed_wide, ff_unsigned_wide);\\n }\\n }\\n \\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\n module Top (\\n clk: input clock, d: input logic<8>, narrow: output logic<4>,\\n signed_wide: output logic<16>, unsigned_wide: output logic<16>,\\n ff_narrow: output logic<4>,\\n ff_signed_wide: output logic<16>, ff_unsigned_wide: output logic<16>,\\n ) {\\n function split (\\n x: input logic<8>, truncated: output logic<8>,\\n negative: output signed logic<8>, positive: output logic<8>,\\n ) {\\n truncated = x;\\n negative = x;\\n positive = x;\\n }\\n always_comb {\\n split(d, narrow, signed_wide, unsigned_wide);\\n }\\n always_ff (clk) {\\n split(d, ff_narrow, ff_signed_wide, ff_unsigned_wide);\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(780), length: 16 }, output_declaration: [SourceSpan { offset: SourceOffset(1276), length: 8 }], token_source: File { path: PathId(1), text: TextId(164) }, instance: None }]", + "expectation": "Simulation", + "name": "function_arguments::test_output_copyout_converts_formal_width_and_signedness_in_comb_and_ff", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Operators", + "detail": "Veryl analyze_pass2 errors: [FunctionOutputInAlwaysFf { function: \"observe_exponent\", output: \"observed\", destination: \"ff_seen\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\nmodule Top (\\n clk: input clock,\\n base: input logic<8>,\\n exponent: input logic<4>,\\n comb_o: output logic<8>,\\n ff_o: output logic<8>,\\n comb_seen: output logic<4>,\\n ff_seen: output logic<4>,\\n) {\\n function observe_exponent (\\n value: input logic<4>,\\n observed: output logic<4>,\\n ) -> logic<4> {\\n observed = value;\\n return value;\\n }\\n assign comb_o = base ** observe_exponent(exponent, comb_seen);\\n always_ff (clk) {\\n ff_o = base ** observe_exponent(exponent, ff_seen);\\n }\\n}\\n\", line_offset: 0 }, Source { path: \"test.veryl\", text: \"\\nmodule Top (\\n clk: input clock,\\n base: input logic<8>,\\n exponent: input logic<4>,\\n comb_o: output logic<8>,\\n ff_o: output logic<8>,\\n comb_seen: output logic<4>,\\n ff_seen: output logic<4>,\\n) {\\n function observe_exponent (\\n value: input logic<4>,\\n observed: output logic<4>,\\n ) -> logic<4> {\\n observed = value;\\n return value;\\n }\\n assign comb_o = base ** observe_exponent(exponent, comb_seen);\\n always_ff (clk) {\\n ff_o = base ** observe_exponent(exponent, ff_seen);\\n }\\n}\\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(525), length: 7 }, output_declaration: [SourceSpan { offset: SourceOffset(828), length: 8 }], token_source: File { path: PathId(1), text: TextId(282) }, instance: None }]", + "expectation": "Simulation", + "name": "operators::test_pow_operator_runtime_exponent_comb_and_ff", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "ControlFlow", + "detail": "Veryl analyze_pass2 errors: [InvalidForRange { kind: NegativeBound, help: \"for-loop range bounds are elaborated as unsigned; rewrite the range to start at 0 and offset inside the body\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n sum_fwd: output logic<32>,\\n sum_rev: output logic<32>\\n ) {\\n always_comb {\\n sum_fwd = 0;\\n for i in (0 - 1)..=1 {\\n sum_fwd += i as 32;\\n }\\n\\n sum_rev = 0;\\n for i in rev (0 - 1)..=1 {\\n sum_rev = sum_rev * 10 + (i + 1) as 32;\\n }\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(191), length: 11 }, token_source: File { path: PathId(1), text: TextId(345) }, instance: None }, InvalidForRange { kind: NegativeBound, help: \"for-loop range bounds are elaborated as unsigned; rewrite the range to start at 0 and offset inside the body\", input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\n module Top (\\n sum_fwd: output logic<32>,\\n sum_rev: output logic<32>\\n ) {\\n always_comb {\\n sum_fwd = 0;\\n for i in (0 - 1)..=1 {\\n sum_fwd += i as 32;\\n }\\n\\n sum_rev = 0;\\n for i in rev (0 - 1)..=1 {\\n sum_rev = sum_rev * 10 + (i + 1) as 32;\\n }\\n }\\n }\\n \\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(322), length: 11 }, token_source: File { path: PathId(1), text: TextId(345) }, instance: None }]", + "expectation": "Simulation", + "name": "synth_dynamic_loop::test_constant_signed_bounds_in_unrolled_synth_loops", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Functions", + "detail": "Veryl analyze_pass2 errors: [UnevaluableValue { kind: SystemFunctionArg(\"$clog2\"), input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\nmodule Top (\\n d: input logic<8>,\\n q: output logic<32>,\\n) {\\n always_comb {\\n q = $clog2(d);\\n }\\n}\\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(103), length: 1 }, token_source: File { path: PathId(1), text: TextId(364) }, instance: None }]", + "expectation": "Simulation", + "name": "system_function::test_direct_comb_clog2_system_function", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Functions", + "detail": "Veryl analyze_pass2 errors: [UnevaluableValue { kind: SystemFunctionArg(\"$onehot\"), input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\nmodule Top (\\n d: input logic<8>,\\n q: output logic,\\n) {\\n always_comb {\\n q = $onehot(d);\\n }\\n}\\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(100), length: 1 }, token_source: File { path: PathId(1), text: TextId(360) }, instance: None }]", + "expectation": "Simulation", + "name": "system_function::test_direct_comb_onehot_system_function", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Functions", + "detail": "Veryl analyze_pass2 errors: [UnevaluableValue { kind: SystemFunctionArg(\"$clog2\"), input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\nmodule Top (\\n clk: input clock,\\n d: input logic<8>,\\n q: output logic<32>,\\n) {\\n always_ff (clk) {\\n q = $clog2(d);\\n }\\n}\\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(129), length: 1 }, token_source: File { path: PathId(1), text: TextId(379) }, instance: None }]", + "expectation": "Simulation", + "name": "system_function::test_direct_ff_clog2_system_function", + "phase": "emission", + "status": "emission_error" + }, + { + "category": "Functions", + "detail": "Veryl analyze_pass2 errors: [UnevaluableValue { kind: SystemFunctionArg(\"$onehot\"), input: MultiSources { sources: [Source { path: \"test.veryl\", text: \"\\nmodule Top (\\n clk: input clock,\\n d: input logic<8>,\\n q: output logic,\\n) {\\n always_ff (clk) {\\n q = $onehot(d);\\n }\\n}\\n\", line_offset: 0 }] }, error_location: SourceSpan { offset: SourceOffset(126), length: 1 }, token_source: File { path: PathId(1), text: TextId(385) }, instance: None }]", + "expectation": "Simulation", + "name": "system_function::test_direct_ff_onehot_system_function", + "phase": "emission", + "status": "emission_error" + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim.json b/crates/celox-test-suite/verification/sv/xezim.json new file mode 100644 index 00000000000..2f2c970adf4 --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim.json @@ -0,0 +1,42 @@ +{ + "case_files": [ + "xezim/aggregate_regressions.json", + "xezim/always_comb.json", + "xezim/binary_file_io.json", + "xezim/class.json", + "xezim/distributions.json", + "xezim/edges.json", + "xezim/file_core.json", + "xezim/file_io.json", + "xezim/floating_point.json", + "xezim/generate.json", + "xezim/hierarchy.json", + "xezim/indexed_select.json", + "xezim/interfaces.json", + "xezim/latch.json", + "xezim/literals.json", + "xezim/operators.json", + "xezim/packed_structs.json", + "xezim/procedural.json", + "xezim/random_plusargs.json", + "xezim/real_extensions.json", + "xezim/real_math.json", + "xezim/realtime.json", + "xezim/review_regressions.json", + "xezim/scan.json", + "xezim/string.json", + "xezim/synthesizable.json", + "xezim/system_functions.json", + "xezim/tagged_unions.json", + "xezim/timing.json", + "xezim/types.json", + "xezim/unions.json" + ], + "exclude_stronger_than_sv": false, + "include_ignored": false, + "schema_version": 4, + "suite": "sv", + "suite_version": "0.11.0", + "tool": "xezim", + "version": "xezim version 0.11.3" +} diff --git a/crates/celox-test-suite/verification/sv/xezim/aggregate_regressions.json b/crates/celox-test-suite/verification/sv/xezim/aggregate_regressions.json new file mode 100644 index 00000000000..3a768e9ccbd --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/aggregate_regressions.json @@ -0,0 +1,125 @@ +{ + "cases": [ + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "aggregate_regressions::coincident_disjoint_byte_writers", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "aggregate_regressions::concatenated_runtime_index", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "aggregate_regressions::concatenated_static_loop_initializer", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "aggregate_regressions::continuous_function_dynamic_scratch_write", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "aggregate_regressions::continuous_nested_concatenated_targets", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "aggregate_regressions::independent_clock_byte_writers", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "aggregate_regressions::independent_clock_memory_writers", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "aggregate_regressions::masked_feed_forward_dependencies", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "aggregate_regressions::parameter_element_forwarding at 73:3: assert_eq y: expected 0x810, got 0x0", + "expectation": "Simulation", + "name": "aggregate_regressions::parameter_element_forwarding", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "aggregate_regressions::parameter_runtime_element_bit at 87:5: assert_eq y: expected 0x1, got 0xX", + "expectation": "Simulation", + "name": "aggregate_regressions::parameter_runtime_element_bit", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "aggregate_regressions::shared_memory_reads_pre_edge_values", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/always_comb.json b/crates/celox-test-suite/verification/sv/xezim/always_comb.json new file mode 100644 index 00000000000..1d1ea08908e --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/always_comb.json @@ -0,0 +1,59 @@ +{ + "cases": [ + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "always_comb::explicit_list_of_every_read_settles_like_a_wildcard", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "always_comb::orders_dynamic_array_read_after_its_writer", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "always_comb::preserves_intervening_reads_when_merging_conditional_writes", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "always_comb::settles_feedback_through_disjoint_bits_of_one_variable", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "always_comb::simulates_systemverilog_always_comb_dependency", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/binary_file_io.json b/crates/celox-test-suite/verification/sv/xezim/binary_file_io.json new file mode 100644 index 00000000000..69fef9e90b6 --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/binary_file_io.json @@ -0,0 +1,15 @@ +{ + "cases": [ + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "binary_file_io::zero_count_preserves_memory", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/class.json b/crates/celox-test-suite/verification/sv/xezim/class.json new file mode 100644 index 00000000000..275fed951b0 --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/class.json @@ -0,0 +1,312 @@ +{ + "cases": [ + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "class::abstract_classes_and_pure_virtual_methods", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "class::casts_from_interface_class_handles at 713:3: expect_output: expected [49, 32, 56, 10, 49, 32, 49, 10, 48, 32, 56, 10], got [48, 32, 48, 10, 49, 32, 49, 10, 49, 32, 48, 10]", + "expectation": "Simulation", + "name": "class::casts_from_interface_class_handles", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "class::casts_of_class_handles at 669:3: expect_output: expected [49, 32, 52, 10, 48, 32, 52, 10, 49, 32, 49, 10, 49, 32, 52, 10, 114, 111, 99, 107, 10, 49, 32, 49, 10, 52, 10], got [49, 32, 48, 10, 48, 32, 48, 10, 49, 32, 49, 10, 49, 32, 52, 10, 114, 111, 99, 107, 10, 49, 32, 49, 10, 48, 10]", + "expectation": "Simulation", + "name": "class::casts_of_class_handles", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "class::classes_implementing_interface_classes", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "the simulation ended before the script did", + "expectation": "Simulation", + "name": "class::constructors_chain_to_base", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "class::derived_properties_hide_base_properties", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "class::extern_methods_and_tasks at 116:46: assert_eq result: expected 0x6d, got 0x64", + "expectation": "Simulation", + "name": "class::extern_methods_and_tasks", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "class::implicit_constructors_and_this", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "class::inherited_methods_of_extended_interface_classes", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "class::inherited_properties_and_methods", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "class::methods_called_through_interface_class_handles", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "class::methods_of_handle_array_elements", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "class::objects_properties_and_methods", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "class::objects_referring_to_objects", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "the simulation ended before the script did", + "expectation": "Simulation", + "name": "class::objects_survive_heap_collections", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "class::randomization_enum_alias at 1038:46: assert_eq errors: expected 0x0, got 0x81", + "expectation": "Simulation", + "name": "class::randomization_enum_alias", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "class::randomization_enum_domain at 979:46: assert_eq errors: expected 0x0, got 0x1e5", + "expectation": "Simulation", + "name": "class::randomization_enum_domain", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "class::randomization_enum_fill_literals at 1069:46: assert_eq errors: expected 0x0, got 0x18", + "expectation": "Simulation", + "name": "class::randomization_enum_fill_literals", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "class::randomization_enum_inheritance at 1010:46: assert_eq errors: expected 0x0, got 0xff", + "expectation": "Simulation", + "name": "class::randomization_enum_inheritance", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "class::randomization_inheritance at 835:46: assert_eq errors: expected 0x0, got 0x1", + "expectation": "Simulation", + "name": "class::randomization_inheritance", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "class::randomization_mode_bit_argument at 931:46: assert_eq errors: expected 0x0, got 0x3", + "expectation": "Simulation", + "name": "class::randomization_mode_bit_argument", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "class::randomization_modes_and_selection at 882:46: assert_eq errors: expected 0x0, got 0x1414", + "expectation": "Simulation", + "name": "class::randomization_modes_and_selection", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "class::randomization_pre_hook_controls_modes at 908:46: assert_eq errors: expected 0x0, got 0x2", + "expectation": "Simulation", + "name": "class::randomization_pre_hook_controls_modes", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "class::randomize_without_rand_members", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "class::static_properties_and_methods", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "class::string_methods_on_properties", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "class::unconstrained_randomize", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "class::virtual_methods_dispatch_on_object_class", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/distributions.json b/crates/celox-test-suite/verification/sv/xezim/distributions.json new file mode 100644 index 00000000000..bfdda64a84b --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/distributions.json @@ -0,0 +1,26 @@ +{ + "cases": [ + { + "category": "Sequential", + "detail": "distributions::annex_n_reference_values at 40:3: assert_eq ok: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "distributions::annex_n_reference_values", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "distributions::replay_and_normal_parameters", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/edges.json b/crates/celox-test-suite/verification/sv/xezim/edges.json new file mode 100644 index 00000000000..519ff5ae0d5 --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/edges.json @@ -0,0 +1,59 @@ +{ + "cases": [ + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "edges::comb_clock_edges_follow_table_9_2", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "edges::gated_clock_edges_from_unknown_levels", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "edges::internal_async_reset_edges_follow_table_9_2 at 131:5: assert_eq hits_l: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "edges::internal_async_reset_edges_follow_table_9_2", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "edges::register_clock_edges_follow_table_9_2", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "edges::register_clock_two_state_edges", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/file_core.json b/crates/celox-test-suite/verification/sv/xezim/file_core.json new file mode 100644 index 00000000000..1750a9b87e8 --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/file_core.json @@ -0,0 +1,15 @@ +{ + "cases": [ + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "file_core::flush_preserves_stdout_order_and_integral_return_types", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/file_io.json b/crates/celox-test-suite/verification/sv/xezim/file_io.json new file mode 100644 index 00000000000..d52465f66e4 --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/file_io.json @@ -0,0 +1,26 @@ +{ + "cases": [ + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "file_io::edge_procedures_execute_requests_in_statement_order", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "file_io::stdout_preserves_format_and_call_order", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/floating_point.json b/crates/celox-test-suite/verification/sv/xezim/floating_point.json new file mode 100644 index 00000000000..4fe8215a4f2 --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/floating_point.json @@ -0,0 +1,180 @@ +{ + "cases": [ + { + "category": "Operators", + "detail": "floating_point::real_arithmetic_and_rounding at 27:34: assert_eq quotient: expected 0xfffffffc, got 0x7ffffffd", + "expectation": "Simulation", + "name": "floating_point::real_arithmetic_and_rounding", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "floating_point::real_bits_and_comparisons", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "floating_point::real_conversion_functions at 196:3: assert_eq integer_real_bits: expected 0xbff0000000000000, got 0x41efffffffe00000", + "expectation": "Simulation", + "name": "floating_point::real_conversion_functions", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "floating_point::real_display_formats at 238:3: expect_output: expected [102, 61, 91, 32, 32, 32, 32, 49, 46, 53, 48, 93, 32, 101, 61, 91, 49, 46, 53, 48, 48, 101, 43, 48, 48, 93, 32, 103, 61, 91, 49, 46, 53, 93, 32, 115, 104, 111, 114, 116, 61, 91, 49, 46, 53, 93, 32, 101, 120, 112, 114, 61, 91, 51, 46, 48, 93, 32, 115, 105, 103, 110, 101, 100, 61, 91, 45, 50, 46, 48, 93, 32, 117, 110, 115, 105, 103, 110, 101, 100, 61, 91, 52, 50, 57, 52, 57, 54, 55, 50, 57, 53, 46, 48, 93, 10, 102, 108, 97, 103, 115, 61, 91, 43, 49, 46, 53, 93, 91, 48, 48, 48, 48, 48, 48, 49, 46, 53, 48, 93, 32, 49, 46, 53, 48, 48, 48, 48, 10], got [102, 61, 91, 32, 32, 32, 32, 49, 46, 53, 48, 93, 32, 101, 61, 91, 49, 46, 53, 48, 48, 101, 43, 48, 48, 93, 32, 103, 61, 91, 49, 46, 53, 93, 32, 115, 104, 111, 114, 116, 61, 91, 49, 46, 53, 93, 32, 101, 120, 112, 114, 61, 91, 51, 46, 48, 93, 32, 115, 105, 103, 110, 101, 100, 61, 91, 45, 50, 46, 48, 93, 32, 117, 110, 115, 105, 103, 110, 101, 100, 61, 91, 52, 50, 57, 52, 57, 54, 55, 50, 57, 53, 46, 48, 93, 10, 102, 108, 97, 103, 115, 61, 91, 43, 49, 46, 53, 93, 91, 48, 48, 48, 48, 48, 48, 49, 46, 53, 48, 93, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 49, 46, 53, 10]", + "expectation": "Simulation", + "name": "floating_point::real_display_formats", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "floating_point::real_display_negative_zero", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "floating_point::real_file_display_formats", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "floating_point::real_narrow_integer_conversion", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "floating_point::real_parameter_and_default_storage", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "floating_point::real_parameter_overrides_from_math_and_generate_scopes", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "floating_point::real_parameter_overrides_keep_declared_conversion_contexts", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "floating_point::real_parameter_overrides_preserve_fractional_values", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "floating_point::real_ports_and_subroutines at 175:31: assert_eq result: expected 0xfffffffc, got 0x7ffffffd", + "expectation": "Simulation", + "name": "floating_point::real_ports_and_subroutines", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "floating_point::real_truth_and_unknown_integer_conversion", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "floating_point::real_zero_divisor", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "floating_point::sequential_real at 97:3: assert_eq result: expected 0xfffffffe, got 0x7fffffff", + "expectation": "Simulation", + "name": "floating_point::sequential_real", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "floating_point::shortreal_storage_precision at 78:3: assert_eq narrow: expected 0x1000000, got 0x1000001", + "expectation": "Simulation", + "name": "floating_point::shortreal_storage_precision", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/generate.json b/crates/celox-test-suite/verification/sv/xezim/generate.json new file mode 100644 index 00000000000..0493d6a8e07 --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/generate.json @@ -0,0 +1,411 @@ +{ + "cases": [ + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "generate::binds_generate_parameter_declarations_as_localparams", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "generate::bits_of_generate_local_array_element_localparam at 873:3: assert_eq y: expected 0x4, got 0x0", + "expectation": "Simulation", + "name": "generate::bits_of_generate_local_array_element_localparam", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "generate::bits_of_generate_local_array_elements at 851:3: assert_eq y: expected 0x4, got 0x0", + "expectation": "Simulation", + "name": "generate::bits_of_generate_local_array_elements", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "generate::coerces_genvar_values_to_signed_32_bits", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "generate::connects_generated_outputs_to_ascending_packed_slices", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "generate::counts_only_known_ones_in_generate_system_functions", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "xezim build exit status: 1; see /build.log\nParsed 2 file(s): 3 descriptions, 0 errors, 0 warnings\nSimulation error: duplicate instance name 'a.b.child' in the same scope (IEEE 1800-2017 §23.3.2); a second #() override would silently apply to both instances\n", + "expectation": "Simulation", + "name": "generate::distinguishes_escaped_generate_scope_components", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "generate::elaborates_generate_declaration_widths_and_shadowing", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "generate::elaborates_generate_lanes_with_local_state_and_instances", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "generate::elaborates_nested_generate_and_case_branches", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "generate::evaluates_module_constant_functions_in_generate_schemes", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "generate::expands_constant_functions_in_genvar_updates", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "generate::freezes_typedef_ranges_before_generate_parameter_shadowing", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "generate::generate_local_typedefs_keep_lexical_scope at 919:3: assert_eq y: expected 0xa7, got 0x7", + "expectation": "Simulation", + "name": "generate::generate_local_typedefs_keep_lexical_scope", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "generate::genvar_shadows_inherited_parameter_shapes at 123:3: assert_eq unpacked_dimensions: expected 0x0, got 0x1", + "expectation": "Simulation", + "name": "generate::genvar_shadows_inherited_parameter_shapes", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "generate::genvar_shadows_inherited_parameter_values_and_types at 65:3: assert_eq checks: expected 0x7, got 0x0", + "expectation": "Simulation", + "name": "generate::genvar_shadows_inherited_parameter_values_and_types", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "generate::genvar_shadows_module_localparam", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "generate::ignores_type_aliases_in_inactive_generate_branches", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "generate::permits_functions_in_escaped_conditional_generate_labels", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "generate::predeclares_generate_signals_and_functions", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "generate::prefers_function_local_types_over_generate_signals at 422:3: assert_eq y: expected 0x7c01, got 0xfffffba9", + "expectation": "Simulation", + "name": "generate::prefers_function_local_types_over_generate_signals", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "generate::preserves_generate_constant_scopes_and_masks", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "generate::preserves_generate_localparam_types_in_child_overrides", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "generate::preserves_unsigned_rhs_in_compound_genvar_updates", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "invalid design was accepted: generate::rejects_an_escaped_generate_block_named_like_a_port", + "expectation": "CompilationError", + "name": "generate::rejects_an_escaped_generate_block_named_like_a_port", + "phase": "execute", + "status": "unexpected_accept", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "generate::resolves_each_generate_signal_declarator_independently reads y with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "generate::resolves_each_generate_signal_declarator_independently", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "generate::resolves_forward_generate_localparam_dependencies at 623:3: assert_eq y: expected 0x93, got 0x91", + "expectation": "Simulation", + "name": "generate::resolves_forward_generate_localparam_dependencies", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "generate::resolves_generate_function_names_lexically at 597:5: assert_eq y: expected 0xf, got 0x0", + "expectation": "Simulation", + "name": "generate::resolves_generate_function_names_lexically", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "xezim testbench failed: exit status: 1; see runtime.log and protocol.log\n", + "expectation": "Simulation", + "name": "generate::resolves_generate_signal_size_parameter_dependencies", + "phase": "execute", + "status": "runtime_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "xezim testbench failed: exit status: 1; see runtime.log and protocol.log\n", + "expectation": "Simulation", + "name": "generate::restricts_generate_size_queries_to_visible_functions", + "phase": "execute", + "status": "runtime_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "generate::selects_case_generate_with_four_state_parameter_and_local_labels", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "generate::size_queries_use_generate_local_parameter_types", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "generate::specializes_generate_scopes_for_each_child_parameter", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "generate::treats_unknown_generate_truth_as_false", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "generate::uses_one_width_and_sign_context_for_generate_case", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "generate::uses_scoped_function_return_metadata_for_comb_completeness", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "generate::uses_self_determined_unbased_shift_counts_in_generate_cases", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/hierarchy.json b/crates/celox-test-suite/verification/sv/xezim/hierarchy.json new file mode 100644 index 00000000000..1d382b4b7b3 --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/hierarchy.json @@ -0,0 +1,642 @@ +{ + "cases": [ + { + "category": "Hierarchy", + "detail": "hierarchy::array_parameter_elements_forward_generated_values reads numbers with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "hierarchy::array_parameter_elements_forward_generated_values", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::array_parameter_elements_keep_signed_element_types", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::array_parameter_elements_preserve_four_state_and_conversion", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::array_parameter_elements_preserve_wide_specializations", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "hierarchy::array_parameter_elements_select_conditional_whole_arrays reads first with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "hierarchy::array_parameter_elements_select_conditional_whole_arrays", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "hierarchy::array_parameter_elements_select_package_multidimensional_values at 1319:24: assert_eq nibble_width: expected 0x4, got 0x1", + "expectation": "Simulation", + "name": "hierarchy::array_parameter_elements_select_package_multidimensional_values", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "hierarchy::bits_query_parameter_overrides at 560:3: assert_eq variable_bits: expected 0xc, got 0x0", + "expectation": "Simulation", + "name": "hierarchy::bits_query_parameter_overrides", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::bits_query_parameter_overrides_follow_caller_specialization", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::concatenated_parameter_actuals_use_each_parent_specialization", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::conditional_parameter_actuals_follow_parent_specialization", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::drives_omitted_and_open_child_inputs_with_z", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::generated_parameter_part_select_actuals", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::input_port_defaults_use_child_scope_and_only_omitted_connections", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "hierarchy::named_array_parameters_follow_caller_specialization at 690:3: assert_eq a: expected 0xfdfb, got 0x0", + "expectation": "Simulation", + "name": "hierarchy::named_array_parameters_follow_caller_specialization", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "hierarchy::named_array_parameters_forward_package_subarrays reads y with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "hierarchy::named_array_parameters_forward_package_subarrays", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "hierarchy::named_array_parameters_forward_whole_values at 750:3: assert_eq y: expected 0x12, got 0x0", + "expectation": "Simulation", + "name": "hierarchy::named_array_parameters_forward_whole_values", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "hierarchy::named_array_parameters_keep_four_state_values at 711:3: assert_eq y: expected 0xX, got 0x0", + "expectation": "Simulation", + "name": "hierarchy::named_array_parameters_keep_four_state_values", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::parameter_patterns_bind_caller_types", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "hierarchy::parameter_patterns_bind_nested_caller_types at 348:3: assert_eq y: expected 0xfff7fff9fffbfffd, got 0x0", + "expectation": "Simulation", + "name": "hierarchy::parameter_patterns_bind_nested_caller_types", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "hierarchy::parameter_patterns_evaluate_caller_constant_functions at 381:3: assert_eq y: expected 0xfaf9, got 0xf9", + "expectation": "Simulation", + "name": "hierarchy::parameter_patterns_evaluate_caller_constant_functions", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "xezim build exit status: 1; see /build.log\n/source_0.sv:18:22: error: expected RParen, found ApostropheLBrace ''{'\n 18 | Scalar #(.P(int'{default: 0})) d(builtin);\n | ^~\n/source_0.sv:18:22: error: expected identifier, found ApostropheLBrace ''{'\n 18 | Scalar #(.P(int'{default: 0})) d(builtin);\n | ^~\n/source_0.sv:18:22: error: expected Semicolon, found ApostropheLBrace ''{'\n 18 | Scalar #(.P(int'{default: 0})) d(builtin);\n | ^~\n/source_0.sv:18:22: error: unexpected: \"'{\"\n 18 | Scalar #(.P(int'{default: 0})) d(builtin);\n | ^~\n/source_0.sv:18:31: error: unexpected: \":\"\n 18 | Scalar #(.P(int'{default: 0})) d(builtin);\n | ^\n/source_0.sv:18:33: error: unexpected: \"0\"\n 18 | Scalar #(.P(int'{default: 0})) d(builtin);\n | ^\n/source_0.sv:18:34: error: unexpected: \"}\"\n 18 | Scalar #(.P(int'{default: 0})) d(builtin);\n | ^\n/source_0.sv:18:35: error: unexpected: \")\"\n 18 | Scalar #(.P(int'{default: 0})) d(builtin);\n | ^\n/source_0.sv:18:36: error: unexpected: \")\"\n 18 | Scalar #(.P(int'{default: 0})) d(builtin);\n | ^\nParsed 2 file(s): 4 descriptions, 10 errors, 0 warnings\n", + "expectation": "Simulation", + "name": "hierarchy::parameter_patterns_keep_fill_and_arithmetic_context", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "hierarchy::parameter_patterns_keep_original_declarations_and_isolated_bindings at 524:3: assert_eq repeated: expected 0xfefe, got 0x0", + "expectation": "Simulation", + "name": "hierarchy::parameter_patterns_keep_original_declarations_and_isolated_bindings", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "hierarchy::parameter_patterns_keep_unknown_fill at 363:3: assert_eq xfill: expected 0xx, got 0xX", + "expectation": "Simulation", + "name": "hierarchy::parameter_patterns_keep_unknown_fill", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::parameter_patterns_override_body_declarations", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "xezim build exit status: 1; see /build.log\n/source_0.sv:10:21: error: expected RParen, found ApostropheLBrace ''{'\n 10 | Child #(.P(int'{default: 1})) c(builtin);\n | ^~\n/source_0.sv:10:21: error: expected identifier, found ApostropheLBrace ''{'\n 10 | Child #(.P(int'{default: 1})) c(builtin);\n | ^~\n/source_0.sv:10:21: error: expected Semicolon, found ApostropheLBrace ''{'\n 10 | Child #(.P(int'{default: 1})) c(builtin);\n | ^~\n/source_0.sv:10:21: error: unexpected: \"'{\"\n 10 | Child #(.P(int'{default: 1})) c(builtin);\n | ^~\n/source_0.sv:10:30: error: unexpected: \":\"\n 10 | Child #(.P(int'{default: 1})) c(builtin);\n | ^\n/source_0.sv:10:32: error: unexpected: \"1\"\n 10 | Child #(.P(int'{default: 1})) c(builtin);\n | ^\n/source_0.sv:10:33: error: unexpected: \"}\"\n 10 | Child #(.P(int'{default: 1})) c(builtin);\n | ^\n/source_0.sv:10:34: error: unexpected: \")\"\n 10 | Child #(.P(int'{default: 1})) c(builtin);\n | ^\n/source_0.sv:10:35: error: unexpected: \")\"\n 10 | Child #(.P(int'{default: 1})) c(builtin);\n | ^\n/source_0.sv:12:20: error: expected RParen, found ApostropheLBrace ''{'\n 12 | Wide #(.P(int'{default: 1})) w(extended);\n | ^~\n/source_0.sv:12:20: error: expected identifier, found ApostropheLBrace ''{'\n 12 | Wide #(.P(int'{default: 1})) w(extended);\n | ^~\n/source_0.sv:12:20: error: expected Semicolon, found ApostropheLBrace ''{'\n 12 | Wide #(.P(int'{default: 1})) w(extended);\n | ^~\n/source_0.sv:12:20: error: unexpected: \"'{\"\n 12 | Wide #(.P(int'{default: 1})) w(extended);\n | ^~\n/source_0.sv:12:29: error: unexpected: \":\"\n 12 | Wide #(.P(int'{default: 1})) w(extended);\n | ^\n/source_0.sv:12:31: error: unexpected: \"1\"\n 12 | Wide #(.P(int'{default: 1})) w(extended);\n | ^\n/source_0.sv:12:32: error: unexpected: \"}\"\n 12 | Wide #(.P(int'{default: 1})) w(extended);\n | ^\n/source_0.sv:12:33: error: unexpected: \")\"\n 12 | Wide #(.P(int'{default: 1})) w(extended);\n | ^\n/source_0.sv:12:34: error: unexpected: \")\"\n 12 | Wide #(.P(int'{default: 1})) w(extended);\n | ^\nParsed 2 file(s): 4 descriptions, 20 errors, 0 warnings\n", + "expectation": "Simulation", + "name": "hierarchy::parameter_patterns_override_scalar_defaults", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "hierarchy::parameter_patterns_preserve_enclosing_expressions at 542:3: assert_eq added: expected 0x100, got 0x1", + "expectation": "Simulation", + "name": "hierarchy::parameter_patterns_preserve_enclosing_expressions", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "xezim build exit status: 1; see /build.log\n/source_0.sv:13:26: error: expected RParen, found ApostropheLBrace ''{'\n 13 | Scalar #(.P(integer'{default: 'x})) x(xvalue);\n | ^~\n/source_0.sv:13:26: error: expected identifier, found ApostropheLBrace ''{'\n 13 | Scalar #(.P(integer'{default: 'x})) x(xvalue);\n | ^~\n/source_0.sv:13:26: error: expected Semicolon, found ApostropheLBrace ''{'\n 13 | Scalar #(.P(integer'{default: 'x})) x(xvalue);\n | ^~\n/source_0.sv:13:26: error: unexpected: \"'{\"\n 13 | Scalar #(.P(integer'{default: 'x})) x(xvalue);\n | ^~\n/source_0.sv:13:35: error: unexpected: \":\"\n 13 | Scalar #(.P(integer'{default: 'x})) x(xvalue);\n | ^\n/source_0.sv:13:37: error: unexpected: \"'x\"\n 13 | Scalar #(.P(integer'{default: 'x})) x(xvalue);\n | ^~\n/source_0.sv:13:39: error: unexpected: \"}\"\n 13 | Scalar #(.P(integer'{default: 'x})) x(xvalue);\n | ^\n/source_0.sv:13:40: error: unexpected: \")\"\n 13 | Scalar #(.P(integer'{default: 'x})) x(xvalue);\n | ^\n/source_0.sv:13:41: error: unexpected: \")\"\n 13 | Scalar #(.P(integer'{default: 'x})) x(xvalue);\n | ^\n/source_0.sv:14:26: error: expected RParen, found ApostropheLBrace ''{'\n 14 | Scalar #(.P(integer'{default: 'z})) z(zvalue);\n | ^~\n/source_0.sv:14:26: error: expected identifier, found ApostropheLBrace ''{'\n 14 | Scalar #(.P(integer'{default: 'z})) z(zvalue);\n | ^~\n/source_0.sv:14:26: error: expected Semicolon, found ApostropheLBrace ''{'\n 14 | Scalar #(.P(integer'{default: 'z})) z(zvalue);\n | ^~\n/source_0.sv:14:26: error: unexpected: \"'{\"\n 14 | Scalar #(.P(integer'{default: 'z})) z(zvalue);\n | ^~\n/source_0.sv:14:35: error: unexpected: \":\"\n 14 | Scalar #(.P(integer'{default: 'z})) z(zvalue);\n | ^\n/source_0.sv:14:37: error: unexpected: \"'z\"\n 14 | Scalar #(.P(integer'{default: 'z})) z(zvalue);\n | ^~\n/source_0.sv:14:39: error: unexpected: \"}\"\n 14 | Scalar #(.P(integer'{default: 'z})) z(zvalue);\n | ^\n/source_0.sv:14:40: error: unexpected: \")\"\n 14 | Scalar #(.P(integer'{default: 'z})) z(zvalue);\n | ^\n/source_0.sv:14:41: error: unexpected: \")\"\n 14 | Scalar #(.P(integer'{default: 'z})) z(zvalue);\n | ^\n/source_0.sv:15:22: error: expected RParen, found ApostropheLBrace ''{'\n 15 | Scalar #(.P(int'{default: 'x})) b(two_state);\n | ^~\n/source_0.sv:15:22: error: expected identifier, found ApostropheLBrace ''{'\n 15 | Scalar #(.P(int'{default: 'x})) b(two_state);\n | ^~\n... 7 more error(s) in '/source_0.sv' not shown\nParsed 2 file(s): 5 descriptions, 30 errors, 0 warnings\n", + "expectation": "Simulation", + "name": "hierarchy::parameter_patterns_preserve_packed_member_states", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "hierarchy::parameter_patterns_transfer_packed_values at 415:3: assert_eq renamed: expected 0x102, got 0x0", + "expectation": "Simulation", + "name": "hierarchy::parameter_patterns_transfer_packed_values", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "xezim build exit status: 1; see /build.log\n/source_0.sv:28:39: error: expected RBrace, found ApostropheLBrace ''{'\n 28 | Child #(.CFG('{default:P::item_t'{a:3,b:5}})) t(.y(typed));\n | ^~\n/source_0.sv:28:39: error: expected RParen, found ApostropheLBrace ''{'\n 28 | Child #(.CFG('{default:P::item_t'{a:3,b:5}})) t(.y(typed));\n | ^~\n/source_0.sv:28:39: error: expected identifier, found ApostropheLBrace ''{'\n 28 | Child #(.CFG('{default:P::item_t'{a:3,b:5}})) t(.y(typed));\n | ^~\n/source_0.sv:28:39: error: expected Semicolon, found ApostropheLBrace ''{'\n 28 | Child #(.CFG('{default:P::item_t'{a:3,b:5}})) t(.y(typed));\n | ^~\n/source_0.sv:28:39: error: unexpected: \"'{\"\n 28 | Child #(.CFG('{default:P::item_t'{a:3,b:5}})) t(.y(typed));\n | ^~\n/source_0.sv:28:43: error: unexpected: \"3\"\n 28 | Child #(.CFG('{default:P::item_t'{a:3,b:5}})) t(.y(typed));\n | ^\n/source_0.sv:28:44: error: unexpected: \",\"\n 28 | Child #(.CFG('{default:P::item_t'{a:3,b:5}})) t(.y(typed));\n | ^\n/source_0.sv:28:47: error: unexpected: \"5\"\n 28 | Child #(.CFG('{default:P::item_t'{a:3,b:5}})) t(.y(typed));\n | ^\n/source_0.sv:28:48: error: unexpected: \"}\"\n 28 | Child #(.CFG('{default:P::item_t'{a:3,b:5}})) t(.y(typed));\n | ^\n/source_0.sv:28:49: error: unexpected: \"}\"\n 28 | Child #(.CFG('{default:P::item_t'{a:3,b:5}})) t(.y(typed));\n | ^\n/source_0.sv:28:50: error: unexpected: \")\"\n 28 | Child #(.CFG('{default:P::item_t'{a:3,b:5}})) t(.y(typed));\n | ^\n/source_0.sv:28:51: error: unexpected: \")\"\n 28 | Child #(.CFG('{default:P::item_t'{a:3,b:5}})) t(.y(typed));\n | ^\nParsed 2 file(s): 6 descriptions, 13 errors, 0 warnings\n", + "expectation": "Simulation", + "name": "hierarchy::port_pattern_constant_aggregate_defaults", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "hierarchy::port_pattern_constant_literal_defaults at 1232:3: assert_eq y: expected 0x3535, got 0x1", + "expectation": "Simulation", + "name": "hierarchy::port_pattern_constant_literal_defaults", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "xezim build exit status: 1; see /build.log\n/source_0.sv:11:39: error: expected RBrace, found ApostropheLBrace ''{'\n 11 | Child #(.CFG('{default:P::item_t'{a:'x,b:'x}})) t(.y(typed));\n | ^~\n/source_0.sv:11:39: error: expected RParen, found ApostropheLBrace ''{'\n 11 | Child #(.CFG('{default:P::item_t'{a:'x,b:'x}})) t(.y(typed));\n | ^~\n/source_0.sv:11:39: error: expected identifier, found ApostropheLBrace ''{'\n 11 | Child #(.CFG('{default:P::item_t'{a:'x,b:'x}})) t(.y(typed));\n | ^~\n/source_0.sv:11:39: error: expected Semicolon, found ApostropheLBrace ''{'\n 11 | Child #(.CFG('{default:P::item_t'{a:'x,b:'x}})) t(.y(typed));\n | ^~\n/source_0.sv:11:39: error: unexpected: \"'{\"\n 11 | Child #(.CFG('{default:P::item_t'{a:'x,b:'x}})) t(.y(typed));\n | ^~\n/source_0.sv:11:43: error: unexpected: \"'x\"\n 11 | Child #(.CFG('{default:P::item_t'{a:'x,b:'x}})) t(.y(typed));\n | ^~\n/source_0.sv:11:45: error: unexpected: \",\"\n 11 | Child #(.CFG('{default:P::item_t'{a:'x,b:'x}})) t(.y(typed));\n | ^\n/source_0.sv:11:48: error: unexpected: \"'x\"\n 11 | Child #(.CFG('{default:P::item_t'{a:'x,b:'x}})) t(.y(typed));\n | ^~\n/source_0.sv:11:50: error: unexpected: \"}\"\n 11 | Child #(.CFG('{default:P::item_t'{a:'x,b:'x}})) t(.y(typed));\n | ^\n/source_0.sv:11:51: error: unexpected: \"}\"\n 11 | Child #(.CFG('{default:P::item_t'{a:'x,b:'x}})) t(.y(typed));\n | ^\n/source_0.sv:11:52: error: unexpected: \")\"\n 11 | Child #(.CFG('{default:P::item_t'{a:'x,b:'x}})) t(.y(typed));\n | ^\n/source_0.sv:11:53: error: unexpected: \")\"\n 11 | Child #(.CFG('{default:P::item_t'{a:'x,b:'x}})) t(.y(typed));\n | ^\nParsed 2 file(s): 4 descriptions, 13 errors, 0 warnings\n", + "expectation": "Simulation", + "name": "hierarchy::port_pattern_constant_mixed_state_defaults", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "hierarchy::port_pattern_constant_unpacked_defaults reads default_rows with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "hierarchy::port_pattern_constant_unpacked_defaults", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "invalid design was accepted: hierarchy::port_pattern_default_bounds_require_matching_types", + "expectation": "CompilationError", + "name": "hierarchy::port_pattern_default_bounds_require_matching_types", + "phase": "execute", + "status": "unexpected_accept", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "xezim build exit status: 1; see /build.log\n/source_0.sv:20:30: error: expected RParen, found ApostropheLBrace ''{'\n 20 | Child t(.cfg(P::items_t'{default:value}), .y(typed));\n | ^~\n/source_0.sv:20:30: error: expected Semicolon, found ApostropheLBrace ''{'\n 20 | Child t(.cfg(P::items_t'{default:value}), .y(typed));\n | ^~\n/source_0.sv:20:30: error: unexpected: \"'{\"\n 20 | Child t(.cfg(P::items_t'{default:value}), .y(typed));\n | ^~\n/source_0.sv:20:39: error: unexpected: \":\"\n 20 | Child t(.cfg(P::items_t'{default:value}), .y(typed));\n | ^\n/source_0.sv:20:45: error: expected identifier, found RBrace '}'\n 20 | Child t(.cfg(P::items_t'{default:value}), .y(typed));\n | ^\n/source_0.sv:20:45: error: expected Semicolon, found RBrace '}'\n 20 | Child t(.cfg(P::items_t'{default:value}), .y(typed));\n | ^\n/source_0.sv:20:45: error: unexpected: \"}\"\n 20 | Child t(.cfg(P::items_t'{default:value}), .y(typed));\n | ^\n/source_0.sv:20:46: error: unexpected: \")\"\n 20 | Child t(.cfg(P::items_t'{default:value}), .y(typed));\n | ^\n/source_0.sv:20:47: error: unexpected: \",\"\n 20 | Child t(.cfg(P::items_t'{default:value}), .y(typed));\n | ^\n/source_0.sv:20:49: error: unexpected: \".\"\n 20 | Child t(.cfg(P::items_t'{default:value}), .y(typed));\n | ^\n/source_0.sv:20:58: error: expected Semicolon, found RParen ')'\n 20 | Child t(.cfg(P::items_t'{default:value}), .y(typed));\n | ^\n/source_0.sv:20:58: error: unexpected: \")\"\n 20 | Child t(.cfg(P::items_t'{default:value}), .y(typed));\n | ^\nParsed 2 file(s): 6 descriptions, 13 errors, 0 warnings\n", + "expectation": "Simulation", + "name": "hierarchy::port_pattern_review_aggregate_defaults", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "xezim build exit status: 1; see /build.log\n/source_0.sv:15:30: error: expected RParen, found ApostropheLBrace ''{'\n 15 | Child t(.cfg(P::items_t'{default:(sel ? a:b)}), .y(typed));\n | ^~\n/source_0.sv:15:30: error: expected Semicolon, found ApostropheLBrace ''{'\n 15 | Child t(.cfg(P::items_t'{default:(sel ? a:b)}), .y(typed));\n | ^~\n/source_0.sv:15:30: error: unexpected: \"'{\"\n 15 | Child t(.cfg(P::items_t'{default:(sel ? a:b)}), .y(typed));\n | ^~\n/source_0.sv:15:39: error: unexpected: \":\"\n 15 | Child t(.cfg(P::items_t'{default:(sel ? a:b)}), .y(typed));\n | ^\n/source_0.sv:15:40: error: unexpected: \"(\"\n 15 | Child t(.cfg(P::items_t'{default:(sel ? a:b)}), .y(typed));\n | ^\n/source_0.sv:15:45: error: expected identifier, found Question '?'\n 15 | Child t(.cfg(P::items_t'{default:(sel ? a:b)}), .y(typed));\n | ^\n/source_0.sv:15:45: error: expected Semicolon, found Question '?'\n 15 | Child t(.cfg(P::items_t'{default:(sel ? a:b)}), .y(typed));\n | ^\n/source_0.sv:15:45: error: unexpected: \"?\"\n 15 | Child t(.cfg(P::items_t'{default:(sel ? a:b)}), .y(typed));\n | ^\n/source_0.sv:15:50: error: expected identifier, found RParen ')'\n 15 | Child t(.cfg(P::items_t'{default:(sel ? a:b)}), .y(typed));\n | ^\n/source_0.sv:15:50: error: expected Semicolon, found RParen ')'\n 15 | Child t(.cfg(P::items_t'{default:(sel ? a:b)}), .y(typed));\n | ^\n/source_0.sv:15:50: error: unexpected: \")\"\n 15 | Child t(.cfg(P::items_t'{default:(sel ? a:b)}), .y(typed));\n | ^\n/source_0.sv:15:51: error: unexpected: \"}\"\n 15 | Child t(.cfg(P::items_t'{default:(sel ? a:b)}), .y(typed));\n | ^\n/source_0.sv:15:52: error: unexpected: \")\"\n 15 | Child t(.cfg(P::items_t'{default:(sel ? a:b)}), .y(typed));\n | ^\n/source_0.sv:15:53: error: unexpected: \",\"\n 15 | Child t(.cfg(P::items_t'{default:(sel ? a:b)}), .y(typed));\n | ^\n/source_0.sv:15:55: error: unexpected: \".\"\n 15 | Child t(.cfg(P::items_t'{default:(sel ? a:b)}), .y(typed));\n | ^\n/source_0.sv:15:64: error: expected Semicolon, found RParen ')'\n 15 | Child t(.cfg(P::items_t'{default:(sel ? a:b)}), .y(typed));\n | ^\n/source_0.sv:15:64: error: unexpected: \")\"\n 15 | Child t(.cfg(P::items_t'{default:(sel ? a:b)}), .y(typed));\n | ^\nParsed 2 file(s): 4 descriptions, 18 errors, 0 warnings\n", + "expectation": "Simulation", + "name": "hierarchy::port_pattern_review_conditional_structs", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "hierarchy::port_pattern_review_interface_inputs reads defaults with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "hierarchy::port_pattern_review_interface_inputs", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "hierarchy::port_pattern_review_member_key_collisions at 909:3: assert_eq indices: expected 0x53, got 0x0", + "expectation": "Simulation", + "name": "hierarchy::port_pattern_review_member_key_collisions", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "xezim build exit status: 1; see /build.log\n/source_0.sv:18:30: error: expected RParen, found ApostropheLBrace ''{'\n 18 | Single t(.cfg(P::item_t'{a:a, b:'x}), .y(typed));\n | ^~\n/source_0.sv:18:30: error: expected Semicolon, found ApostropheLBrace ''{'\n 18 | Single t(.cfg(P::item_t'{a:a, b:'x}), .y(typed));\n | ^~\n/source_0.sv:18:30: error: unexpected: \"'{\"\n 18 | Single t(.cfg(P::item_t'{a:a, b:'x}), .y(typed));\n | ^~\n/source_0.sv:18:35: error: expected identifier, found Comma ','\n 18 | Single t(.cfg(P::item_t'{a:a, b:'x}), .y(typed));\n | ^\n/source_0.sv:18:38: error: expected Semicolon, found Colon ':'\n 18 | Single t(.cfg(P::item_t'{a:a, b:'x}), .y(typed));\n | ^\n/source_0.sv:18:38: error: unexpected: \":\"\n 18 | Single t(.cfg(P::item_t'{a:a, b:'x}), .y(typed));\n | ^\n/source_0.sv:18:39: error: unexpected: \"'x\"\n 18 | Single t(.cfg(P::item_t'{a:a, b:'x}), .y(typed));\n | ^~\n/source_0.sv:18:41: error: unexpected: \"}\"\n 18 | Single t(.cfg(P::item_t'{a:a, b:'x}), .y(typed));\n | ^\n/source_0.sv:18:42: error: unexpected: \")\"\n 18 | Single t(.cfg(P::item_t'{a:a, b:'x}), .y(typed));\n | ^\n/source_0.sv:18:43: error: unexpected: \",\"\n 18 | Single t(.cfg(P::item_t'{a:a, b:'x}), .y(typed));\n | ^\n/source_0.sv:18:45: error: unexpected: \".\"\n 18 | Single t(.cfg(P::item_t'{a:a, b:'x}), .y(typed));\n | ^\n/source_0.sv:18:54: error: expected Semicolon, found RParen ')'\n 18 | Single t(.cfg(P::item_t'{a:a, b:'x}), .y(typed));\n | ^\n/source_0.sv:18:54: error: unexpected: \")\"\n 18 | Single t(.cfg(P::item_t'{a:a, b:'x}), .y(typed));\n | ^\n/source_0.sv:21:31: error: expected RParen, found ApostropheLBrace ''{'\n 21 | Packed pt(.cfg(P::quad_t'{default:'x}), .y(packed_typed));\n | ^~\n/source_0.sv:21:31: error: expected Semicolon, found ApostropheLBrace ''{'\n 21 | Packed pt(.cfg(P::quad_t'{default:'x}), .y(packed_typed));\n | ^~\n/source_0.sv:21:31: error: unexpected: \"'{\"\n 21 | Packed pt(.cfg(P::quad_t'{default:'x}), .y(packed_typed));\n | ^~\n/source_0.sv:21:40: error: unexpected: \":\"\n 21 | Packed pt(.cfg(P::quad_t'{default:'x}), .y(packed_typed));\n | ^\n/source_0.sv:21:41: error: unexpected: \"'x\"\n 21 | Packed pt(.cfg(P::quad_t'{default:'x}), .y(packed_typed));\n | ^~\n/source_0.sv:21:43: error: unexpected: \"}\"\n 21 | Packed pt(.cfg(P::quad_t'{default:'x}), .y(packed_typed));\n | ^\n/source_0.sv:21:44: error: unexpected: \")\"\n 21 | Packed pt(.cfg(P::quad_t'{default:'x}), .y(packed_typed));\n | ^\n... 4 more error(s) in '/source_0.sv' not shown\nParsed 2 file(s): 6 descriptions, 26 errors, 0 warnings\n", + "expectation": "Simulation", + "name": "hierarchy::port_pattern_review_mixed_state_structs", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "xezim build exit status: 1; see /build.log\n/source_0.sv:12:29: error: expected RParen, found ApostropheLBrace ''{'\n 12 | Child t(.cfg(P::pair_t'{default:'1}), .y(typed));\n | ^~\n/source_0.sv:12:29: error: expected Semicolon, found ApostropheLBrace ''{'\n 12 | Child t(.cfg(P::pair_t'{default:'1}), .y(typed));\n | ^~\n/source_0.sv:12:29: error: unexpected: \"'{\"\n 12 | Child t(.cfg(P::pair_t'{default:'1}), .y(typed));\n | ^~\n/source_0.sv:12:38: error: unexpected: \":\"\n 12 | Child t(.cfg(P::pair_t'{default:'1}), .y(typed));\n | ^\n/source_0.sv:12:39: error: unexpected: \"'1\"\n 12 | Child t(.cfg(P::pair_t'{default:'1}), .y(typed));\n | ^~\n/source_0.sv:12:41: error: unexpected: \"}\"\n 12 | Child t(.cfg(P::pair_t'{default:'1}), .y(typed));\n | ^\n/source_0.sv:12:42: error: unexpected: \")\"\n 12 | Child t(.cfg(P::pair_t'{default:'1}), .y(typed));\n | ^\n/source_0.sv:12:43: error: unexpected: \",\"\n 12 | Child t(.cfg(P::pair_t'{default:'1}), .y(typed));\n | ^\n/source_0.sv:12:45: error: unexpected: \".\"\n 12 | Child t(.cfg(P::pair_t'{default:'1}), .y(typed));\n | ^\n/source_0.sv:12:54: error: expected Semicolon, found RParen ')'\n 12 | Child t(.cfg(P::pair_t'{default:'1}), .y(typed));\n | ^\n/source_0.sv:12:54: error: unexpected: \")\"\n 12 | Child t(.cfg(P::pair_t'{default:'1}), .y(typed));\n | ^\nParsed 2 file(s): 4 descriptions, 12 errors, 0 warnings\n", + "expectation": "Simulation", + "name": "hierarchy::port_pattern_review_packed_struct_arrays", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "xezim build exit status: 1; see /build.log\n/source_0.sv:27:30: error: expected RParen, found ApostropheLBrace ''{'\n 27 | Child t(.cfg(P::items_t'{default:a}), .y(typed));\n | ^~\n/source_0.sv:27:30: error: expected Semicolon, found ApostropheLBrace ''{'\n 27 | Child t(.cfg(P::items_t'{default:a}), .y(typed));\n | ^~\n/source_0.sv:27:30: error: unexpected: \"'{\"\n 27 | Child t(.cfg(P::items_t'{default:a}), .y(typed));\n | ^~\n/source_0.sv:27:39: error: unexpected: \":\"\n 27 | Child t(.cfg(P::items_t'{default:a}), .y(typed));\n | ^\n/source_0.sv:27:41: error: expected identifier, found RBrace '}'\n 27 | Child t(.cfg(P::items_t'{default:a}), .y(typed));\n | ^\n/source_0.sv:27:41: error: expected Semicolon, found RBrace '}'\n 27 | Child t(.cfg(P::items_t'{default:a}), .y(typed));\n | ^\n/source_0.sv:27:41: error: unexpected: \"}\"\n 27 | Child t(.cfg(P::items_t'{default:a}), .y(typed));\n | ^\n/source_0.sv:27:42: error: unexpected: \")\"\n 27 | Child t(.cfg(P::items_t'{default:a}), .y(typed));\n | ^\n/source_0.sv:27:43: error: unexpected: \",\"\n 27 | Child t(.cfg(P::items_t'{default:a}), .y(typed));\n | ^\n/source_0.sv:27:45: error: unexpected: \".\"\n 27 | Child t(.cfg(P::items_t'{default:a}), .y(typed));\n | ^\n/source_0.sv:27:54: error: expected Semicolon, found RParen ')'\n 27 | Child t(.cfg(P::items_t'{default:a}), .y(typed));\n | ^\n/source_0.sv:27:54: error: unexpected: \")\"\n 27 | Child t(.cfg(P::items_t'{default:a}), .y(typed));\n | ^\n/source_0.sv:29:31: error: expected RParen, found ApostropheLBrace ''{'\n 29 | Child tc(.cfg(P::items_t'{default:identity(a)}), .y(typed_call));\n | ^~\n/source_0.sv:29:31: error: expected Semicolon, found ApostropheLBrace ''{'\n 29 | Child tc(.cfg(P::items_t'{default:identity(a)}), .y(typed_call));\n | ^~\n/source_0.sv:29:31: error: unexpected: \"'{\"\n 29 | Child tc(.cfg(P::items_t'{default:identity(a)}), .y(typed_call));\n | ^~\n/source_0.sv:29:40: error: unexpected: \":\"\n 29 | Child tc(.cfg(P::items_t'{default:identity(a)}), .y(typed_call));\n | ^\n/source_0.sv:29:52: error: expected Semicolon, found RBrace '}'\n 29 | Child tc(.cfg(P::items_t'{default:identity(a)}), .y(typed_call));\n | ^\n/source_0.sv:29:52: error: unexpected: \"}\"\n 29 | Child tc(.cfg(P::items_t'{default:identity(a)}), .y(typed_call));\n | ^\n/source_0.sv:29:53: error: unexpected: \")\"\n 29 | Child tc(.cfg(P::items_t'{default:identity(a)}), .y(typed_call));\n | ^\n/source_0.sv:29:54: error: unexpected: \",\"\n 29 | Child tc(.cfg(P::items_t'{default:identity(a)}), .y(typed_call));\n | ^\n... 3 more error(s) in '/source_0.sv' not shown\nParsed 2 file(s): 5 descriptions, 25 errors, 0 warnings\n", + "expectation": "Simulation", + "name": "hierarchy::port_pattern_review_packed_value_types", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "hierarchy::port_pattern_review_subarray_items reads positional with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "hierarchy::port_pattern_review_subarray_items", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "hierarchy::port_patterns_bind_nested_structure_elements at 818:3: assert_eq y: expected 0xfff3fe, got 0x1", + "expectation": "Simulation", + "name": "hierarchy::port_patterns_bind_nested_structure_elements", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "hierarchy::port_patterns_keep_caller_values_and_generated_names at 795:3: assert_eq y: expected 0x8fe, got 0x100", + "expectation": "Simulation", + "name": "hierarchy::port_patterns_keep_caller_values_and_generated_names", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "hierarchy::port_patterns_preserve_four_state_elements at 838:3: assert_eq four: expected 0xx0X, got 0x10X", + "expectation": "Simulation", + "name": "hierarchy::port_patterns_preserve_four_state_elements", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "invalid design was accepted: hierarchy::port_patterns_reject_incorrect_element_counts", + "expectation": "CompilationError", + "name": "hierarchy::port_patterns_reject_incorrect_element_counts", + "phase": "execute", + "status": "unexpected_accept", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "hierarchy::port_patterns_use_specialized_formal_shapes reads named with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "hierarchy::port_patterns_use_specialized_formal_shapes", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::settles_feedback_beside_dynamic_child_reader", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::settles_feedback_through_disjoint_bits_of_child_input", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::simulates_parameter_specialized_systemverilog_hierarchy", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::simulates_systemverilog_hierarchical_always_ff", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::simulates_systemverilog_hierarchical_always_ff_with_constant_clear", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::simulates_systemverilog_hierarchy_through_internal_signal", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::simulates_systemverilog_named_port_hierarchy", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::simulates_veryl_generated_style_gray_encoder_hierarchy", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::sized_parameter_actuals_follow_parent_specialization", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::treats_child_outputs_as_explicit_net_drivers", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::widens_small_parameters_into_child_int_outputs", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "hierarchy::widens_small_parameters_preserving_four_state_bits at 499:3: assert_eq value: expected 0x9, got 0xX", + "expectation": "Simulation", + "name": "hierarchy::widens_small_parameters_preserving_four_state_bits", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/indexed_select.json b/crates/celox-test-suite/verification/sv/xezim/indexed_select.json new file mode 100644 index 00000000000..3b09845a8e2 --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/indexed_select.json @@ -0,0 +1,708 @@ +{ + "cases": [ + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::ascending_part_selects_partly_outside_write_the_bits_inside", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "indexed_select::constant_parameter_initializers_preserve_imported_shapes at 382:3: assert_eq down: expected 0xb, got 0xa", + "expectation": "Simulation", + "name": "indexed_select::constant_parameter_initializers_preserve_imported_shapes", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::constant_parameter_initializers_preserve_inferred_dimensions", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "indexed_select::constant_parameter_initializers_preserve_overhanging_parts at 425:3: assert_eq checks: expected 0x1fff, got 0x1", + "expectation": "Simulation", + "name": "indexed_select::constant_parameter_initializers_preserve_overhanging_parts", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "indexed_select::constant_parameter_initializers_preserve_selections at 322:3: assert_eq down: expected 0xb, got 0xa", + "expectation": "Simulation", + "name": "indexed_select::constant_parameter_initializers_preserve_selections", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "indexed_select::constant_parameter_initializers_preserve_unknown_indices at 456:3: assert_eq checks: expected 0x3ff, got 0x30", + "expectation": "Simulation", + "name": "indexed_select::constant_parameter_initializers_preserve_unknown_indices", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::constant_parameter_initializers_shape_ports_and_generate", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::constant_parameter_initializers_short_circuit_four_state_bindings", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "indexed_select::constant_parameter_initializers_short_circuit_repetitions_and_selections at 253:3: assert_eq checks: expected 0x3f, got 0x37", + "expectation": "Simulation", + "name": "indexed_select::constant_parameter_initializers_short_circuit_repetitions_and_selections", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::constant_parameter_initializers_short_circuit_wide_operands", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::constant_part_select_indices_in_continuous_targets", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::constant_part_select_indices_of_concatenations", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "indexed_select::constant_part_select_indices_of_signed_slices reads direct with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "indexed_select::constant_part_select_indices_of_signed_slices", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::constant_part_select_indices_preserve_selected_unknowns", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "indexed_select::constant_part_select_indices_read_and_write_unpacked_arrays at 1496:5: assert_eq up: expected 0x12, got 0x24", + "expectation": "Simulation", + "name": "indexed_select::constant_part_select_indices_read_and_write_unpacked_arrays", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::constant_part_selects_partly_outside_write_the_bits_inside", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::indexed_bases_resolve_size_queries", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::indexed_compound_bases_fold_selected_operands", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::indexed_constants_lower_selected_concatenations", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "indexed_select::indexed_constants_respect_declared_parameter_indices reads down with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "indexed_select::indexed_constants_respect_declared_parameter_indices", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "indexed_select::indexed_constants_work_in_ordinary_selection_indices reads direct_bit with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "indexed_select::indexed_constants_work_in_ordinary_selection_indices", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "indexed_select::indexed_functions_preserve_selected_arguments reads offset_width with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "indexed_select::indexed_functions_preserve_selected_arguments", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "indexed_select::indexed_generate_parameters_retain_local_metadata reads down with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "indexed_select::indexed_generate_parameters_retain_local_metadata", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::indexed_initializers_accept_casts_around_selections", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "indexed_select::indexed_initializers_preserve_four_state_parameters at 634:3: assert_eq high: expected 0xa, got 0x0", + "expectation": "Simulation", + "name": "indexed_select::indexed_initializers_preserve_four_state_parameters", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::indexed_parameter_initializers_preserve_selections", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "indexed_select::indexed_parameter_initializers_resolve_enum_constants at 573:3: assert_eq enum_dependent: expected 0xa, got 0x0", + "expectation": "Simulation", + "name": "indexed_select::indexed_parameter_initializers_resolve_enum_constants", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::indexed_parameter_initializers_use_assignment_width", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "indexed_select::indexed_parameter_ports_preserve_declared_ranges at 592:3: assert_eq down: expected 0xa, got 0x0", + "expectation": "Simulation", + "name": "indexed_select::indexed_parameter_ports_preserve_declared_ranges", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::indexed_runtime_replications_preserve_attached_selections", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::indexed_select_multidimensional_packed_reads", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "indexed_select::indexed_select_parameterized_generate_and_ff at 51:3: assert_eq selected_size: expected 0x4, got 0x0", + "expectation": "Simulation", + "name": "indexed_select::indexed_select_parameterized_generate_and_ff", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::indexed_select_preserves_selected_and_cast_bases", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::indexed_select_reads_and_writes_both_declaration_directions", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "indexed_select::indexed_selections_in_constant_declaration_contexts at 1738:3: assert_eq width: expected 0xa, got 0x1", + "expectation": "Simulation", + "name": "indexed_select::indexed_selections_in_constant_declaration_contexts", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "indexed_select::indexed_size_queries_preserve_parameter_dimensions at 730:3: assert_eq packed_down: expected 0xb, got 0x0", + "expectation": "Simulation", + "name": "indexed_select::indexed_size_queries_preserve_parameter_dimensions", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::indexed_ternaries_preserve_both_arm_types", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "indexed_select::indexed_unsigned_bases_cross_zero reads minus with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "indexed_select::indexed_unsigned_bases_cross_zero", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::indexed_widths_accept_replication_concatenations", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::indexed_widths_preserve_parameter_selections", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::known_run_time_selects_stay_within_their_element", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::nested_array_indices_freeze_concat_targets", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "indexed_select::nested_array_indices_preserve_cast_widths reads contents with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "indexed_select::nested_array_indices_preserve_cast_widths", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::nested_array_indices_preserve_elements_and_ranges", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::nested_array_indices_preserve_invalid_reads_and_writes", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "indexed_select::out_of_range_inner_indices_stay_in_their_element at 1170:7: assert_eq b: expected 0xX, got 0x0 (b)", + "expectation": "Simulation", + "name": "indexed_select::out_of_range_inner_indices_stay_in_their_element", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "indexed_select::out_of_range_inner_indices_stay_in_their_multidimensional_unpacked_element at 1260:5: assert_eq n: expected 0x0, got 0xX (n)", + "expectation": "Simulation", + "name": "indexed_select::out_of_range_inner_indices_stay_in_their_multidimensional_unpacked_element", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::out_of_range_inner_indices_stay_in_their_unpacked_element", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::procedural_loop_reads_packed_words_into_memory", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::procedural_loop_selects_constant_packed_bytes", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::procedural_loop_selects_packed_words", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::procedural_loop_writes_memory_word_part_selects", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::runtime_index_expressions_wrap_at_their_own_width", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::runtime_index_reads_single_bit_unpacked_elements", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::runtime_indexed_base_may_select_a_parameter_bit", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::runtime_indexed_bases_preserve_numeric_and_type_casts", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::runtime_indexed_ff_write_updates_only_the_selected_slice", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "indexed_select::runtime_indexed_reads_follow_the_declared_direction at 1032:5: assert_eq bit_up: expected 0x0, got 0x1 (up[i])", + "expectation": "Simulation", + "name": "indexed_select::runtime_indexed_reads_follow_the_declared_direction", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "indexed_select::runtime_indexed_writes_keep_unselected_bits_and_clip_overhang at 1070:5: assert_eq minus_write: expected 0xa5, got 0x0 (minus_write)", + "expectation": "Simulation", + "name": "indexed_select::runtime_indexed_writes_keep_unselected_bits_and_clip_overhang", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::runtime_indices_select_multidimensional_packed_elements", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::runtime_indices_select_within_multidimensional_packed_elements", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::runtime_inner_bits_of_unpacked_elements_feed_child_ports", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "indexed_select::signed_index_expressions_wrap_at_their_own_width", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "indexed_select::signed_indices_access_clocked_negative_range_arrays reads direct with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "indexed_select::signed_indices_access_clocked_negative_range_arrays", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/interfaces.json b/crates/celox-test-suite/verification/sv/xezim/interfaces.json new file mode 100644 index 00000000000..c67cc5292cd --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/interfaces.json @@ -0,0 +1,345 @@ +{ + "cases": [ + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interfaces::binds_generic_interface_ports_per_interface", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "interfaces::binds_implicit_named_interface_arrays_in_generate_scopes at 696:5: assert_eq y: expected 0x1, got 0xff", + "expectation": "Simulation", + "name": "interfaces::binds_implicit_named_interface_arrays_in_generate_scopes", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interfaces::binds_implicit_named_interface_ports", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "interfaces::binds_interface_array_ports_in_declaration_order at 497:5: assert_eq y: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "interfaces::binds_interface_array_ports_in_declaration_order", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interfaces::binds_interfaces_without_declaration_name_dependencies", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "interfaces::binds_local_interfaces_before_dependent_declarations at 518:5: assert_eq width: expected 0x6, got 0x2", + "expectation": "Simulation", + "name": "interfaces::binds_local_interfaces_before_dependent_declarations", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interfaces::binds_positional_connections_and_parameter_values", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interfaces::calls_functions_and_reads_parameters_through_instances_and_ports", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interfaces::clocks_interface_processes_from_member_clocks", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "interfaces::connects_interface_array_slices_in_declaration_order at 880:5: assert_eq up: expected 0x403, got 0x0", + "expectation": "Simulation", + "name": "interfaces::connects_interface_array_slices_in_declaration_order", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "interfaces::connects_multidimensional_interface_array_slices at 945:5: assert_eq row: expected 0x30405, got 0x0", + "expectation": "Simulation", + "name": "interfaces::connects_multidimensional_interface_array_slices", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "interfaces::distinguishes_interface_dependency_bindings at 639:3: assert_eq width: expected 0x24, got 0x17", + "expectation": "Simulation", + "name": "interfaces::distinguishes_interface_dependency_bindings", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "interfaces::distributes_array_port_connections_to_interface_arrays reads members with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "interfaces::distributes_array_port_connections_to_interface_arrays", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "interfaces::distributes_multidimensional_connections_to_interface_arrays reads members with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "interfaces::distributes_multidimensional_connections_to_interface_arrays", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "interfaces::distributes_packed_connections_to_interface_arrays at 742:5: assert_eq ascending_members: expected 0x3, got 0xf", + "expectation": "Simulation", + "name": "interfaces::distributes_packed_connections_to_interface_arrays", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interfaces::distributes_unpacked_connections_to_interface_arrays", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "interfaces::drives_interface_array_slices_through_generated_relays reads y with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "interfaces::drives_interface_array_slices_through_generated_relays", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interfaces::drives_members_through_child_outputs_and_array_generate_regions", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interfaces::elaborates_net_members_typedefs_and_localparams", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interfaces::infers_directions_of_ports_without_modport", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interfaces::initializes_interface_array_members_from_their_declarations", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interfaces::initializes_interface_members_from_their_declarations", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interfaces::keeps_lexical_names_in_interface_scopes", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interfaces::mixes_module_contracts_with_local_interface_connections", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interfaces::overrides_body_parameters_and_drives_members_from_imported_functions", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "interfaces::propagates_interface_dependent_ports at 609:3: assert_eq x: expected 0x1f, got 0x3", + "expectation": "Simulation", + "name": "interfaces::propagates_interface_dependent_ports", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interfaces::queries_interface_packed_struct_member_dimensions", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interfaces::reads_undriven_interface_members_as_unknown", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "interfaces::rewrites_nested_references_and_keeps_declaration_functions reads last with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "interfaces::rewrites_nested_references_and_keeps_declaration_functions", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interfaces::runs_interface_array_processes_at_integer_boundaries", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "interfaces::runs_interface_processes_once_per_array_element reads t10 with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "interfaces::runs_interface_processes_once_per_array_element", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/latch.json b/crates/celox-test-suite/verification/sv/xezim/latch.json new file mode 100644 index 00000000000..fd98169c663 --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/latch.json @@ -0,0 +1,169 @@ +{ + "cases": [ + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "latch::classic_star_continuous_startup", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "latch::classic_star_declaration_startup", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "latch::classic_star_hierarchy_declaration_startup", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "latch::classic_star_initial_startup", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "latch::classic_star_latch", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "latch::explicit_latch", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "latch::four_state_latch", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "latch::guarded_activation", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "xezim testbench failed: exit status: 1; see runtime.log and protocol.log\n", + "expectation": "Simulation", + "name": "latch::hierarchy_same_activation_change_return", + "phase": "execute", + "status": "runtime_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "xezim testbench failed: exit status: 1; see runtime.log and protocol.log\n", + "expectation": "Simulation", + "name": "latch::same_activation_change_return", + "phase": "execute", + "status": "runtime_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "latch::star_complete_declaration_startup", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "latch::star_select_sensitivity", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "xezim testbench failed: exit status: 1; see runtime.log and protocol.log\n", + "expectation": "Simulation", + "name": "latch::star_unpacked_select_sensitivity", + "phase": "execute", + "status": "runtime_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "latch::task_call_sensitivity", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "latch::timed_initial_drives_latch", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/literals.json b/crates/celox-test-suite/verification/sv/xezim/literals.json new file mode 100644 index 00000000000..9550d56c3d3 --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/literals.json @@ -0,0 +1,48 @@ +{ + "cases": [ + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "literals::simulates_systemverilog_four_state_input_operator_masks", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "literals::simulates_systemverilog_four_state_literal_operator_masks", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "literals::simulates_systemverilog_unbased_unsized_literals", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "literals::string_literals_are_unsigned_packed_bytes", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/operators.json b/crates/celox-test-suite/verification/sv/xezim/operators.json new file mode 100644 index 00000000000..76ba0d03601 --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/operators.json @@ -0,0 +1,609 @@ +{ + "cases": [ + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::applies_procedural_truth_and_bit_conversion_to_function_results", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "operators::casts_preserve_guarded_division_signedness at 1716:3: assert_eq quotient: expected 0xfffffffa, got 0xff9", + "expectation": "Simulation", + "name": "operators::casts_preserve_guarded_division_signedness", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "operators::casts_preserve_guarded_division_unknowns at 1753:3: assert_eq quotient: expected 0xfffffffa, got 0xff9", + "expectation": "Simulation", + "name": "operators::casts_preserve_guarded_division_unknowns", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "operators::converts_function_arguments_using_actual_signedness at 1261:3: assert_eq signed_result: expected 0xff80, got 0x80", + "expectation": "Simulation", + "name": "operators::converts_function_arguments_using_actual_signedness", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::forwards_replicated_parameter_values", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::guards_division_by_zero_nested_under_muxes", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::infers_async_reset_from_always_ff_assignment_rhs", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::masked_shift_fields_keep_expression_width", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::multidimensional_packed_declared_range_writes", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "operators::multidimensional_packed_declared_ranges at 1524:3: assert_eq indexed: expected 0x345, got 0x2", + "expectation": "Simulation", + "name": "operators::multidimensional_packed_declared_ranges", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "operators::multidimensional_packed_declared_ranges_four_state at 1597:3: assert_eq indexed: expected 0x345, got 0x2", + "expectation": "Simulation", + "name": "operators::multidimensional_packed_declared_ranges_four_state", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::negates_wide_systemverilog_values", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::nested_operands_extend_before_context_operations", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "operators::parameter_size_casts_in_generate_conditions at 993:3: assert_eq signed_test: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "operators::parameter_size_casts_in_generate_conditions", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "operators::partial_word_shift_sign_x_65 at 1392:3: assert_eq y: expected 0xX000000000000002, got 0xX000000000000002", + "expectation": "Simulation", + "name": "operators::partial_word_shift_sign_x_65", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "operators::partial_word_shift_sign_z_65 at 1380:3: assert_eq y: expected 0xZ000000000000002, got 0xZ000000000000002", + "expectation": "Simulation", + "name": "operators::partial_word_shift_sign_z_65", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::preserves_disjoint_slice_writes_in_merged_always_ff_processes", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::preserves_function_locals_assigned_by_case_items", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::preserves_function_locals_assigned_by_conditionals", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::preserves_multidimensional_packed_prefix_in_part_selects", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "operators::preserves_power_signedness_in_arithmetic at 1652:3: assert_eq div: expected 0xffffffe8, got 0xfffffe8", + "expectation": "Simulation", + "name": "operators::preserves_power_signedness_in_arithmetic", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "operators::preserves_power_signedness_in_four_state_arithmetic at 1687:3: assert_eq div: expected 0xffffffe8, got 0xfffffe8", + "expectation": "Simulation", + "name": "operators::preserves_power_signedness_in_four_state_arithmetic", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::preserves_signed_parameter_types_in_hierarchy_connections", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::preserves_unknown_complement_and_converts_bit_function_arguments", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::propagates_child_input_width_into_connection_expressions", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::simulates_systemverilog_always_ff_case", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "operators::simulates_systemverilog_always_ff_case_calls_and_xz_parameters at 898:3: assert_eq q_function_signed: expected 0xc7, got 0x0", + "expectation": "Simulation", + "name": "operators::simulates_systemverilog_always_ff_case_calls_and_xz_parameters", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "operators::simulates_systemverilog_always_ff_case_context_values at 750:3: assert_eq q_negative: expected 0xff, got 0x0", + "expectation": "Simulation", + "name": "operators::simulates_systemverilog_always_ff_case_context_values", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::simulates_systemverilog_always_ff_if_else_chain", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::simulates_systemverilog_binary_operators", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "operators::simulates_systemverilog_case_equality_operators at 134:3: assert_eq eq_wildcard_fill: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "operators::simulates_systemverilog_case_equality_operators", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::simulates_systemverilog_contiguous_selected_lvalue_ff_intermediate", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::simulates_systemverilog_genvar_loop_comb_assignments", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::simulates_systemverilog_genvar_loop_with_localparam_and_if", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "operators::simulates_systemverilog_hierarchical_parameter_selected_lvalue_ff_intermediate reads q with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "operators::simulates_systemverilog_hierarchical_parameter_selected_lvalue_ff_intermediate", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "operators::simulates_systemverilog_hierarchical_selected_lvalue_ff_intermediate reads q with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "operators::simulates_systemverilog_hierarchical_selected_lvalue_ff_intermediate", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "operators::simulates_systemverilog_packed_multidimensional_selects reads y with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "operators::simulates_systemverilog_packed_multidimensional_selects", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::simulates_systemverilog_reduction_unary_operators", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::simulates_systemverilog_repeat_concat", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::simulates_systemverilog_select_and_concat", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "operators::simulates_systemverilog_selected_lvalue_assignments reads z with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "operators::simulates_systemverilog_selected_lvalue_assignments", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "operators::simulates_systemverilog_selected_lvalue_ff_intermediate reads q with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "operators::simulates_systemverilog_selected_lvalue_ff_intermediate", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::simulates_systemverilog_simple_always_ff", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::simulates_systemverilog_top_comb_assign", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::simulates_systemverilog_unary_operators", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::size_casts_resolve_generated_locals_and_parameter_expressions", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::tracks_nested_function_slice_dependencies", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "operators::unknown_logical_operand_evaluates_effectful_right_operand at 1344:5: assert_eq ff_and_hit: expected 0x0, got 0x1", + "expectation": "Simulation", + "name": "operators::unknown_logical_operand_evaluates_effectful_right_operand", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "operators::wide_arithmetic_shift_preserves_unknown_sign at 1368:9: assert_eq y128: expected 0xZ0000000000000000000000000000002, got 0xZ0000000000000000000000000000002", + "expectation": "Simulation", + "name": "operators::wide_arithmetic_shift_preserves_unknown_sign", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::wide_reduction_and_respects_partial_storage_words", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::wide_wildcard_comparisons_normalize_unknown_to_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::wildcard_comparisons_normalize_unknown_to_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::zero_count_replications_preserve_concat_bits", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::zero_count_replications_preserve_unknown_bits", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::zero_extends_mixed_signed_arithmetic_operands", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/packed_structs.json b/crates/celox-test-suite/verification/sv/xezim/packed_structs.json new file mode 100644 index 00000000000..c559d87b302 --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/packed_structs.json @@ -0,0 +1,103 @@ +{ + "cases": [ + { + "category": "Types", + "detail": "packed_structs::packed_struct_alias_packed_dimensions at 106:5: assert_eq widths: expected 0x22, got 0x30", + "expectation": "Simulation", + "name": "packed_structs::packed_struct_alias_packed_dimensions", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "packed_structs::packed_struct_bounds_and_type_queries at 232:5: assert_eq widths: expected 0x22, got 0x10", + "expectation": "Simulation", + "name": "packed_structs::packed_struct_bounds_and_type_queries", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "packed_structs::packed_struct_field_assignments_and_registers", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "packed_structs::packed_struct_layout_and_nested_fields at 130:5: assert_eq delta: expected 0xf8, got 0x8", + "expectation": "Simulation", + "name": "packed_structs::packed_struct_layout_and_nested_fields", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "packed_structs::packed_struct_mixed_state_members", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "packed_structs::packed_struct_parameterized_ports", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "packed_structs::packed_struct_typedef_bounds_survive_generate_shadowing", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "packed_structs::packed_struct_whole_value_signedness at 260:5: assert_eq signed_member: expected 0xfff8, got 0x8", + "expectation": "Simulation", + "name": "packed_structs::packed_struct_whole_value_signedness", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "packed_structs::packed_struct_wide_four_state_layout", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/procedural.json b/crates/celox-test-suite/verification/sv/xezim/procedural.json new file mode 100644 index 00000000000..7804ce75d07 --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/procedural.json @@ -0,0 +1,455 @@ +{ + "cases": [ + { + "category": "ControlFlow", + "detail": "procedural::aggregate_parameters_are_constant_tables reads member with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "procedural::aggregate_parameters_are_constant_tables", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::always_comb_case_compares_at_the_common_width", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::always_ff_at_both_edges_of_a_child_clock_port", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::always_ff_at_both_edges_of_one_clock", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::always_ff_blocking_assignments_and_run_time_loops", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::always_ff_reset_at_both_edges_and_as_a_clock", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "procedural::concatenated_targets_fix_their_positions_first at 357:5: assert_eq index: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "procedural::concatenated_targets_fix_their_positions_first", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::constant_functions_inside_selected_parameter_initializers", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::constant_functions_preserve_concat_operand_widths", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::constant_functions_size_parameters_and_ports", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::declaration_initializers_define_the_initial_state", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::declaration_initializers_keep_unknown_bits", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::ff_processes_write_bits_of_separate_array_elements", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::ff_select_index_calls_write_state_and_run_once", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::function_bodies_run_their_index_calls_each_time", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::imported_typedef_declaration_initializers", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::initial_blocks_define_the_initial_state", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::initial_blocks_run_after_declaration_initializers", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::loop_initializer_widens_by_its_own_signedness", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::mixed_blocking_and_nonblocking_writes_keep_their_regions", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::nonblocking_runtime_element_writes_apply_in_order", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::runtime_bits_of_a_constant_element", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::runtime_bits_stay_within_their_element", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::select_index_call_skipped_by_logical_and", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "procedural::select_index_calls_run_as_written at 292:5: assert_eq ff_count: expected 0x3, got 0x4", + "expectation": "Simulation", + "name": "procedural::select_index_calls_run_as_written", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::select_indices_call_functions", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::static_function_constant_calls_do_not_change_runtime_storage", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "procedural::static_function_four_state_result_retains_unknown_and_known_values at 1066:32: assert_eq result: expected 0x1, got 0xX", + "expectation": "Simulation", + "name": "procedural::static_function_four_state_result_retains_unknown_and_known_values", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::static_function_locals_share_storage_between_calls", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "procedural::static_function_output_formals_keep_value at 978:14: assert_eq result: expected 0x25, got 0x0", + "expectation": "Simulation", + "name": "procedural::static_function_output_formals_keep_value", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::static_function_package_storage_is_shared_between_calls", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::static_function_partial_writes_preserve_last_write", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::static_function_real_locals_and_results_keep_value", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::static_function_result_filled_by_constant_loops", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "procedural::static_function_result_keeps_value_between_calls at 930:14: assert_eq result: expected 0x17, got 0x0", + "expectation": "Simulation", + "name": "procedural::static_function_result_keeps_value_between_calls", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::static_function_retained_arrays_and_instance_storage", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::static_function_scratch_arrays_are_filled_before_reads", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "procedural::static_function_unpacked_scratch_bits_at_element_boundaries at 830:5: assert_eq y: expected 0x1, got 0x3ffffffffffffff", + "expectation": "Simulation", + "name": "procedural::static_function_unpacked_scratch_bits_at_element_boundaries", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::static_function_wide_packed_storage_keeps_all_bits", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::typedef_declaration_initializers", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "procedural::typedef_declaration_initializers_keep_unknown_bits", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/random_plusargs.json b/crates/celox-test-suite/verification/sv/xezim/random_plusargs.json new file mode 100644 index 00000000000..f6cf8fa64b5 --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/random_plusargs.json @@ -0,0 +1,59 @@ +{ + "cases": [ + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "random_plusargs::dist_uniform_bounds_seed_and_replay", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "random_plusargs::dist_uniform_converts_wide_and_signed_seeds_to_int_formals at 87:3: assert_eq ok: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "random_plusargs::dist_uniform_converts_wide_and_signed_seeds_to_int_formals", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "random_plusargs::dist_uniform_reference_sequence at 114:3: assert_eq ok: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "random_plusargs::dist_uniform_reference_sequence", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "random_plusargs::packed_string_literals_preserve_bytes_and_unsignedness", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "random_plusargs::plusargs_absent_preserves_destination", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/real_extensions.json b/crates/celox-test-suite/verification/sv/xezim/real_extensions.json new file mode 100644 index 00000000000..59a66d776cc --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/real_extensions.json @@ -0,0 +1,15 @@ +{ + "cases": [ + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "real_extensions::scanned_values_feed_math_and_realtime", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/real_math.json b/crates/celox-test-suite/verification/sv/xezim/real_math.json new file mode 100644 index 00000000000..d139d538424 --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/real_math.json @@ -0,0 +1,26 @@ +{ + "cases": [ + { + "category": "Combinational", + "detail": "real_math::constant_functions at 112:3: assert_eq ok: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "real_math::constant_functions", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "real_math::runtime_functions", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/realtime.json b/crates/celox-test-suite/verification/sv/xezim/realtime.json new file mode 100644 index 00000000000..df500e71932 --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/realtime.json @@ -0,0 +1,26 @@ +{ + "cases": [ + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "realtime::realtime_keeps_the_full_tick_counter", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "realtime::realtime_returns_real_in_timed_processes", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/review_regressions.json b/crates/celox-test-suite/verification/sv/xezim/review_regressions.json new file mode 100644 index 00000000000..0ee53f33f59 --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/review_regressions.json @@ -0,0 +1,235 @@ +{ + "cases": [ + { + "category": "Regression", + "detail": "invalid design was accepted: review_regressions::body_parameters_are_local_with_a_parameter_port_list", + "expectation": "CompilationError", + "name": "review_regressions::body_parameters_are_local_with_a_parameter_port_list", + "phase": "execute", + "status": "unexpected_accept", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "review_regressions::covers_single_bit_bitwise_complementary_guards", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "review_regressions::default_pattern_fills_each_element_of_unpacked_subarrays at 484:3: assert_eq z00: expected 0x20, got 0x0", + "expectation": "Simulation", + "name": "review_regressions::default_pattern_fills_each_element_of_unpacked_subarrays", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "review_regressions::folds_compound_four_state_case_labels at 402:7: assert_eq dynamic_y: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "review_regressions::folds_compound_four_state_case_labels", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "review_regressions::int_parameters_are_signed_in_comparisons_and_loop_bounds at 525:3: assert_eq lt_s: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "review_regressions::int_parameters_are_signed_in_comparisons_and_loop_bounds", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "review_regressions::lowers_parameter_casts_in_conditional_generate at 219:5: assert_eq comb_y: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "review_regressions::lowers_parameter_casts_in_conditional_generate", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "review_regressions::lowers_parameter_casts_in_loop_generate", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "review_regressions::normalizes_function_parameter_cast_dimensions at 188:5: assert_eq y: expected 0x3f, got 0x0", + "expectation": "Simulation", + "name": "review_regressions::normalizes_function_parameter_cast_dimensions", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "review_regressions::preserves_constant_case_selector_context", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "review_regressions::preserves_four_state_arithmetic_case_constants at 306:7: assert_eq y11: expected 0x1, got 0xX (y11)", + "expectation": "Simulation", + "name": "review_regressions::preserves_four_state_arithmetic_case_constants", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "review_regressions::preserves_four_state_equality_case_selectors at 429:7: assert_eq y8: expected 0x1, got 0xX (y8)", + "expectation": "Simulation", + "name": "review_regressions::preserves_four_state_equality_case_selectors", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "review_regressions::preserves_four_state_reduction_case_constants", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "review_regressions::preserves_four_state_relational_case_selectors", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "review_regressions::preserves_four_state_shift_and_bit_select_constants at 326:7: assert_eq y1: expected 0x1, got 0xX (y1)", + "expectation": "Simulation", + "name": "review_regressions::preserves_four_state_shift_and_bit_select_constants", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "review_regressions::preserves_size_cast_dimensions_in_declarations_and_selections", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "review_regressions::preserves_unsigned_128_bit_enum_arithmetic", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "xezim build exit status: 1; see /build.log\nParsed 2 file(s): 2 descriptions, 0 errors, 0 warnings\n/source_0.sv:19:46: error: Undeclared identifier 'x'\n 19 | input nibble_t [2:1] x;\n | ^\n", + "expectation": "Simulation", + "name": "review_regressions::preserves_use_site_dimensions_in_function_alias_types", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "review_regressions::preserves_use_site_dimensions_in_parameter_alias_types", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "review_regressions::resolves_generate_local_alias_casts_for_all_processes at 124:5: assert_eq comb_y: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "review_regressions::resolves_generate_local_alias_casts_for_all_processes", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "review_regressions::run_time_for_condition_uses_the_relational_operand_context", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "review_regressions::size_of_a_type_uses_the_dimension_argument", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/scan.json b/crates/celox-test-suite/verification/sv/xezim/scan.json new file mode 100644 index 00000000000..4c519e1df7c --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/scan.json @@ -0,0 +1,48 @@ +{ + "cases": [ + { + "category": "Sequential", + "detail": "scan::sscanf_integral_fields_and_failure_counts at 24:3: assert_eq ok: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "scan::sscanf_integral_fields_and_failure_counts", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "scan::sscanf_multiple_outputs_and_packed_input", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "scan::sscanf_radix_unknowns_and_unknown_input at 57:3: assert_eq ok: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "scan::sscanf_radix_unknowns_and_unknown_input", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "scan::sscanf_real_fields_width_and_suppression at 79:3: assert_eq ok: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "scan::sscanf_real_fields_width_and_suppression", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/string.json b/crates/celox-test-suite/verification/sv/xezim/string.json new file mode 100644 index 00000000000..eeb3afd19ae --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/string.json @@ -0,0 +1,103 @@ +{ + "cases": [ + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "string::assignment_and_display", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "string::casts_from_integral_values at 118:3: expect_output: expected [99, 97, 115, 116, 61, 91, 65, 66, 67, 93, 32, 108, 101, 110, 61, 51, 10, 110, 117, 108, 61, 91, 120, 121, 93, 32, 108, 101, 110, 61, 50, 10], got [99, 97, 115, 116, 61, 91, 65, 66, 67, 93, 32, 108, 101, 110, 61, 51, 10, 110, 117, 108, 61, 91, 120, 0, 121, 93, 32, 108, 101, 110, 61, 51, 10]", + "expectation": "Simulation", + "name": "string::casts_from_integral_values", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "string::character_access", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "string::comparisons", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "string::concatenation_and_replication", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "string::methods", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "string::string_parameters_keep_their_text", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "string::strings_across_clock_edges", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "string::strings_survive_heap_collections", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/synthesizable.json b/crates/celox-test-suite/verification/sv/xezim/synthesizable.json new file mode 100644 index 00000000000..69dd6c1eb5a --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/synthesizable.json @@ -0,0 +1,378 @@ +{ + "cases": [ + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "synthesizable::always_star_and_edge_sensitive_always_match_the_systemverilog_keywords", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "synthesizable::assigning_the_function_name_returns_its_last_value", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "synthesizable::block_local_names_shadow_other_signals", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "synthesizable::block_locals_and_dependent_assignments_accumulate", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "synthesizable::break_and_continue_end_unrolled_loop_iterations", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "synthesizable::casex_ignores_unknown_selector_bits", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "synthesizable::casez_and_casex_treat_wildcard_bits_as_dont_care", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "synthesizable::enum_members_without_values_follow_their_predecessor", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "synthesizable::exponentiation_works_in_constant_expressions", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "synthesizable::function_output_and_inout_arguments_are_written_back", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "synthesizable::inside_matches_values_ranges_and_wildcards", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "synthesizable::instance_array_unpacked_connection_ascending_to_descending", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "synthesizable::instance_array_unpacked_connection_descending_to_ascending", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "synthesizable::instance_array_unpacked_connection_descending_to_descending", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "synthesizable::instance_array_unpacked_connection_offset_ranges", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "synthesizable::instance_arrays_broadcast_and_slice_connections", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "invalid design was accepted: synthesizable::instance_arrays_reject_a_fill_literal_tie_off", + "expectation": "CompilationError", + "name": "synthesizable::instance_arrays_reject_a_fill_literal_tie_off", + "phase": "execute", + "status": "unexpected_accept", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "invalid design was accepted: synthesizable::instance_arrays_reject_an_unsized_constant_tie_off", + "expectation": "CompilationError", + "name": "synthesizable::instance_arrays_reject_an_unsized_constant_tie_off", + "phase": "execute", + "status": "unexpected_accept", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "synthesizable::instance_arrays_with_ascending_range", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "synthesizable::instance_arrays_with_non_zero_based_range", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "synthesizable::named_calls_in_constant_contexts at 684:3: assert_eq y: expected 0x80000001, got 0x1", + "expectation": "Simulation", + "name": "synthesizable::named_calls_in_constant_contexts", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "synthesizable::named_calls_preserve_defaults_and_declaration_scope at 729:3: assert_eq constant_value: expected 0x49, got 0x0", + "expectation": "Simulation", + "name": "synthesizable::named_calls_preserve_defaults_and_declaration_scope", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "synthesizable::named_calls_respect_generate_signatures at 701:3: assert_eq outer_y: expected 0x4, got 0xa", + "expectation": "Simulation", + "name": "synthesizable::named_calls_respect_generate_signatures", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "synthesizable::nested_block_locals_shadow_ports", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "synthesizable::net_declaration_assignment_drives_the_net", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "synthesizable::packages_provide_types_parameters_functions_and_enums", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "synthesizable::positional_ports_and_parameters_bind_in_declaration_order", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "synthesizable::struct_assignment_patterns_follow_the_target_layout", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "synthesizable::tasks_without_timing_write_their_outputs", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "synthesizable::type_parameter_bindings_preserve_alias_dimensions at 881:5: assert_eq t_bits: expected 0x8, got 0x4", + "expectation": "Simulation", + "name": "synthesizable::type_parameter_bindings_preserve_alias_dimensions", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "synthesizable::type_parameter_bindings_preserve_packed_members", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "synthesizable::type_parameter_bindings_use_caller_scope at 810:5: assert_eq literal_width: expected 0x8, got 0x2", + "expectation": "Simulation", + "name": "synthesizable::type_parameter_bindings_use_caller_scope", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "synthesizable::type_parameters_are_bound_by_instantiations at 444:5: assert_eq signed_neg: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "synthesizable::type_parameters_are_bound_by_instantiations", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "synthesizable::typedef_unpacked_arrays_are_not_instance_arrays", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/system_functions.json b/crates/celox-test-suite/verification/sv/xezim/system_functions.json new file mode 100644 index 00000000000..79649dbff3b --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/system_functions.json @@ -0,0 +1,1137 @@ +{ + "cases": [ + { + "category": "Functions", + "detail": "system_functions::array_queries_handle_runtime_dimensions at 597:7: assert_eq l: expected 0xx, got 0x2", + "expectation": "Simulation", + "name": "system_functions::array_queries_handle_runtime_dimensions", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::array_queries_preserve_bounds_and_dimensions at 574:3: assert_eq selected: expected 0xd, got 0x7", + "expectation": "Simulation", + "name": "system_functions::array_queries_preserve_bounds_and_dimensions", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::bit_vector_predicates_handle_unknown_bits_in_comb_ff_and_ports", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::bit_vector_predicates_in_constant_expressions at 148:3: assert_eq result: expected 0xa5, got 0x0", + "expectation": "Simulation", + "name": "system_functions::bit_vector_predicates_in_constant_expressions", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::bit_vector_predicates_preserve_argument_and_return_types", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::character_formats_preserve_non_utf8_bytes at 2493:3: expect_output: expected [128, 255, 124, 255, 1, 128, 124, 32, 32, 254, 124, 15, 128, 195, 169, 10], got [128, 255, 124, 255, 1, 128, 124, 32, 254, 124, 15, 128, 195, 169, 10]", + "expectation": "Simulation", + "name": "system_functions::character_formats_preserve_non_utf8_bytes", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::countbits_in_constant_expressions at 280:3: assert_eq result: expected 0x208, got 0x0", + "expectation": "Simulation", + "name": "system_functions::countbits_in_constant_expressions", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::countbits_in_parameter_specializations_and_generate_scopes at 394:3: assert_eq scoped: expected 0x2, got 0xffffffff", + "expectation": "Simulation", + "name": "system_functions::countbits_in_parameter_specializations_and_generate_scopes", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::countbits_matches_four_states_and_variable_controls", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::countbits_preserves_argument_and_return_types", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::countones_ignores_unknown_bits_in_comb_and_ff", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::countones_in_constant_expressions", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::countones_preserves_argument_and_return_types", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::dimensions_counts_declared_arrays at 662:3: assert_eq scalar: expected 0x0, got 0x1", + "expectation": "Simulation", + "name": "system_functions::dimensions_counts_declared_arrays", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::dimensions_is_independent_of_unknown_values at 816:5: assert_eq parameter_value: expected 0x2, got 0x0", + "expectation": "Simulation", + "name": "system_functions::dimensions_is_independent_of_unknown_values", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::dimensions_of_nonarray_handle_types", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::dimensions_preserves_one_bit_vectors at 924:5: assert_eq scalar_rank: expected 0x0, got 0x1", + "expectation": "Simulation", + "name": "system_functions::dimensions_preserves_one_bit_vectors", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::dimensions_preserves_selected_and_expression_types at 707:5: assert_eq whole: expected 0x2, got 0x1", + "expectation": "Simulation", + "name": "system_functions::dimensions_preserves_selected_and_expression_types", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::dimensions_resolves_imported_function_returns at 954:3: assert_eq imported_rank: expected 0x2, got 0x0", + "expectation": "Simulation", + "name": "system_functions::dimensions_resolves_imported_function_returns", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::dimensions_resolves_package_array_constants at 890:3: assert_eq whole: expected 0x2, got 0x0", + "expectation": "Simulation", + "name": "system_functions::dimensions_resolves_package_array_constants", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::dimensions_resolves_preceding_block_declarations at 975:3: assert_eq width_value: expected 0x3, got 0x2", + "expectation": "Simulation", + "name": "system_functions::dimensions_resolves_preceding_block_declarations", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::dimensions_resolves_procedural_parameters_and_indices", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::dimensions_resolves_procedural_scopes at 869:3: assert_eq task_value: expected 0x18, got 0x2c", + "expectation": "Simulation", + "name": "system_functions::dimensions_resolves_procedural_scopes", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::dimensions_resolves_types_and_constant_scopes at 781:3: assert_eq unpacked_type: expected 0x4, got 0x2", + "expectation": "Simulation", + "name": "system_functions::dimensions_resolves_types_and_constant_scopes", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::dimensions_signing_conversions_are_vectors at 1015:3: assert_eq scalar_rank: expected 0x0, got 0x1", + "expectation": "Simulation", + "name": "system_functions::dimensions_signing_conversions_are_vectors", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::dimensions_types_function_pattern_arguments at 992:3: assert_eq constant_rank: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "system_functions::dimensions_types_function_pattern_arguments", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::display_arguments_are_sized_as_ieee_specifies at 418:3: expect_output: expected [58, 48, 48, 97, 58, 97, 58, 48, 48, 97, 58, 48, 48, 48, 48, 48, 48, 48, 53, 58, 10, 58, 48, 48, 48, 48, 48, 48, 48, 48, 49, 48, 49, 48, 58, 49, 48, 49, 48, 58, 48, 48, 49, 50, 58, 49, 50, 58, 10, 58, 32, 32, 49, 48, 58, 49, 48, 58, 32, 49, 48, 58, 32, 32, 45, 50, 58, 10, 58, 49, 50, 51, 52, 58, 32, 32, 32, 97, 98, 58, 124, 48, 48, 97, 124, 10], got [58, 48, 48, 97, 58, 97, 58, 48, 48, 97, 58, 48, 48, 48, 48, 48, 48, 48, 53, 58, 10, 58, 48, 48, 48, 48, 48, 48, 48, 48, 49, 48, 49, 48, 58, 49, 48, 49, 48, 58, 48, 48, 49, 50, 58, 49, 50, 58, 10, 58, 32, 32, 49, 48, 58, 49, 48, 58, 32, 49, 48, 58, 50, 53, 52, 58, 10, 58, 49, 50, 51, 52, 58, 32, 32, 32, 97, 98, 58, 124, 48, 48, 97, 124, 10]", + "expectation": "Simulation", + "name": "system_functions::display_arguments_are_sized_as_ieee_specifies", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::display_expressions_propagate_operand_widths at 2385:3: expect_output: expected [102, 102, 102, 102, 102, 102, 102, 102, 32, 45, 49, 32, 102, 55, 32, 54, 100, 32, 56, 48, 51, 49, 32, 102, 98, 32, 56, 52, 10], got [102, 102, 32, 50, 53, 53, 32, 102, 55, 32, 54, 100, 32, 56, 48, 51, 49, 32, 102, 98, 32, 56, 52, 10]", + "expectation": "Simulation", + "name": "system_functions::display_expressions_propagate_operand_widths", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::display_field_flags at 445:3: expect_output: expected [122, 101, 114, 111, 58, 91, 48, 48, 48, 52, 50, 93, 32, 112, 97, 100, 58, 91, 32, 32, 53, 93, 10, 119, 114, 105, 116, 101, 45, 122, 101, 114, 111, 58, 91, 48, 48, 48, 52, 50, 93, 32, 37, 10, 108, 101, 102, 116, 58, 91, 53, 32, 32, 32, 32, 93, 10, 98, 111, 116, 104, 58, 91, 53, 32, 32, 32, 32, 93, 32, 109, 105, 110, 58, 91, 52, 50, 93, 32, 119, 105, 100, 101, 58, 91, 49, 50, 51, 52, 93, 10, 115, 116, 114, 105, 110, 103, 58, 91, 97, 98, 32, 32, 32, 93, 32, 110, 101, 120, 116, 58, 91, 52, 50, 93, 32, 115, 117, 114, 112, 108, 117, 115, 58, 91, 53, 32, 32, 32, 32, 93, 33, 10, 119, 114, 105, 116, 101, 45, 108, 101, 102, 116, 58, 91, 53, 32, 32, 32, 32, 93, 10], got [122, 101, 114, 111, 58, 91, 32, 32, 32, 52, 50, 93, 32, 112, 97, 100, 58, 91, 32, 32, 53, 93, 10, 119, 114, 105, 116, 101, 45, 122, 101, 114, 111, 58, 91, 32, 32, 32, 52, 50, 93, 32, 37, 10, 108, 101, 102, 116, 58, 91, 53, 32, 32, 32, 32, 93, 10, 98, 111, 116, 104, 58, 91, 53, 32, 32, 32, 32, 93, 32, 109, 105, 110, 58, 91, 52, 50, 93, 32, 119, 105, 100, 101, 58, 91, 49, 50, 51, 52, 93, 10, 115, 116, 114, 105, 110, 103, 58, 91, 97, 98, 32, 32, 32, 93, 32, 110, 101, 120, 116, 58, 91, 52, 50, 93, 32, 115, 117, 114, 112, 108, 117, 115, 58, 91, 53, 32, 32, 32, 32, 93, 33, 10, 119, 114, 105, 116, 101, 45, 108, 101, 102, 116, 58, 91, 53, 32, 32, 32, 32, 93, 10]", + "expectation": "Simulation", + "name": "system_functions::display_field_flags", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::display_field_widths_expand_to_the_value", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::display_tasks_default_to_their_radix", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::display_unknown_bits_as_ieee_specifies", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::immediate_cover_executes_pass_statement", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::immediate_cover_handles_unknown_conditions", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::isunbounded_binds_procedural_aliases_in_declaration_order at 1374:5: assert_eq initialized: expected 0x7, got 0x4", + "expectation": "Simulation", + "name": "system_functions::isunbounded_binds_procedural_aliases_in_declaration_order", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::isunbounded_generate_guards_preserve_short_circuit_bounds at 1466:3: assert_eq or_bits: expected 0x2, got 0x1", + "expectation": "Simulation", + "name": "system_functions::isunbounded_generate_guards_preserve_short_circuit_bounds", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::isunbounded_handles_overrides_and_forwarding", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::isunbounded_preserves_lexical_scopes_and_short_circuits at 1298:3: assert_eq function_result: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "system_functions::isunbounded_preserves_lexical_scopes_and_short_circuits", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::isunbounded_preserves_parameter_values_and_result_type at 1207:3: assert_eq flags: expected 0xe0, got 0xf8", + "expectation": "Simulation", + "name": "system_functions::isunbounded_preserves_parameter_values_and_result_type", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::isunbounded_reports_bounded_array_parameters", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::isunbounded_reports_bounded_parameters", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::isunbounded_resolves_package_and_local_parameters at 1260:3: assert_eq flags: expected 0xd, got 0xc", + "expectation": "Simulation", + "name": "system_functions::isunbounded_resolves_package_and_local_parameters", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::isunbounded_restores_procedural_parameter_bindings", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::isunbounded_restores_procedural_parameter_type_metadata at 1427:3: assert_eq inner_rank: expected 0x0, got 0x1", + "expectation": "Simulation", + "name": "system_functions::isunbounded_restores_procedural_parameter_type_metadata", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::isunbounded_restores_shadowed_function_arguments at 1448:5: assert_eq y: expected 0x100, got 0x0", + "expectation": "Simulation", + "name": "system_functions::isunbounded_restores_shadowed_function_arguments", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::printtimescale_displays_unit_and_global_precision at 2316:3: expect_output: expected [84, 105, 109, 101, 32, 115, 99, 97, 108, 101, 32, 111, 102, 32, 40, 36, 117, 110, 105, 116, 41, 32, 105, 115, 32, 49, 48, 48, 112, 115, 32, 47, 32, 49, 48, 102, 115, 10, 84, 105, 109, 101, 32, 115, 99, 97, 108, 101, 32, 111, 102, 32, 40, 36, 114, 111, 111, 116, 41, 32, 105, 115, 32, 49, 48, 102, 115, 32, 47, 32, 49, 48, 102, 115, 10], got [84, 105, 109, 101, 32, 115, 99, 97, 108, 101, 32, 111, 102, 32, 40, 99, 101, 108, 111, 120, 95, 115, 117, 105, 116, 101, 95, 116, 98, 41, 32, 105, 115, 32, 49, 110, 115, 32, 47, 32, 49, 112, 115, 10, 84, 105, 109, 101, 32, 115, 99, 97, 108, 101, 32, 111, 102, 32, 40, 99, 101, 108, 111, 120, 95, 115, 117, 105, 116, 101, 95, 116, 98, 41, 32, 105, 115, 32, 49, 110, 115, 32, 47, 32, 49, 112, 115, 10]", + "expectation": "Simulation", + "name": "system_functions::printtimescale_displays_unit_and_global_precision", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::printtimescale_preserves_package_subroutine_scope at 2341:3: expect_output: expected [84, 105, 109, 101, 32, 115, 99, 97, 108, 101, 32, 111, 102, 32, 40, 80, 41, 32, 105, 115, 32, 49, 48, 48, 110, 115, 32, 47, 32, 49, 48, 112, 115, 10, 84, 105, 109, 101, 32, 115, 99, 97, 108, 101, 32, 111, 102, 32, 40, 80, 41, 32, 105, 115, 32, 49, 48, 48, 110, 115, 32, 47, 32, 49, 48, 112, 115, 10], got [84, 105, 109, 101, 32, 115, 99, 97, 108, 101, 32, 111, 102, 32, 40, 99, 101, 108, 111, 120, 95, 115, 117, 105, 116, 101, 95, 116, 98, 46, 80, 41, 32, 105, 115, 32, 49, 110, 115, 32, 47, 32, 49, 112, 115, 10, 84, 105, 109, 101, 32, 115, 99, 97, 108, 101, 32, 111, 102, 32, 40, 99, 101, 108, 111, 120, 95, 115, 117, 105, 116, 101, 95, 116, 98, 41, 32, 105, 115, 32, 49, 110, 115, 32, 47, 32, 49, 112, 115, 10]", + "expectation": "Simulation", + "name": "system_functions::printtimescale_preserves_package_subroutine_scope", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::random_follows_annex_n_and_updates_its_seed at 2717:3: assert_eq comb_value: expected 0x12153524, got 0x510c4619", + "expectation": "Simulation", + "name": "system_functions::random_follows_annex_n_and_updates_its_seed", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::random_without_a_seed_continues_its_stream at 2766:3: expect_output: expected [51, 48, 51, 51, 55, 57, 55, 52, 56, 32, 45, 49, 48, 54, 52, 55, 51, 57, 49, 57, 57, 10], got [45, 51, 55, 53, 51, 57, 50, 49, 53, 51, 32, 57, 52, 50, 54, 54, 55, 56, 53, 50, 10]", + "expectation": "Simulation", + "name": "system_functions::random_without_a_seed_continues_its_stream", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::scope_randomize_enum_order at 2954:46: assert_eq errors: expected 0x0, got 0x40", + "expectation": "Simulation", + "name": "system_functions::scope_randomize_enum_order", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::scope_randomize_enum_values at 2929:46: assert_eq errors: expected 0x0, got 0x100", + "expectation": "Simulation", + "name": "system_functions::scope_randomize_enum_values", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::scope_randomize_fills_arbitrary_packed_widths", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "run_to_finish was not reached or the design did not finish", + "expectation": "Simulation", + "name": "system_functions::scope_randomize_obeys_control_flow_and_statement_order", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::signed_casts_in_parameters", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::string_literals_follow_numeric_format_specifiers", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::time_format_consumes_its_expression_argument", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::time_format_defaults_to_the_smallest_precision", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::time_format_scales_each_scope_to_the_smallest_precision", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::time_format_scales_string_literals", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::time_format_values_are_self_determined", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::timescale_queries_accept_directives_before_unit_declarations at 1537:3: assert_eq ok: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "system_functions::timescale_queries_accept_directives_before_unit_declarations", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::timescale_queries_accept_leading_zero_magnitudes at 1628:3: assert_eq ok: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "system_functions::timescale_queries_accept_leading_zero_magnitudes", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::timescale_queries_accept_separate_initial_declarations at 1495:3: assert_eq ok: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "system_functions::timescale_queries_accept_separate_initial_declarations", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::timescale_queries_are_constant_in_unqualified_calls at 1177:3: assert_eq ok: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "system_functions::timescale_queries_are_constant_in_unqualified_calls", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::timescale_queries_distinguish_unit_and_global_precision at 1112:3: assert_eq ok: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "system_functions::timescale_queries_distinguish_unit_and_global_precision", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "xezim build exit status: 1; see /build.log\n/source_0.sv:13:5: error: `resetall is illegal inside a design element (IEEE 1800-2017 §22.3)\n 13 | `resetall\n | ^~~~~~~~~\nError: preprocessing failed (1 error(s))\n", + "expectation": "Simulation", + "name": "system_functions::timescale_queries_follow_partial_declarations_and_resetall", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::timescale_queries_keep_module_and_package_names_independent at 1522:3: assert_eq ok: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "system_functions::timescale_queries_keep_module_and_package_names_independent", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::timescale_queries_preserve_interface_scopes_when_flattened at 1599:3: assert_eq direct_unit: expected 0xfffffff9, got 0xfffffff8", + "expectation": "Simulation", + "name": "system_functions::timescale_queries_preserve_interface_scopes_when_flattened", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::timescale_queries_preserve_procedural_and_package_scopes at 1158:3: assert_eq ok: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "system_functions::timescale_queries_preserve_procedural_and_package_scopes", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::timescale_queries_resolve_declarations_and_return_types at 1063:3: assert_eq ok: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "system_functions::timescale_queries_resolve_declarations_and_return_types", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::timescale_queries_resolve_directives_and_hierarchy at 1094:3: assert_eq ok: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "system_functions::timescale_queries_resolve_directives_and_hierarchy", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::timescale_queries_resolve_hierarchical_interface_instances at 1754:3: assert_eq u: expected 0xfffffff9, got 0xfffffff7", + "expectation": "Simulation", + "name": "system_functions::timescale_queries_resolve_hierarchical_interface_instances", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::timescale_queries_resolve_interface_instances_and_ports at 1704:3: assert_eq direct_u: expected 0xfffffff9, got 0xfffffff7", + "expectation": "Simulation", + "name": "system_functions::timescale_queries_resolve_interface_instances_and_ports", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::timescale_queries_resolve_packages_with_instantiated_namesakes at 1557:3: assert_eq ok: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "system_functions::timescale_queries_resolve_packages_with_instantiated_namesakes", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::timescale_queries_survive_type_parameter_specialization at 1654:3: assert_eq ok: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "system_functions::timescale_queries_survive_type_parameter_specialization", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::unpacked_dimensions_accepts_defaulted_function_arguments at 2036:3: assert_eq runtime_rank: expected 0x0, got 0x1", + "expectation": "Simulation", + "name": "system_functions::unpacked_dimensions_accepts_defaulted_function_arguments", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::unpacked_dimensions_accepts_explicit_default_omissions at 2082:3: assert_eq runtime_rank: expected 0x0, got 0x1", + "expectation": "Simulation", + "name": "system_functions::unpacked_dimensions_accepts_explicit_default_omissions", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::unpacked_dimensions_accepts_function_result_arguments at 2154:3: assert_eq ansi_result: expected 0x9, got 0xc", + "expectation": "Simulation", + "name": "system_functions::unpacked_dimensions_accepts_function_result_arguments", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::unpacked_dimensions_checks_unevaluated_indices at 2222:3: assert_eq constant_rank: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "system_functions::unpacked_dimensions_checks_unevaluated_indices", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::unpacked_dimensions_counts_declared_arrays at 1786:5: assert_eq nonarray_type: expected 0x0, got 0x1", + "expectation": "Simulation", + "name": "system_functions::unpacked_dimensions_counts_declared_arrays", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::unpacked_dimensions_is_independent_of_unknown_values at 1913:5: assert_eq element: expected 0x0, got 0x1", + "expectation": "Simulation", + "name": "system_functions::unpacked_dimensions_is_independent_of_unknown_values", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::unpacked_dimensions_prefers_values_over_imported_types at 2203:3: assert_eq type_rank: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "system_functions::unpacked_dimensions_prefers_values_over_imported_types", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::unpacked_dimensions_preserves_selection_and_return_types at 1823:5: assert_eq whole: expected 0x2, got 0x1", + "expectation": "Simulation", + "name": "system_functions::unpacked_dimensions_preserves_selection_and_return_types", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::unpacked_dimensions_publishes_array_parameters_before_declarations at 2287:3: assert_eq y: expected 0x3, got 0x1", + "expectation": "Simulation", + "name": "system_functions::unpacked_dimensions_publishes_array_parameters_before_declarations", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::unpacked_dimensions_publishes_dependent_array_parameters at 2363:3: assert_eq y: expected 0x123412341234, got 0x0", + "expectation": "Simulation", + "name": "system_functions::unpacked_dimensions_publishes_dependent_array_parameters", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::unpacked_dimensions_resolves_package_array_constants at 1974:3: assert_eq whole: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "system_functions::unpacked_dimensions_resolves_package_array_constants", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::unpacked_dimensions_resolves_preceding_block_declarations at 1994:3: assert_eq width_value: expected 0x2, got 0x1", + "expectation": "Simulation", + "name": "system_functions::unpacked_dimensions_resolves_preceding_block_declarations", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::unpacked_dimensions_resolves_preceding_module_declarations", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::unpacked_dimensions_resolves_procedural_scopes at 1953:3: assert_eq task_value: expected 0xd, got 0x21", + "expectation": "Simulation", + "name": "system_functions::unpacked_dimensions_resolves_procedural_scopes", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::unpacked_dimensions_resolves_sibling_declarators", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::unpacked_dimensions_resolves_types_and_constant_scopes at 1882:3: assert_eq alias_type: expected 0x2, got 0x0", + "expectation": "Simulation", + "name": "system_functions::unpacked_dimensions_resolves_types_and_constant_scopes", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::unpacked_dimensions_restores_shadowed_array_rank at 2062:3: assert_eq local_rank: expected 0x0, got 0x1", + "expectation": "Simulation", + "name": "system_functions::unpacked_dimensions_restores_shadowed_array_rank", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::unpacked_dimensions_selects_integral_atoms at 2266:3: assert_eq runtime_rank: expected 0x0, got 0x1", + "expectation": "Simulation", + "name": "system_functions::unpacked_dimensions_selects_integral_atoms", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::unpacked_dimensions_types_function_pattern_arguments at 2012:3: assert_eq runtime_rank: expected 0x0, got 0x1", + "expectation": "Simulation", + "name": "system_functions::unpacked_dimensions_types_function_pattern_arguments", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::unpacked_dimensions_validates_writable_function_arguments at 2105:3: assert_eq rank: expected 0x0, got 0x1", + "expectation": "Simulation", + "name": "system_functions::unpacked_dimensions_validates_writable_function_arguments", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::urandom_comb_executes_in_statement_order at 2630:3: assert_eq ok: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "system_functions::urandom_comb_executes_in_statement_order", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::urandom_extends_signed_seed_values at 2690:5: assert_eq ff_ok: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "system_functions::urandom_extends_signed_seed_values", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::urandom_has_an_unsigned_self_determined_result", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::urandom_keeps_process_and_instance_streams_independent at 2551:5: assert_eq same: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "system_functions::urandom_keeps_process_and_instance_streams_independent", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_functions::urandom_range_stays_within_its_bounds", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::urandom_reseeds_and_shares_the_calling_process_stream at 2520:5: assert_eq ok: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "system_functions::urandom_reseeds_and_shares_the_calling_process_stream", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::urandom_respects_short_circuits_and_evaluates_indices_once at 2575:3: assert_eq ok: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "system_functions::urandom_respects_short_circuits_and_evaluates_indices_once", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "system_functions::urandom_select_keeps_distinct_source_calls at 2661:3: assert_eq ff_ok: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "system_functions::urandom_select_keeps_distinct_source_calls", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/tagged_unions.json b/crates/celox-test-suite/verification/sv/xezim/tagged_unions.json new file mode 100644 index 00000000000..6e81a9a40a9 --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/tagged_unions.json @@ -0,0 +1,103 @@ +{ + "cases": [ + { + "category": "Types", + "detail": "xezim build exit status: 1; see /build.log\n/source_0.sv:11:60: error: expected RParen, found Identifier 'data'\n 11 | always_comb current_value = Types::item_t'(tagged Full data);\n | ^~~~\n/source_0.sv:11:60: error: expected Semicolon, found Identifier 'data'\n 11 | always_comb current_value = Types::item_t'(tagged Full data);\n | ^~~~\n/source_0.sv:11:64: error: expected identifier, found RParen ')'\n 11 | always_comb current_value = Types::item_t'(tagged Full data);\n | ^\n/source_0.sv:11:64: error: expected Semicolon, found RParen ')'\n 11 | always_comb current_value = Types::item_t'(tagged Full data);\n | ^\n/source_0.sv:11:64: error: unexpected: \")\"\n 11 | always_comb current_value = Types::item_t'(tagged Full data);\n | ^\nParsed 2 file(s): 4 descriptions, 5 errors, 0 warnings\n", + "expectation": "Simulation", + "name": "tagged_unions::casts_ports_and_registers", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "tagged_unions::conditional_struct_payload at 149:5: assert_eq result: expected 0xb5, got 0x10", + "expectation": "Simulation", + "name": "tagged_unions::conditional_struct_payload", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "xezim build exit status: 1; see /build.log\n/source_0.sv:8:44: error: expected Semicolon, found Identifier 'data'\n 8 | if (full_value) item = tagged Full data;\n | ^~~~\n/source_0.sv:9:9: error: expected expression, found KwElse 'else'\n 9 | else item = tagged Empty;\n | ^~~~\n/source_0.sv:9:14: error: expected Semicolon, found Identifier 'item'\n 9 | else item = tagged Empty;\n | ^~~~\n/source_0.sv:16:30: error: expected Semicolon, found IntegerLiteral '8'h00'\n 16 | copied = tagged Full 8'h00;\n | ^~~~~\n/source_0.sv:19:30: error: expected Semicolon, found IntegerLiteral '8'ha0'\n 19 | copied = tagged Full 8'ha0;\n | ^~~~~\nParsed 2 file(s): 2 descriptions, 6 errors, 0 warnings\n", + "expectation": "Simulation", + "name": "tagged_unions::constructors_and_checked_members", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "xezim build exit status: 1; see /build.log\n/source_0.sv:6:73: error: expected RParen, found Identifier 'data'\n 6 | function automatic logic [7:0] get(input item_t value = tagged Full data,\n | ^~~~\n/source_0.sv:6:73: error: expected Semicolon, found Identifier 'data'\n 6 | function automatic logic [7:0] get(input item_t value = tagged Full data,\n | ^~~~\n/source_0.sv:6:77: error: expected Semicolon, found Comma ','\n 6 | function automatic logic [7:0] get(input item_t value = tagged Full data,\n | ^\n/source_0.sv:6:77: error: expected expression, found Comma ','\n 6 | function automatic logic [7:0] get(input item_t value = tagged Full data,\n | ^\n/source_0.sv:7:40: error: expected Semicolon, found KwInput 'input'\n 7 | input logic [7:0] data = 8'hee);\n | ^~~~~\n/source_0.sv:7:70: error: expected expression, found RParen ')'\n 7 | input logic [7:0] data = 8'hee);\n | ^\n/source_0.sv:10:94: error: expected RParen, found IntegerLiteral '8'h35'\n 10 | function automatic logic [7:0] get_nested(input outer_t value = tagged Some (tagged Full 8'h35));\n | ^~~~~\n/source_0.sv:10:94: error: expected Semicolon, found IntegerLiteral '8'h35'\n 10 | function automatic logic [7:0] get_nested(input outer_t value = tagged Some (tagged Full 8'h35));\n | ^~~~~\n/source_0.sv:10:99: error: expected Semicolon, found RParen ')'\n 10 | function automatic logic [7:0] get_nested(input outer_t value = tagged Some (tagged Full 8'h35));\n | ^\n/source_0.sv:10:99: error: expected expression, found RParen ')'\n 10 | function automatic logic [7:0] get_nested(input outer_t value = tagged Some (tagged Full 8'h35));\n | ^\n/source_0.sv:10:100: error: expected Semicolon, found RParen ')'\n 10 | function automatic logic [7:0] get_nested(input outer_t value = tagged Some (tagged Full 8'h35));\n | ^\n/source_0.sv:10:100: error: expected expression, found RParen ')'\n 10 | function automatic logic [7:0] get_nested(input outer_t value = tagged Some (tagged Full 8'h35));\n | ^\n/source_0.sv:14:29: error: expected Semicolon, found IntegerLiteral '8'h19'\n 14 | value = tagged Full 8'h19;\n | ^~~~~\n/source_0.sv:17:91: error: expected RParen, found IntegerLiteral '8'h2a'\n 17 | task automatic read_value(output logic [7:0] result, input item_t value = tagged Full 8'h2a);\n | ^~~~~\n/source_0.sv:17:91: error: expected Semicolon, found IntegerLiteral '8'h2a'\n 17 | task automatic read_value(output logic [7:0] result, input item_t value = tagged Full 8'h2a);\n | ^~~~~\n/source_0.sv:17:96: error: expected Semicolon, found RParen ')'\n 17 | task automatic read_value(output logic [7:0] result, input item_t value = tagged Full 8'h2a);\n | ^\n/source_0.sv:17:96: error: expected expression, found RParen ')'\n 17 | task automatic read_value(output logic [7:0] result, input item_t value = tagged Full 8'h2a);\n | ^\n/source_0.sv:23:42: error: expected RParen, found IntegerLiteral '8'h55'\n 23 | explicit_value = get(tagged Full 8'h55);\n | ^~~~~\n/source_0.sv:23:42: error: expected Semicolon, found IntegerLiteral '8'h55'\n 23 | explicit_value = get(tagged Full 8'h55);\n | ^~~~~\n/source_0.sv:23:47: error: expected Semicolon, found RParen ')'\n 23 | explicit_value = get(tagged Full 8'h55);\n | ^\n... 1 more error(s) in '/source_0.sv' not shown\nParsed 2 file(s): 2 descriptions, 28 errors, 0 warnings\n", + "expectation": "Simulation", + "name": "tagged_unions::default_arguments", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "xezim build exit status: 1; see /build.log\n/source_0.sv:11:29: error: expected Semicolon, found IntegerLiteral '8'd4'\n 11 | value = tagged Full 8'd4;\n | ^~~~\n/source_0.sv:21:42: error: expected RParen, found IntegerLiteral '8'd7'\n 21 | value = tagged Some (tagged Full 8'd7);\n | ^~~~\n/source_0.sv:21:42: error: expected Semicolon, found IntegerLiteral '8'd7'\n 21 | value = tagged Some (tagged Full 8'd7);\n | ^~~~\n/source_0.sv:21:46: error: expected Semicolon, found RParen ')'\n 21 | value = tagged Some (tagged Full 8'd7);\n | ^\n/source_0.sv:21:46: error: expected expression, found RParen ')'\n 21 | value = tagged Some (tagged Full 8'd7);\n | ^\n/source_0.sv:26:30: error: expected Semicolon, found IntegerLiteral '8'd4'\n 26 | value = tagged Empty 8'd4;\n | ^~~~\n/source_0.sv:41:28: error: expected Semicolon, found Identifier 'value'\n 41 | return tagged Full value;\n | ^~~~~\n/source_0.sv:44:36: error: expected Colon, found Identifier 'value'\n 44 | return valid ? tagged Full value : tagged Empty;\n | ^~~~~\n/source_0.sv:44:42: error: expected Semicolon, found Colon ':'\n 44 | return valid ? tagged Full value : tagged Empty;\n | ^\n/source_0.sv:44:42: error: expected expression, found Colon ':'\n 44 | return valid ? tagged Full value : tagged Empty;\n | ^\n/source_0.sv:44:44: error: expected Semicolon, found KwTagged 'tagged'\n 44 | return valid ? tagged Full value : tagged Empty;\n | ^~~~~~\n/source_0.sv:48:29: error: expected Semicolon, found Identifier 'd'\n 48 | value = tagged Full d;\n | ^\nParsed 2 file(s): 2 descriptions, 14 errors, 0 warnings\n", + "expectation": "Simulation", + "name": "tagged_unions::factory_and_union_arguments", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "xezim build exit status: 1; see /build.log\n/source_0.sv:8:43: error: expected RParen, found Identifier 'data'\n 8 | item = tagged Nested (tagged Full data);\n | ^~~~\n/source_0.sv:8:43: error: expected Semicolon, found Identifier 'data'\n 8 | item = tagged Nested (tagged Full data);\n | ^~~~\n/source_0.sv:8:47: error: expected Semicolon, found RParen ')'\n 8 | item = tagged Nested (tagged Full data);\n | ^\n/source_0.sv:8:47: error: expected expression, found RParen ')'\n 8 | item = tagged Nested (tagged Full data);\n | ^\n/source_0.sv:10:28: error: expected Semicolon, found IntegerLiteral '16'hffff'\n 10 | item = tagged Word 16'hffff;\n | ^~~~~~~~\n/source_0.sv:14:47: error: expected RParen, found Identifier 'data'\n 14 | item = tagged Nested (tagged Full data);\n | ^~~~\n/source_0.sv:14:47: error: expected Semicolon, found Identifier 'data'\n 14 | item = tagged Nested (tagged Full data);\n | ^~~~\n/source_0.sv:14:51: error: expected Semicolon, found RParen ')'\n 14 | item = tagged Nested (tagged Full data);\n | ^\n/source_0.sv:14:51: error: expected expression, found RParen ')'\n 14 | item = tagged Nested (tagged Full data);\n | ^\nParsed 2 file(s): 2 descriptions, 11 errors, 0 warnings\n", + "expectation": "Simulation", + "name": "tagged_unions::nested_and_void_constructors", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "xezim build exit status: 1; see /build.log\n/source_0.sv:7:28: error: expected Semicolon, found Identifier 'data'\n 7 | item = tagged Full data;\n | ^~~~\nParsed 2 file(s): 2 descriptions, 1 errors, 0 warnings\n", + "expectation": "Simulation", + "name": "tagged_unions::wide_four_state_payload", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "xezim build exit status: 1; see /build.log\n/source_0.sv:6:28: error: expected Semicolon, found IntegerLiteral '0'\n 6 | item = tagged Full 0;\n | ^\n/source_0.sv:13:28: error: expected Semicolon, found IntegerLiteral '123'\n 13 | item = tagged Full 123;\n | ^~~\nParsed 3 file(s): 3 descriptions, 2 errors, 0 warnings\n", + "expectation": "Simulation", + "name": "tagged_unions::writable_system_arguments", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "xezim build exit status: 1; see /build.log\n/source_0.sv:18:28: error: expected Semicolon, found IntegerLiteral '0'\n 18 | item = tagged Full 0;\n | ^\n/source_0.sv:22:43: error: expected RParen, found IntegerLiteral '0'\n 22 | nested = tagged Some (tagged Full 0);\n | ^\n/source_0.sv:22:43: error: expected Semicolon, found IntegerLiteral '0'\n 22 | nested = tagged Some (tagged Full 0);\n | ^\n/source_0.sv:22:44: error: expected Semicolon, found RParen ')'\n 22 | nested = tagged Some (tagged Full 0);\n | ^\n/source_0.sv:22:44: error: expected expression, found RParen ')'\n 22 | nested = tagged Some (tagged Full 0);\n | ^\nParsed 2 file(s): 2 descriptions, 6 errors, 0 warnings\n", + "expectation": "Simulation", + "name": "tagged_unions::writable_task_arguments", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/timing.json b/crates/celox-test-suite/verification/sv/xezim/timing.json new file mode 100644 index 00000000000..194cb10cae6 --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/timing.json @@ -0,0 +1,1456 @@ +{ + "cases": [ + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::always_star_timed_task_calls_assign_nonblocking", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::always_star_timed_task_calls_run_as_processes", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "timing::always_star_timed_task_calls_wait_on_folded_branch_reads at 1309:17: assert_eq y: expected 0x1, got 0x0 (a change of what a folded call's default reads wakes the process)", + "expectation": "Simulation", + "name": "timing::always_star_timed_task_calls_wait_on_folded_branch_reads", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "timing::always_star_timed_task_calls_wait_on_nested_call_defaults at 1288:17: assert_eq y: expected 0x5, got 0x0 (a change of what pick's default reads wakes the process)", + "expectation": "Simulation", + "name": "timing::always_star_timed_task_calls_wait_on_nested_call_defaults", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::always_timed_task_without_inline_timing_executes", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::always_with_a_delay_generates_a_clock", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "timing::any_change_waits_wake_on_every_value_change at 116:3: expect_output: expected [100, 97, 116, 97, 61, 55, 10, 101, 105, 116, 104, 101, 114, 10, 100, 97, 116, 97, 61, 57, 10, 101, 105, 116, 104, 101, 114, 10, 111, 116, 104, 101, 114, 61, 49, 32, 102, 108, 97, 103, 61, 48, 10, 111, 116, 104, 101, 114, 61, 49, 32, 102, 108, 97, 103, 61, 49, 10, 101, 105, 116, 104, 101, 114, 10], got [101, 105, 116, 104, 101, 114, 10, 100, 97, 116, 97, 61, 55, 10, 100, 97, 116, 97, 61, 57, 10, 101, 105, 116, 104, 101, 114, 10, 111, 116, 104, 101, 114, 61, 49, 32, 102, 108, 97, 103, 61, 48, 10, 111, 116, 104, 101, 114, 61, 49, 32, 102, 108, 97, 103, 61, 49, 10, 101, 105, 116, 104, 101, 114, 10]", + "expectation": "Simulation", + "name": "timing::any_change_waits_wake_on_every_value_change", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::asynchronous_reset_driven_by_a_delay_process", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::bit_select_edges_follow_the_selected_bit", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::blocking_concatenation_publishes_one_event_update", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::blocking_ff_clock_edges_trigger_their_domains_before_inactive_work", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::blocking_ff_stores_are_visible_before_inactive_work", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "timing::blocking_ff_woken_waiters_sample_before_continuations at 882:24: assert_eq a: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "timing::blocking_ff_woken_waiters_sample_before_continuations", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::blocking_write_edges_read_values_before_nonblocking_updates", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "timing::blocking_write_waiters_rearm_before_nonblocking_updates at 2211:3: expect_output: expected [110, 61, 51, 32, 114, 61, 51, 10], got [110, 61, 49, 32, 114, 61, 49, 10]", + "expectation": "Simulation", + "name": "timing::blocking_write_waiters_rearm_before_nonblocking_updates", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::blocking_write_waiters_run_before_nonblocking_updates", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::case_writes_preserve_distinct_activation_times", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::child_port_pulses_reach_waiters_settled", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::combinational_finish_ends_timed_execution", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::conditional_writes_preserve_distinct_activation_times", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::constant_child_case_exit_keeps_one_write", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::constant_child_ff_case_discards_unreachable_pulse_arm", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::constant_child_loop_exit_keeps_one_write", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::constant_comb_if_discards_unreachable_pulse_branch", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::constant_for_writes_preserve_distinct_activation_times", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::constant_repeat_writes_preserve_distinct_activation_times", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "timing::constant_variable_initializers_do_not_invent_clock_edges at 902:78: assert_eq function_seen: expected 0x0, got 0x1\nrun_to_finish was not reached or the design did not finish", + "expectation": "Simulation", + "name": "timing::constant_variable_initializers_do_not_invent_clock_edges", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "timing::cross_file_package_initializers_keep_static_clock_baseline at 981:27: assert_eq qualified: expected 0x0, got 0x1\nrun_to_finish was not reached or the design did not finish", + "expectation": "Simulation", + "name": "timing::cross_file_package_initializers_keep_static_clock_baseline", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::delay_process_nonblocking_updates_reach_later_edges", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::delays_resume_initial_blocks_at_later_times", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::derived_clocks_follow_active_region_commits", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::derived_clocks_follow_several_nonblocking_updates", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "timing::derived_clocks_follow_superseded_publications at 2665:3: expect_output: expected [99, 110, 116, 61, 48, 32, 110, 61, 49, 32, 113, 61, 48, 10], got [99, 110, 116, 61, 49, 32, 110, 61, 50, 32, 113, 61, 48, 10]", + "expectation": "Simulation", + "name": "timing::derived_clocks_follow_superseded_publications", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::direct_blocking_ff_woken_waiters_sample_before_continuations", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "timing::direct_reads_settle_waiting_processes at 480:3: assert_eq seen: expected 0x2, got 0x1", + "expectation": "Simulation", + "name": "timing::direct_reads_settle_waiting_processes", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::edge_blocking_results_precede_later_process_writes", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::edge_nonblocking_updates_follow_writes_their_blocking_results_wake", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "timing::edge_nonblocking_updates_keep_later_writes_of_other_bits at 2538:3: assert_eq m0: expected 0x4422, got 0x4400", + "expectation": "Simulation", + "name": "timing::edge_nonblocking_updates_keep_later_writes_of_other_bits", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::edge_waits_count_generated_clock_edges_in_any_declaration_order", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::edge_waits_on_script_inputs_next_to_a_generated_clock", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::edge_waits_resume_before_the_registers_of_that_edge_update", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::edge_waits_see_the_signals_the_script_drives", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::edge_waits_wake_on_rising_and_falling_edges", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::event_controls_sample_the_expression_when_they_begin", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::event_expressions_read_automatic_task_locals", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::explicit_list_of_every_read_waits_for_a_change", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::expression_events_see_pulses_within_a_time_slot", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::false_wait_preserves_separate_hierarchical_write_times", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::finish_from_a_delay_process_between_clock_edges", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::finish_in_an_always_process_ends_the_simulation", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::finite_active_feedback_preserves_convergence", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::finite_process_loop_preserves_continuation_values", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::four_state_child_if_keeps_one_write", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::four_state_edges_count_transitions_through_unknown", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::four_state_nonblocking_updates_keep_unknown_bits", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::generated_clocks_with_a_common_edge_sample_each_other", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::host_edges_after_time_zero_clock_flip_flops", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::implicit_event_controls_in_processes_wait_on_their_reads", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::inactive_time_directives_do_not_change_scheduler_units", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::initial_blocks_run_at_time_zero", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "timing::intermediate_combinational_writes_keep_other_drivers at 2025:3: expect_output: expected [121, 61, 97, 49, 32, 122, 61, 102, 49, 32, 110, 61, 50, 32, 109, 61, 51, 10], got [121, 61, 97, 49, 32, 122, 61, 102, 49, 32, 110, 61, 49, 32, 109, 61, 50, 10]", + "expectation": "Simulation", + "name": "timing::intermediate_combinational_writes_keep_other_drivers", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::intermediate_combinational_writes_reach_concatenated_ports", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::intermediate_combinational_writes_reach_part_select_waiters_settled", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::intermediate_combinational_writes_replace_split_definitions", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "timing::intermediate_combinational_writes_wake_waiters at 1901:3: expect_output: expected [99, 111, 109, 98, 61, 51, 32, 115, 116, 97, 114, 61, 51, 10], got [99, 111, 109, 98, 61, 49, 32, 115, 116, 97, 114, 61, 49, 10]", + "expectation": "Simulation", + "name": "timing::intermediate_combinational_writes_wake_waiters", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "timing::intermediate_edge_process_writes_wake_waiters at 1934:3: expect_output: expected [98, 108, 107, 61, 51, 32, 110, 98, 97, 61, 51, 32, 99, 111, 110, 115, 116, 61, 51, 32, 114, 105, 115, 101, 61, 51, 32, 102, 97, 108, 108, 61, 50, 10], got [98, 108, 107, 61, 49, 32, 110, 98, 97, 61, 49, 32, 99, 111, 110, 115, 116, 61, 49, 32, 114, 105, 115, 101, 61, 49, 32, 102, 97, 108, 108, 61, 48, 10]", + "expectation": "Simulation", + "name": "timing::intermediate_edge_process_writes_wake_waiters", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::level_sensitive_always_runs_as_a_process", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::list_in_a_loop_through_always_comb_converges", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::list_missing_a_read_does_not_wake_on_it", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::list_of_every_read_with_a_nonblocking_body_runs", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::list_outside_a_loop_keeps_its_value", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::list_with_an_extra_signal_wakes_on_it", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::long_process_loops_finish_within_one_time_slot", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::min_typ_max_delays_wait_the_typical_value", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::mixed_ff_stores_keep_their_active_and_nba_values", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::narrow_nonblocking_updates_keep_the_other_bits", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::nba_woken_waiters_sample_before_continuations", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "timing::negative_real_delays_wait_their_twos_complement at 1439:3: assert_eq woke: expected 0x0, got 0x1", + "expectation": "Simulation", + "name": "timing::negative_real_delays_wait_their_twos_complement", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "timing::negative_repeat_counts_do_not_run_the_body at 875:3: assert_eq dynamic_count: expected 0x0, got 0x3", + "expectation": "Simulation", + "name": "timing::negative_repeat_counts_do_not_run_the_body", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::nonblocking_assignments_in_processes_update_in_the_nba_region", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::nonblocking_ff_stores_remain_pending_during_inactive_work", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::output_reads_settle_waiting_processes", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::package_scoped_delay_values_wait_their_value", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "timing::parallel_flip_flop_parts_keep_pulses at 2059:3: expect_output: expected [121, 61, 48, 48, 49, 32, 110, 61, 50, 32, 102, 61, 50, 10], got [121, 61, 48, 48, 49, 32, 110, 61, 48, 32, 102, 61, 48, 10]", + "expectation": "Simulation", + "name": "timing::parallel_flip_flop_parts_keep_pulses", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::part_select_events_see_pulses_of_the_selected_bits", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::plain_always_edges_without_a_reset_run_as_processes", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::plain_always_expression_edges_run_as_processes", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::plain_always_multi_bit_edges_follow_the_lsb", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::printed_finish_notice_is_design_output", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::process_nonblocking_assignments_at_run_time_positions", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "timing::process_nonblocking_assignments_at_unknown_positions at 2490:3: assert_eq q: expected 0x0, got 0x6", + "expectation": "Simulation", + "name": "timing::process_nonblocking_assignments_at_unknown_positions", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::process_nonblocking_assignments_outside_their_target", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::process_nonblocking_assignments_to_array_elements", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "the design did not finish after run_to_finish\nrun_to_finish was not reached or the design did not finish", + "expectation": "Simulation", + "name": "timing::processes_wake_each_other_at_the_same_time", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "timing::pure_function_events_change_with_the_result at 1542:17: assert_eq count: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "timing::pure_function_events_change_with_the_result", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::pure_function_rhs_preserves_distinct_write_times", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::real_delays_round_at_the_scope_precision", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::real_expression_events_see_fractional_changes", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::repeated_active_edges_share_one_nba_batch", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::repeated_settles_do_not_advance_design_time", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::run_to_finish_has_no_simulated_time_deadline", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::run_until_drains_target_time_before_later_writes", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::script_writes_between_runs_reach_generated_clock_domains", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::selected_child_dependency_ignores_unreachable_reads", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::selected_child_loop_exit_ignores_unreachable_suffix", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::separate_comb_assignments_preserve_selected_dependencies", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::staged_nonblocking_updates_keep_their_order", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "timing::staged_nonblocking_writes_follow_later_blocking_writes at 2084:3: expect_output: expected [121, 61, 48, 49, 32, 114, 61, 50, 10], got [121, 61, 48, 49, 32, 114, 61, 49, 10]", + "expectation": "Simulation", + "name": "timing::staged_nonblocking_writes_follow_later_blocking_writes", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "timing::staged_nonblocking_writes_wake_waiters at 1969:3: expect_output: expected [121, 61, 51, 32, 122, 61, 51, 10], got [121, 61, 48, 32, 122, 61, 48, 10]", + "expectation": "Simulation", + "name": "timing::staged_nonblocking_writes_wake_waiters", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::static_function_readonly_initializer_calls_execute_once", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::static_function_storage_is_shared_between_processes", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::statically_satisfied_waits_preserve_distinct_activation_times", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::tasks_with_timing_controls_run_in_processes", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "timing::time_calls_in_child_port_actuals at 1093:3: assert_eq t: expected 0x7, got 0xbbc", + "expectation": "Simulation", + "name": "timing::time_calls_in_child_port_actuals", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::time_calls_in_child_port_subroutines", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::time_functions_report_the_time_in_the_caller_unit", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::time_literal_delays_accept_all_units", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::timed_task_automatic_calls_keep_separate_storage", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::timed_task_automatic_scalar_calls_keep_separate_storage", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::timed_task_four_state_storage_survives_suspension", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::timed_task_in_edge_always_rearms_after_return", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::timed_task_nested_copyback_wait_and_return", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "timing::timed_task_static_formals_remain_shared at 1195:17: assert_eq a: expected 0x14, got 0xa", + "expectation": "Simulation", + "name": "timing::timed_task_static_formals_remain_shared", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::unknown_delays_and_conditions_count_as_zero_and_false", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::untimed_task_copyback_preserves_distinct_activation_times", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::untimed_tasks_preserve_distinct_activation_times", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::variable_delay_clock_changes_its_period", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::variable_index_events_follow_the_index", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::wait_statements_block_until_their_condition_holds", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::waiting_processes_do_not_keep_an_idle_simulation_running", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::zero_delay_process_ends_a_pulse_after_its_edge_triggers", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "timing::zero_trip_child_dependencies_ignore_body_and_step", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/types.json b/crates/celox-test-suite/verification/sv/xezim/types.json new file mode 100644 index 00000000000..63fadf41417 --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/types.json @@ -0,0 +1,180 @@ +{ + "cases": [ + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "types::constant_functions_in_unpacked_dimensions", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "types::constant_functions_in_unpacked_port_dimensions", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "types::inherited_parameter_aliases_materialize_replication_masks at 384:5: assert_eq procedural: expected 0x3ffffffffffffff, got 0xffffffff", + "expectation": "Simulation", + "name": "types::inherited_parameter_aliases_materialize_replication_masks", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "types::inherited_parameter_aliases_preserve_types_and_unknowns", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "types::packed_arrays_of_signed_named_types_have_signed_elements at 98:5: assert_eq y0: expected 0xfffa, got 0x1", + "expectation": "Simulation", + "name": "types::packed_arrays_of_signed_named_types_have_signed_elements", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "types::packed_parameters_of_signed_named_types_have_signed_elements at 136:5: assert_eq y0: expected 0xfffa, got 0x1 (y0)", + "expectation": "Simulation", + "name": "types::packed_parameters_of_signed_named_types_have_signed_elements", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "types::passes_unpacked_arguments_of_equivalent_element_types reads left with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "types::passes_unpacked_arguments_of_equivalent_element_types", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "types::passes_unpacked_arrays_of_equivalent_element_types", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "types::preserves_integer_atom_state_kinds at 44:3: assert_eq two_state: expected 0x0, got 0xX", + "expectation": "Simulation", + "name": "types::preserves_integer_atom_state_kinds", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "invalid design was accepted: types::rejects_assignment_pattern_item_of_a_narrower_array_type", + "expectation": "CompilationError", + "name": "types::rejects_assignment_pattern_item_of_a_narrower_array_type", + "phase": "execute", + "status": "unexpected_accept", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "xezim build exit status: 1; see /build.log\nParsed 1 file(s): 1 descriptions, 0 errors, 0 warnings\nerror: /source_0.sv:10:34: cannot assign logic signed [3:0] $[2] to argument 'x' of 'pick' of type logic signed [7:0] $[2]: element types logic signed [7:0] and logic signed [3:0] are not equivalent (IEEE 1800-2017 §6.22.2, §7.6)\n", + "expectation": "CompilationError", + "name": "types::rejects_unpacked_argument_of_a_wider_element_type", + "phase": "compile", + "status": "rejected", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "xezim build exit status: 1; see /build.log\nParsed 1 file(s): 1 descriptions, 0 errors, 0 warnings\nerror: /source_0.sv:8:34: cannot assign logic [7:0] $[3] to 'two' of type logic [7:0] $[2]: the arrays have 2 and 3 elements (IEEE 1800-2017 §7.6)\n", + "expectation": "CompilationError", + "name": "types::rejects_unpacked_assignment_of_a_different_element_count", + "phase": "compile", + "status": "rejected", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "xezim build exit status: 1; see /build.log\nParsed 1 file(s): 1 descriptions, 0 errors, 0 warnings\nerror: /source_0.sv:7:35: cannot assign bit [7:0] $[2] to 'four' of type logic [7:0] $[2]: element types logic [7:0] and bit [7:0] are not equivalent (IEEE 1800-2017 §6.22.2, §7.6)\n", + "expectation": "CompilationError", + "name": "types::rejects_unpacked_assignment_of_a_different_state_count", + "phase": "compile", + "status": "rejected", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "invalid design was accepted: types::rejects_unpacked_port_connection_of_a_narrower_element_type", + "expectation": "CompilationError", + "name": "types::rejects_unpacked_port_connection_of_a_narrower_element_type", + "phase": "execute", + "status": "unexpected_accept", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "types::simulates_systemverilog_bit_ports_as_two_state at 29:3: assert_eq y: expected 0x8, got 0xX", + "expectation": "Simulation", + "name": "types::simulates_systemverilog_bit_ports_as_two_state", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "types::simulates_systemverilog_parameterized_port_widths", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/sv/xezim/unions.json b/crates/celox-test-suite/verification/sv/xezim/unions.json new file mode 100644 index 00000000000..f4606b7527e --- /dev/null +++ b/crates/celox-test-suite/verification/sv/xezim/unions.json @@ -0,0 +1,59 @@ +{ + "cases": [ + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "unions::packed_mixed_state", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "unions::packed_overlay at 28:5: assert_eq value: expected 0xf, got 0x0", + "expectation": "Simulation", + "name": "unions::packed_overlay", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "xezim build exit status: 1; see /build.log\nParsed 2 file(s): 2 descriptions, 0 errors, 0 warnings\nerror: /source_0.sv:7:74: member 'nested' of a packed union must be of a packed type, not an unpacked struct (IEEE 1800-2017 §7.2.1)\n", + "expectation": "Simulation", + "name": "unions::soft_overlay", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "unions::soft_signed_ports at 146:5: assert_eq member_extended: expected 0xffff, got 0xf", + "expectation": "Simulation", + "name": "unions::soft_signed_ports", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "unions::soft_wide_four_state at 111:5: assert_eq value: expected 0xaX, got 0xX", + "expectation": "Simulation", + "name": "unions::soft_wide_four_state", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim-review.json b/crates/celox-test-suite/verification/xezim-review.json new file mode 100644 index 00000000000..864b9cb918d --- /dev/null +++ b/crates/celox-test-suite/verification/xezim-review.json @@ -0,0 +1,3845 @@ +{ + "tool": "xezim", + "version": "xezim version 0.11.3 (git 058f2bba)", + "description": "Review of every retained xezim failure: each case names its classification and, for a xezim defect, the bug it reproduces. Decided by IEEE 1800-2023, not by agreement between simulators.", + "bugs": { + "E": { + "title": "An input port's signedness is taken from the connected actual, not from the formal's declaration", + "standard": "IEEE 1800-2023 23.2.2.1, 23.2.2.3, 23.3.3.2" + }, + "F": { + "title": "Nonconstant selects in output-port connections are accepted", + "standard": "IEEE 1800-2023 10.2, 23.3.3.2" + }, + "G": { + "title": "`` `M() `` is rejected for a one-argument macro; an empty actual is allowed", + "standard": "IEEE 1800-2023 22.5.1" + }, + "H": { + "title": "Assignment patterns `'{...}` in parameter overrides, port connections and some initializers fail to parse", + "standard": "IEEE 1800-2023 10.9, 23.3.2, 23.10" + }, + "I0": { + "title": "The time-0 value of a continuous assignment through a function ignores a block-local `localparam P = $`", + "standard": "IEEE 1800-2023 20.6.3, 6.20.2" + }, + "sv_hier-X1": { + "title": "`$bits`/array queries of generate-block-local declarations evaluate to 0 in constant expressions; in a generate-if they are rejected as non-constant", + "standard": "IEEE 1800-2023 20.6.2, 20.7, 27.5" + }, + "sv_hier-X2": { + "title": "Array queries on a genvar's implicit integer localparam are wrong: `$unpacked_dimensions(i)`=1; `$left`/`$dimensions` are 0 and `$size(i)==32` is false in constant contexts", + "standard": "IEEE 1800-2023 27.4, 20.7" + }, + "sv_hier-X3": { + "title": "An escaped block name containing a dot (`\\a.b `) is split into a.b and collides with a nested block", + "standard": "IEEE 1800-2023 5.6.1" + }, + "sv_hier-X4": { + "title": "Same-named typedefs and functions in sibling generate blocks share one definition (the last one wins); a per-iteration typedef `logic [i+2:0]` gets width 1", + "standard": "IEEE 1800-2023 23.9, 27.4, 27.5" + }, + "sv_hier-X5": { + "title": "A generate block named like a module port (`a` or `\\a `) is accepted", + "standard": "IEEE 1800-2023 3.13(e), 23.9, 27.4 Ex. 1 mod_b" + }, + "sv_hier-X6": { + "title": "A localparam in a nested generate block does not hide the enclosing loop's implicit genvar localparam", + "standard": "IEEE 1800-2023 23.9, 27.4" + }, + "sv_hier-X7": { + "title": "A size cast with a `$bits(...)` width loses the width (`{~$bits(m)'(0)}` gives -1)", + "standard": "IEEE 1800-2023 6.24.1, 20.6.2" + }, + "sv_hier-X8": { + "title": "An ordered parameter override `#($bits(variable))` passes 0; the named form works", + "standard": "IEEE 1800-2023 23.10.2.1, 20.6.2" + }, + "sv_hier-X9": { + "title": "`$bits(f())` of a function call is 0 in constant expressions", + "standard": "IEEE 1800-2023 20.6.2" + }, + "sv_hier-X10": { + "title": "An unpacked-array parameter override is lost (zeros) unless it is a flat positional pattern: named array constants, nested patterns, keyed items, and calls with named arguments inside the pattern", + "standard": "IEEE 1800-2023 6.20.2, 7.6, 10.9.1, 23.10" + }, + "sv_hier-X11": { + "title": "Typed assignment patterns with a packed type prefix (`byte_t'{default:1}`, `struct_t'{y:2,x:1}`) evaluate wrong: 0 in constants, 1 procedurally", + "standard": "IEEE 1800-2023 10.9, 10.9.2" + }, + "sv_hier-X12": { + "title": "A replication `'{N{v}}` in a constant array pattern gives zeros", + "standard": "IEEE 1800-2023 10.9.1" + }, + "sv_hier-X13": { + "title": "`'{default:'x}` / `'z` in a constant unpacked-array pattern fills one bit per element, not the element width", + "standard": "IEEE 1800-2023 5.7.1, 10.9.1" + }, + "sv_hier-X14": { + "title": "`'{default: row}` with a non-matching unpacked subarray type (different bounds) is accepted", + "standard": "IEEE 1800-2023 10.9.1, 6.22.1(f), 6.24.3" + }, + "sv_hier-X15": { + "title": "Pattern items that are whole unpacked arrays (`'{ROW,ROW}`, `'{default:ROW}`) give 0/x elements", + "standard": "IEEE 1800-2023 10.9.1, 7.6" + }, + "sv_hier-X16": { + "title": "`'{default: VALUE}` for a constant array of packed structs gives elements 1,0", + "standard": "IEEE 1800-2023 10.9.1" + }, + "sv_hier-X17": { + "title": "An assignment pattern as the actual of an unpacked-array input port is evaluated wrong (elements one bit wide; keyed patterns give 0)", + "standard": "IEEE 1800-2023 23.3.3, 10.9.1, 10.8" + }, + "sv_hier-X18": { + "title": "A child's 2-state output port variable (`output int`) keeps x/z driven by a continuous assignment", + "standard": "IEEE 1800-2023 6.11.2, 10.3.2" + }, + "sv_hier-X19": { + "title": "Array pattern with the wrong element count (`'{2{'0}}` for `[3]`) is accepted", + "standard": "IEEE 1800-2023 10.9.1" + }, + "sv_hier-X20": { + "title": "Selects of a parameter declared with a non-[n-1:0] range ([11:4], [4:11], [-1:-8], multi-dimensional packed) index the raw [n-1:0] value: in localparam initializers, and in continuous assignments of an instantiated module", + "standard": "IEEE 1800-2023 11.5.1, 6.20.2, 7.4" + }, + "sv_hier-X21": { + "title": "Constant selects of parameters that overhang the range or have an x/z index give 0 (or in-range bits) instead of x", + "standard": "IEEE 1800-2023 11.5.1" + }, + "sv_hier-X22": { + "title": "Selects of an input port with a non-[n-1:0] range ([0:7], [3:-4]) follow the actual's [7:0] layout (reversed or misplaced bits)", + "standard": "IEEE 1800-2023 11.5.1, 7.4, 23.3.3" + }, + "sv_hier-X23": { + "title": "A continuous-assignment read of a negative index of an unpacked array (`mem [-2:1]`, `mem[-2]` or `mem[c]` with c=-2) gives x", + "standard": "IEEE 1800-2023 7.4.2, 7.4.6" + }, + "sv_hier-X24": { + "title": "In an instantiated module, `$size(part-select)` in a localparam evaluates to 0", + "standard": "IEEE 1800-2023 20.7" + }, + "sv_hier-X25": { + "title": "A parameter select in a packed dimension bound (`logic [P[4 +: 4]-1:0]`) gives a 1-bit variable", + "standard": "IEEE 1800-2023 7.4.1, 11.5.1" + }, + "sv_hier-X28": { + "title": "A continuous-assignment select from an unpacked array of 2-D packed elements with variable indices is wrong (`u[j][k]` reads 0001)", + "standard": "IEEE 1800-2023 7.4.5, 7.4.6" + }, + "sv_hier-X29": { + "title": "In continuous assignments and always_comb, an out-of-range inner packed index is flattened into the neighbouring element (read and write)", + "standard": "IEEE 1800-2023 7.4.6, 11.5.1" + }, + "sv_hier-X30": { + "title": "In always_comb, a write `v[i -: 2]` partly below bit 0 clears the whole variable", + "standard": "IEEE 1800-2023 11.5.1" + }, + "sv_hier-X31": { + "title": "Once a program has run in a time step, a later program activation runs while a module `#0` continuation (Inactive) is still pending", + "standard": "IEEE 1800-2023 4.5" + }, + "sv_hier-X33": { + "title": "`@(posedge (go & enable))` is not woken by a blocking write of go in an edge-triggered always, unless another process waits on go directly", + "standard": "IEEE 1800-2023 9.4.2" + }, + "sv_hier-X34": { + "title": "Several NBAs to the same variable in one step are coalesced: the intermediate update (1->0->1) never happens and wakes nothing", + "standard": "IEEE 1800-2023 4.6 b), 4.5, 10.4.2" + }, + "sv_hier-X35": { + "title": "Declaration initializers from a function call or another variable create a time-0 posedge", + "standard": "IEEE 1800-2023 6.8, 10.5" + }, + "sv_hier-X36": { + "title": "A value change from an intermediate blocking write within one process activation (y=0; y=1) does not wake @(y) waiters", + "standard": "IEEE 1800-2023 4.3, 4.5, 9.4.2" + }, + "sv_hier-X37": { + "title": "Negative delays (real -1.5 and integer -1) resume immediately instead of the two's-complement unsigned time", + "standard": "IEEE 1800-2023 9.4.1" + }, + "sv_hier-X38": { + "title": "NBAs through an x index write anyway: `m[x] <=` writes m[0], and `q[x +: 2] <=` uses the index's later value", + "standard": "IEEE 1800-2023 7.4.6, 11.5.1, 10.4.2" + }, + "sv_hier-X39": { + "title": "A process that writes start and then waits `@(posedge done)` is never resumed when the woken process raises done after a `#0`", + "standard": "IEEE 1800-2023 4.5, 9.4.2" + }, + "sv_hier-X40": { + "title": "After the first edge, a variable written by both blocking and NBA in an edge-triggered always stops waking @(w)/@(posedge w) waiters (a $display in the always hides it)", + "standard": "IEEE 1800-2023 4.3, 4.5, 9.4.2" + }, + "sv_hier-X41": { + "title": "`@(f(v))` with a function call never wakes", + "standard": "IEEE 1800-2023 9.4.2" + }, + "sv_hier-X42": { + "title": "`$time` in a continuous assignment or port actual uses the global precision (ps) instead of the module's time unit", + "standard": "IEEE 1800-2023 20.3.1, 3.14" + }, + "sv_hier-X43": { + "title": "Overlapping calls of a static task get private formals", + "standard": "IEEE 1800-2023 13.3.2" + }, + "sv_rest-X1": { + "title": "An element select of a multidimensional packed parameter selects a single bit in a non-top module", + "standard": "IEEE 1800-2023 7.4.1, 7.4.5" + }, + "sv_rest-X2": { + "title": "A typed constructor call `h = C::new` does not construct an object (the handle is unusable)", + "standard": "IEEE 1800-2023 8.8" + }, + "sv_rest-X3": { + "title": "`$cast` from one interface class handle to another interface class fails although the object implements both", + "standard": "IEEE 1800-2023 8.16, 8.26, 6.24.2" + }, + "sv_rest-X4": { + "title": "Member references in methods of a class declared in a non-top module are lost: (a) `super.prop` reads 0, (b) out-of-block (extern) method bodies do not see properties, (c) `x.rand_mode(0)` in a method has no effect", + "standard": "IEEE 1800-2023 8.15, 8.24, 18.8" + }, + "sv_rest-X5": { + "title": "`h = new` in an always procedure leaves the handle null", + "standard": "IEEE 1800-2023 8.7, 9.2.2.1" + }, + "sv_rest-X6": { + "title": "randomize() skips a base rand property hidden by a derived property, and `b.randomize(x)` resolves x in the dynamic class rather than the handle's class", + "standard": "IEEE 1800-2023 8.14, 18.5, 18.7, 18.11" + }, + "sv_rest-X7": { + "title": "rand_mode() ignores its prototype types: argument 2 is not converted to `bit` (0 = OFF), and the `int` result compares as unsigned", + "standard": "IEEE 1800-2023 18.8" + }, + "sv_rest-X8": { + "title": "After `obj.rand_mode(0)`, `obj.x.rand_mode(1)` does not re-enable x", + "standard": "IEEE 1800-2023 18.8 (example)" + }, + "sv_rest-X9": { + "title": "An object-level `rand_mode(0)` / `this.rand_mode(0)` called inside a class method (e.g. pre_randomize) has no effect", + "standard": "IEEE 1800-2023 18.8, 8.11" + }, + "sv_rest-X10": { + "title": "The `$dist_*` functions do not implement the normative Annex N algorithm (wrong values and seeds)", + "standard": "IEEE 1800-2023 20.14.2, Annex N" + }, + "sv_rest-X11": { + "title": "A shortint seed passed to $dist_uniform is zero-extended (-1 read as 65535) instead of converted to integer -1", + "standard": "IEEE 1800-2023 20.14.2, 10.7" + }, + "sv_rest-X12": { + "title": "Real math functions other than $sqrt/$floor/$ceil evaluate to 0.0 in constant expressions", + "standard": "IEEE 1800-2023 11.2.1, 20.8" + }, + "sv_rest-X13": { + "title": "`always @(negedge rl) if (!rl) q <= 0; else ...` runs the reset branch on a 1 -> x change of rl (the condition !x is x, so false)", + "standard": "IEEE 1800-2023 9.4.2 Table 9-2, 12.4" + }, + "sv_rest-X14": { + "title": "shortreal variables store double precision", + "standard": "IEEE 1800-2023 6.12" + }, + "sv_rest-X15": { + "title": "$sscanf stops after an assignment-suppressed conversion (`%*d`, `%*g`)", + "standard": "IEEE 1800-2023 21.3.4.3" + }, + "sv_rest-X17": { + "title": "$sscanf %h/%d/%b do not accept x/z digits", + "standard": "IEEE 1800-2023 21.3.4.3 Table 21-7" + }, + "sv_rest-X18": { + "title": "A string literal containing \"\\0\" assigned to a string keeps the NUL", + "standard": "IEEE 1800-2023 6.16" + }, + "sv_rest-X20": { + "title": "Implicit `.name` port connection inside a generate block binds the module-scope name, not the generate-local one", + "standard": "IEEE 1800-2023 23.3.2.4, 23.3.2.3" + }, + "sv_rest-X21": { + "title": "An interface-array port bound to a whole interface array (or a row `g[0]` of a 2-D one) matches elements by equal index number, not left-to-right order", + "standard": "IEEE 1800-2023 23.3.3.5, 7.6" + }, + "sv_rest-X22": { + "title": "An indexed part-select slice (`d[i +: c]`, `d[i -: c]`) of an interface instance array used as a port actual leaves the port unconnected; range slices work", + "standard": "IEEE 1800-2023 7.4.6, 23.3.3.5" + }, + "sv_rest-X24": { + "title": "In a non-top module, a localparam using `$bits`/`$size` of a struct-member select (`$bits(packet.f)`) is 0", + "standard": "IEEE 1800-2023 20.6.2, 20.7, 11.2.1" + }, + "sv_rest-X25": { + "title": "Parent-scope continuous assignments reading a member of an interface-array element are never updated (x/z) when the array is multi-dimensional or gets distributed elements of an unpacked-array port actual; a direct hierarchical read is right", + "standard": "IEEE 1800-2023 23.3.3.5, 10.3.2" + }, + "sv_rest-X27": { + "title": "In an array of instances, a port whose width depends on a parameter (`logic [W-1:0]`) gets the whole actual truncated (broadcast) instead of one part-select per instance", + "standard": "IEEE 1800-2023 23.3.3.5" + }, + "sv_rest-X29": { + "title": "A process waiting on `@(a)` / `@*` is not resumed by a pulse `a = 1; a = 0;` within one activation of the writer (processes xezim treats as combinational do run)", + "standard": "IEEE 1800-2023 4.9.3, 4.3, 9.4.2" + }, + "sv_rest-X30": { + "title": "`$size`/`$left` of a variable declared with a typedef of a packed array of packed structs (`typedef t [1:0] pair_t`) return the bit count (16/15) instead of the dimension (2/1)", + "standard": "IEEE 1800-2023 20.7, 6.18" + }, + "sv_rest-X31": { + "title": "A signed member of an unsigned packed struct (`logic signed [3:0] f`) is read as unsigned (zero-extended)", + "standard": "IEEE 1800-2023 7.2, 7.2.1, 11.8.1" + }, + "sv_rest-X32": { + "title": "In a non-top module, a packed-struct localparam initialized with an assignment pattern (`'{hi:9, lo:6}`, `'{9,6}`, `T'{...}`) is 0 and its members x", + "standard": "IEEE 1800-2023 10.9.2, 6.20.2, 7.2" + }, + "sv_rest-X33": { + "title": "A function call with an output argument in the index of a concatenation-lvalue target (`{d[i], o[f(i, i)]} = ...`) does not copy the output back", + "standard": "IEEE 1800-2023 13.3, 13.4, 11.4.12" + }, + "sv_rest-X34": { + "title": "In edge-triggered processes, function calls in operands that must not be evaluated run: the unselected `?:` arm (lvalue index and rvalue) and the right operand of a short-circuited `&&`", + "standard": "IEEE 1800-2023 11.4.11, 11.4.7" + }, + "sv_rest-X35": { + "title": "Static function storage is not kept between calls: the result variable when the call comes from always_ff or a continuous assignment, and output formals in every context", + "standard": "IEEE 1800-2023 13.4.2, 13.4.1, 13.3" + }, + "sv_rest-X40": { + "title": "indexed slice of a multidimensional packed array in a process/continuous assignment becomes a bit part-select", + "standard": "IEEE 1800-2023 7.4.5 (slice = contiguous elements), 11.5.1" + }, + "sv_rest-X41": { + "title": "a parameter-sized cast W'(expr) loses signedness in constant expressions", + "standard": "IEEE 1800-2023 6.24.1 (signedness passes through a size cast)" + }, + "sv_rest-X42": { + "title": "power operator signedness: an unsigned exponent makes the result unsigned, and 2**k divides unsigned in continuous assignments", + "standard": "IEEE 1800-2023 11.6.1 Table 11-21 (i**j: type from i only, j self-determined), 11.8.1" + }, + "sv_rest-X43": { + "title": "wildcard equality with an unbased unsized '1 operand is wrong", + "standard": "IEEE 1800-2023 5.7.1 ('1 fills the context width), 11.4.6 (==?, !=?)" + }, + "sv_rest-X60": { + "title": "A body `parameter` overridden from another file is accepted", + "standard": "IEEE 1800-2023 6.20.1, 23.10" + }, + "sv_rest-X61": { + "title": "`'{default: v}` does not fill unpacked subarrays whose type matches v", + "standard": "IEEE 1800-2023 10.9.1" + }, + "sv_rest-X62": { + "title": "Constant cast to a typedef ignores the target width", + "standard": "IEEE 1800-2023 6.24.1, 6.20.2" + }, + "sv_rest-X63": { + "title": "Function formal with a range not based at 0 is indexed from 0 when called from always_comb/@*/assign", + "standard": "IEEE 1800-2023 7.4.5, 13.5.1" + }, + "sv_rest-X64": { + "title": "An unsigned case item does not make the case expression unsigned", + "standard": "IEEE 1800-2023 12.5, 11.8.2" + }, + "sv_rest-X65": { + "title": "Unary plus passes x/z bits through instead of giving all x", + "standard": "IEEE 1800-2023 11.4.3" + }, + "sv_rest-X66": { + "title": "Non-ANSI formal `input type_t [2:1] x;` fails with \"Undeclared identifier 'x'\"", + "standard": "IEEE 1800-2023 13.4, A.2.7, A.2.2.1" + }, + "sv_rest-X67": { + "title": "Instance-array connection of the wrong width only warns", + "standard": "IEEE 1800-2023 23.3.3.5" + }, + "sv_rest-X68": { + "title": "Constant function call with arguments bound by name evaluates to 0 in a non-top module", + "standard": "IEEE 1800-2023 13.4.3, 13.5.4" + }, + "sv_rest-X69": { + "title": "A module-level call resolves to a function declared inside a generate block", + "standard": "IEEE 1800-2023 23.9" + }, + "sv_rest-X72": { + "title": "A type written as a type name plus packed dimensions loses its dimensions as a type parameter value or default, or as a $bits argument", + "standard": "IEEE 1800-2023 6.20.3, A.2.2.1" + }, + "sv_rest-X73": { + "title": "A type parameter override is resolved in the instantiated module's scope", + "standard": "IEEE 1800-2023 23.9, 23.10.2" + }, + "sv_rest-X76": { + "title": "2-state output port variables (`output bit`, `output int`) keep X/Z from a continuous assignment", + "standard": "IEEE 1800-2023 6.11.2, 23.2.2.3" + }, + "sv_rest-X77": { + "title": "An unpacked array argument whose index range differs from the formal's reads as X", + "standard": "IEEE 1800-2023 7.6, 10.8, 13.5.1" + }, + "sv_rest-X78": { + "title": "An untyped localparam in a procedural block is 32 bits", + "standard": "IEEE 1800-2023 6.20.2, A.2.8" + }, + "sv_rest-X79": { + "title": "Element-type equivalence of unpacked arrays is not checked in assignment-pattern items or port connections", + "standard": "IEEE 1800-2023 7.6, 10.8, 6.22.2" + }, + "sysfn-X1": { + "title": "Array queries on any non-identifier operand (parenthesis, select, slice, literal, operator, call, cast) return 1 / use no type", + "standard": "IEEE 1800-2023 20.7, 7.4.6, 11.5.1" + }, + "sysfn-X3": { + "title": "Out-of-range dimension argument of $left/$right/$low/$high/$increment returns a value instead of 'x", + "standard": "IEEE 1800-2023 20.7" + }, + "sysfn-X4": { + "title": "Outside the top-level module (instantiated module, package) array queries lose parameter/typedef shapes: 0 in parameter initializers, packed dims of parameters and unpacked dims of typedefs dropped at run time", + "standard": "IEEE 1800-2023 20.7, 6.20.2, 6.18" + }, + "sysfn-X6": { + "title": "Array query in a procedural block-local declaration's packed range ignores the queried array's unpacked dimensions", + "standard": "IEEE 1800-2023 20.7, 9.3.1" + }, + "sysfn-X7": { + "title": "Array query operand names resolve to the wrong declaration: a subroutine formal resolves to a same-named variable of another function's block (when one always_comb calls both) or of the module; inside a generate block a procedural localparam does not shadow the outer array", + "standard": "IEEE 1800-2023 13.3, 13.4, 9.3.4, 23.9, 20.7" + }, + "sysfn-X8": { + "title": "Unpacked-array parameters/localparams initialized with '{default:v} are elaborated as the element type (unpacked dimension, $bits, $size and element values lost)", + "standard": "IEEE 1800-2023 6.20.2, 10.9.1, 20.7, 20.6.2" + }, + "sysfn-X9": { + "title": "Package-qualified type name P::row_t resolves to a same-named local variable", + "standard": "IEEE 1800-2023 26.3, 20.7" + }, + "sysfn-X10": { + "title": "no-argument $timeunit/$timeprecision return the simulation top's timescale", + "standard": "IEEE 1800-2023 20.4.1 (with no argument, the value is the time unit or precision of the design element that is the current scope)" + }, + "sysfn-X11": { + "title": "$timeunit(arg)/$timeprecision(arg) ignore the argument", + "standard": "IEEE 1800-2023 20.4.1 (named design element, $unit = compilation unit, $root = simulation time unit), 3.14.3" + }, + "sysfn-X12": { + "title": "$timeunit/$timeprecision evaluate to 0 in constant expressions", + "standard": "IEEE 1800-2023 11.2.1 (the 20.4 timescale functions are constant system function calls), 20.4.1" + }, + "sysfn-X13": { + "title": "`resetall rejected after a module written on one line", + "standard": "IEEE 1800-2023 22.3 (only `resetall *within* a design element is illegal)" + }, + "sysfn-X20": { + "title": "$random is not the Annex N generator", + "standard": "IEEE 1800-2023 20.14, 20.14.1, Annex N.1 (Table N.1: $random = rtl_dist_uniform(seed, LONG_MIN, LONG_MAX)), N.2" + }, + "sysfn-X22": { + "title": "$urandom(seed) does not reseed the calling thread's RNG", + "standard": "IEEE 1800-2023 18.13.1 (\"shall generate the same sequence of random numbers every time the same seed is used\"; the example `$urandom(254)` says it initializes the generator), 18.14" + }, + "sysfn-X23": { + "title": "a narrow signed seed is not sign-extended to int", + "standard": "IEEE 1800-2023 18.13.1 (int seed formal), 13.5, 6.24.1" + }, + "sysfn-X24": { + "title": "all processes share one $urandom stream (no thread stability)", + "standard": "IEEE 1800-2023 18.14.1 (\"Each thread has an independent RNG\"), 18.14.2" + }, + "sysfn-X27": { + "title": "unqualified no-argument `randomize()` returns 0, or is rejected in a top module", + "standard": "IEEE 1800-2023 18.12 (Syntax 18-11 `[ std :: ] randomize ( [ variable_identifier_list ] )`; a no-argument call returns 1 when its constraints hold)" + }, + "sysfn-X30": { + "title": "`%Ns` pads non-ASCII bytes by their UTF-8 length", + "standard": "IEEE 1800-2023 21.2.1.2 (strings are padded with leading spaces to the field width), 21.2.1.7 (each 8 bits is one character)" + }, + "sysfn-X31": { + "title": "`$printtimescale` ignores its argument and the subroutine's scope", + "standard": "IEEE 1800-2023 20.4.2 (output for `$unit`, `$root`, a named design element, and the current scope), 3.14.2/3.14.3" + }, + "sysfn-X32": { + "title": "the constant evaluator turns x/z into 0 for `$countbits` / `$isunknown`", + "standard": "IEEE 1800-2023 20.9 (counts x/z bits; `'x`/`'z` control bits), 11.2.1 (constant expressions are evaluated with the normal 4-state rules)" + }, + "sysfn-X40": { + "title": "$isunbounded returns 1 for bounded parameters whose value is -1 / all ones", + "standard": "IEEE 1800-2023 20.6.3, 6.20.7" + }, + "sysfn-X41": { + "title": "$isunbounded is 0 in constant evaluation (parameter initializers incl. packages, packed ranges, generate conditions, constant-folded function calls in continuous assignments)", + "standard": "IEEE 1800-2023 20.6.3, 11.2.1, 27.5" + }, + "sysfn-X42": { + "title": "A procedural-block localparam initialized from a $-valued localparam of the same block is not unbounded", + "standard": "IEEE 1800-2023 6.20.7, 20.6.3, A.2.8" + }, + "veryl-X1": { + "title": "typed assignment pattern with a package-scoped type (`pkg::S'{...}`) fails to parse", + "standard": "IEEE 1800-2023 10.9.1 Syntax 10-5, A.6.8 (assignment_pattern_expression_type ::= ps_type_identifier ...), A.9.3 (ps_type_identifier ::= [package_scope] type_identifier)" + }, + "veryl-X2": { + "title": "unpacked-array localparam initialized with `'{default: v}` reads back wrong", + "standard": "IEEE 1800-2023 10.9.1 (`default:` applies to every unmatched element), 6.20.2 (parameters may be unpacked arrays)" + }, + "veryl-X3": { + "title": "short-circuited / unselected `&&`, `||`, `?:` operands (function calls) still execute in always processes", + "standard": "IEEE 1800-2023 11.3.5 (the side effects of a short-circuited operand shall not occur), 11.4.7 (&&, ||), 11.4.11 (?:)." + }, + "veryl-X4": { + "title": "output formal not written by the call is not copied back to the actual", + "standard": "IEEE 1800-2023 13.3/13.4 (output: \"copy value out at end\"); 6.8 Table 6-7 (an automatic logic formal starts at x)." + }, + "veryl-X5": { + "title": "system function used as a statement (`$unsigned(f(...));`) does not evaluate its argument", + "standard": "IEEE 1800-2023 13.5 Syntax 13-3 / A.6.9 (subroutine_call_statement ::= subroutine_call ; and subroutine_call ::= system_tf_call); 13.4.1 (calling a nonvoid function as a statement is legal, with a warning); 11.3.5 (the operands of other operators are always evaluated)." + }, + "veryl-X6": { + "title": "variables read only in named argument bindings are missing from always_comb/@* sensitivity", + "standard": "IEEE 1800-2023 9.2.2.2.1 (always_comb implicit sensitivity), 9.4.2.2 (@*), 13.5.4 (binding arguments by name)." + }, + "veryl-X8": { + "title": "multi-dimensional array pattern passed directly as an argument delivers wrong elements", + "standard": "IEEE 1800-2023 13.5.1, 10.9.1" + }, + "veryl-X9": { + "title": "always_comb/@* reading or copying a whole unpacked array is not sensitive to it", + "standard": "IEEE 1800-2023 9.2.2.2.1, 11.5.3, 9.4.2.2" + }, + "veryl-X10": { + "title": "array pattern whose items are unpacked-array values leaves the 2-D target X/0", + "standard": "IEEE 1800-2023 10.9.1, 7.6" + }, + "veryl-X11": { + "title": "re-entrant call of an automatic function: inner array argument overwrites the outer formal", + "standard": "IEEE 1800-2023 13.4.2, 13.5.1" + }, + "veryl-X12": { + "title": "unpacked-array slice as a port actual is mis-connected", + "standard": "IEEE 1800-2023 23.3.3.2, 23.3.3.5, 7.4.6, 7.6" + }, + "veryl-X13": { + "title": "unpacked-array function result lost (zeros) inside always processes / as an argument", + "standard": "IEEE 1800-2023 13.4, 13.4.1, 13.5.1" + }, + "veryl-X14": { + "title": "size cast zero-fills an x/z sign bit", + "standard": "IEEE 1800-2023 6.24.1 (a size cast gives the value an [n-1:0] vector holds after assignment), 10.7 and 11.8.3 (a signed RHS is sign-extended)" + }, + "veryl-X15": { + "title": "2-state port variable (bit/byte) keeps x/z", + "standard": "IEEE 1800-2023 6.11.2 (when a 4-state value is converted to 2-state, x/z bits become 0), 23.3.3.2 (an implied continuous assignment drives the input port)" + }, + "veryl-X16": { + "title": "in design processes `if (!r)` with r = x takes the then branch", + "standard": "IEEE 1800-2023 11.4.7 (`!` of an ambiguous value is 1'bx), 12.4 (an x/z condition is false, so the else branch runs), 9.4.2 Table 9-2 (1->x is a negedge)" + }, + "veryl-X17": { + "title": "`?:` treats a condition with a known 1 bit plus x bits as ambiguous", + "standard": "IEEE 1800-2023 12.4 (true means a nonzero known value), 11.4.7, 11.4.11 (the arms are merged only for an ambiguous condition)" + }, + "veryl-X18": { + "title": "function path without `return` yields the previous call's result", + "standard": "IEEE 1800-2023 13.4.1 (the implicit return variable), 6.21 (automatic variables are initialized on each entry), 6.8 Table 6-7 (a logic variable starts at x)" + }, + "veryl-X19": { + "title": "function call in a design process turns z into x", + "standard": "IEEE 1800-2023 6.3.1, 13.5.1 (arguments are passed by copying), 13.4.1" + }, + "veryl-X20": { + "title": "shift counts wider than 64 bits are truncated to 64 bits", + "standard": "IEEE 1800-2023 11.4.10 (the count is an unsigned number; vacated bits are filled with zeros or the sign bit)" + }, + "veryl-X21": { + "title": "shortreal keeps double precision", + "standard": "IEEE 1800-2023 6.12, 11.3.1" + }, + "veryl-X22": { + "title": "always_comb calling a function of an interface-array element is not sensitive to the interface variables it reads", + "standard": "IEEE 1800-2023 9.2.2.2.1" + }, + "veryl-X23": { + "title": "constant function with `case inside` ranges in a non-top module localparam returns 0", + "standard": "IEEE 1800-2023 13.4.3, 12.5.4, 11.4.13" + }, + "veryl-X24": { + "title": "case / case inside comparison context not propagated into case items / case-inside expression", + "standard": "IEEE 1800-2023 12.5, 12.5.4, 11.4.13, 11.8.2" + }, + "veryl-X26": { + "title": "inside always_comb a signed packed-struct member read is not sign-extended", + "standard": "IEEE 1800-2023 7.2, 11.8.1, 11.8.2" + }, + "veryl-X27": { + "title": "size cast with a parenthesized size (`(Q + 1)'(e)`) is a no-op", + "standard": "IEEE 1800-2023 6.24.1, Syntax 6-7, A.8.4" + }, + "sv_new-X1": { + "title": "Anonymous inline enum types of rand class members (`rand enum ... {...} v`) are not restricted to their named constants", + "standard": "IEEE 1800-2023 18.3, 6.19" + }, + "sv_new-X2": { + "title": "Unqualified scope `randomize(v)` in an instantiated module fails on every call and ignores the enum domain (std::randomize works)", + "standard": "IEEE 1800-2023 18.12 Syntax 18-11, 18.3" + }, + "sv_new-X3": { + "title": "Randomizing an enum variable whose named constants are fill literals (`'1`) picks values outside them, in class and scope randomize", + "standard": "IEEE 1800-2023 18.3, 6.19" + }, + "sv_new-X4": { + "title": "A rand class member whose type is a typedef alias of an enum is not restricted to the enum constants", + "standard": "IEEE 1800-2023 6.18, 18.3" + }, + "sv_new-X5": { + "title": "Elements of an overridden unpacked-array parameter declared with a non-zero-based range (`N[6:7]`) read X", + "standard": "IEEE 1800-2023 7.6, 23.10, 6.20.2" + }, + "sv_new-X6": { + "title": "A nonblocking assignment to a part-select overwrites the other bits of the element written before the NBA update", + "standard": "IEEE 1800-2023 10.4.2, 4.4.2" + }, + "sv_new-X7": { + "title": "`union soft {...}` without `packed` is treated as unpacked in a non-top module (rejected as a packed-union member; overlapping writes lost)", + "standard": "IEEE 1800-2023 7.3.1" + }, + "sv_new-X8": { + "title": "A write to a part-select of a struct member inside a packed union (`u.parts.lo[3:0] = v`) is lost", + "standard": "IEEE 1800-2023 7.3.1, 7.2" + }, + "sv_new-X9": { + "title": "A tagged union expression whose payload is an unparenthesized identifier or literal (`tagged Full data`, `tagged Full 8'd4`) is a parse error", + "standard": "IEEE 1800-2023 11.9 Syntax 11-6, A.8.4" + }, + "sv_new-X10": { + "title": "A tagged union expression as an arm of the conditional operator loses its payload", + "standard": "IEEE 1800-2023 11.9, 11.4.11" + }, + "sv_new-X11": { + "title": "The time-0 value of a continuous assignment through a function that fills a local unpacked array in a loop is all ones", + "standard": "IEEE 1800-2023 10.3.2, 13.4" + } + }, + "cases": [ + { + "suite": "veryl", + "name": "basic::test_always_comb_read_before_write_uses_previous_value", + "status": "mismatch", + "classification": "adapter_two_state_init", + "note": "In `always_comb begin c = b; b = a; end`, `b` is written in the block so it is not in the sensitivity list (9.2.2.2.1) and `c` takes `b`'s previous value. Under the two-state contract `b` starts 0, but xezim leaves the comb-only variable `b` (and the never-yet-written input `i_a`) at X, so the first check sees c = X instead of 0. With `= '0` initializers added to `b` and `i_a` in a copy the case passes." + }, + { + "suite": "veryl", + "name": "basic::test_comb_function_call_expression_output_is_guarded_by_ternary", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X3", + "note": "always_comb { q_output = d; q_return = sel ? f(d, q_output) : 8'd7; } with sel=0, d=10: the false condition selects 8'd7, so f must not run and q_output stays 10. xezim runs f in the unselected arm and its output argument sets q_output to 11 (0xb). Same statement in an initial block is correct in xezim; Verilator gives q=10." + }, + { + "suite": "veryl", + "name": "basic::test_comb_function_call_expression_output_respects_short_circuit", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X3", + "note": "always_comb sets and_output = 0 then and_result = 1'b0 && f(d, and_output); the right operand of && is short-circuited, so f's output argument must not write and_output. xezim executes f, so and_output becomes d+1 = 0xb instead of 0." + }, + { + "suite": "veryl", + "name": "basic::test_comb_function_condition_output_is_guarded_after_early_return", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X4", + "note": "With sel=1, outer() returns early without reaching inner(x, y), so its output formal y is never written. It must still be copied out to q_output (two-state contract: 0; LRM four-state: x). xezim skips the copy-out of an output formal that is written only through a nested call that was not reached, so q_output keeps 7. Once this is fixed, xezim's x (the automatic logic default) against the suite's 0 would be a two-state-init difference." + }, + { + "suite": "veryl", + "name": "basic::test_comb_value_system_function_after_dynamic_break_stays_inactive", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X5", + "note": "The loop body runs the statement `$unsigned(f(d, q_output));`. With stop=0, count=2 and d=10, f must run and set q_output to 11. xezim never evaluates the argument of a system function used as a statement, so q_output stays 0. The stop=1 assertion passes only because nothing should run there." + }, + { + "suite": "veryl", + "name": "basic::test_comb_value_system_function_statement_applies_argument_outputs", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X5", + "note": "always_comb { q_output = 0; $unsigned(f(d, q_output)); q = q_output; } with d=10: the system-function statement must evaluate f, whose output argument sets q_output to 11. xezim discards the statement without evaluating its argument, so q = 0. Verilator gives 11." + }, + { + "suite": "veryl", + "name": "comb_observer::test_comb_function_array_literal_accepts_array_returning_items", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X10", + "note": "q = pick('{make_row(1), make_row(3)}) with pick(input matrix_t x) should give x[1][0]=3; xezim gives 0. An array pattern whose items are unpacked-array values is not assigned (even m = '{make_row(1), make_row(3)} in an initial gives 0s; '{a,b} of variables gives X). The case also hits veryl-X7 (typedef'd unpacked formal reads X) and veryl-X13 (array-returning call inside always_comb yields 0); with only the pattern replaced element-wise and an explicit-dims formal it still fails (got 1) because of X26." + }, + { + "suite": "veryl", + "name": "comb_observer::test_comb_function_array_literal_array_item_preserves_element_type", + "status": "mismatch", + "classification": "suite_issue", + "note": "Emitted SV calls first('{row0, row1}) where first's formal is logic signed [7:0] x [2][2] but row0/row1 are logic signed [3:0] [2]. 10.9.1 evaluates each item as an assignment to the element type (logic signed [7:0] [2]), and 7.6 requires equivalent element types for unpacked-array assignment, so the design is illegal (xezim itself rejects the same conversion when passed directly as an argument, cf. test_comb_function_direct_array_argument_converts_each_element). xezim silently accepts it and yields X; the case should be an expected rejection or the emitter must convert element-wise." + }, + { + "suite": "veryl", + "name": "comb_observer::test_comb_function_direct_array_argument_converts_each_element", + "status": "compile_error", + "classification": "suite_issue", + "note": "The emitted SV passes `narrow` (logic signed [3:0] narrow[2]) to formal `logic signed [7:0] x[2]` of `pick`. Input arguments are copied as by assignment (13.5.1), and unpacked arrays are assignment compatible only when element types are equivalent (7.6); logic [3:0] and logic [7:0] are not (6.22.2). xezim correctly rejects it: \"16:26: cannot assign logic signed [3:0] $[2] to argument 'x' of 'pick' of type logic signed [7:0] $[2]: element types logic signed [7:0] and logic signed [3:0] are not equivalent (IEEE 1800-2017 §6.22.2, §7.6)\". The Veryl emitter must emit an element-wise conversion (or the case must not expect an SV simulation)." + }, + { + "suite": "veryl", + "name": "comb_observer::test_comb_function_direct_array_return_preserves_all_elements", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X13", + "note": "q = pick(make_row()) should give make_row()[1]=4; xezim gives 0. A function result of unpacked-array type is lost (all zeros) when the call is an actual argument or is inside an always procedure: even 'row_t t; t = make_row(); q = pick(t);' with an explicit-dims formal still yields 0 in always_comb, while the same in an initial yields 4. The typedef'd formal 'input row_t x' additionally hits veryl-X7." + }, + { + "suite": "veryl", + "name": "comb_observer::test_comb_function_nested_array_literals_preserve_each_dimension_order", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X8", + "note": "pick('{'{4'h1,4'h2},'{4'h3,4'h4}}, 0, 0) should return 1; xezim returns 0 (and X for odd columns). Assigning the same nested pattern to a local logic [3:0] K [2][2] inside the always_comb and calling pick(K, r, c) makes the case pass." + }, + { + "suite": "veryl", + "name": "comb_observer::test_comb_function_nested_array_scalar_default_converts_each_element", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X8", + "note": "pick('{default: 4'sh8}, r, c) into logic signed [7:0] x [2][2] should give 8'hf8 for every element (10.9.1 default applies recursively, each element assigned 4'sh8 sign-extended); xezim gives 0. Hoisting the pattern into a local 2-D variable in the always_comb makes the case pass." + }, + { + "suite": "veryl", + "name": "comb_observer::test_comb_function_packed_array_literal_preserves_source_order", + "status": "mismatch", + "classification": "suite_issue", + "note": "The emitted (and Veryl) expression '{default: observe(8'h11, side), observe(8'h22, side)} mixes a keyed item with a positional item, which no assignment_pattern production allows (Syntax 10-5: all positional, all keyed, or replication). Also 10.9.1 says the number of evaluations of an expression with side effects under a default key is undefined, so expecting side=0x22 has no LRM basis. xezim accepts it and leaves side=0x11; the case is not a valid SV reference test." + }, + { + "suite": "veryl", + "name": "comb_observer::test_comb_statement_function_direct_array_argument_converts_each_element", + "status": "compile_error", + "classification": "suite_issue", + "note": "The emitted SV passes `narrow` (logic signed [3:0] narrow[2]) to formal `logic signed [7:0] x[2]` of task-like function `capture`. Input arguments are copied as by assignment (13.5.1), and unpacked arrays are assignment compatible only when element types are equivalent (7.6); logic [3:0] and logic [7:0] are not (6.22.2). xezim correctly rejects it: \"15:17: cannot assign logic signed [3:0] $[2] to argument 'x' of 'capture' of type logic signed [7:0] $[2]: element types logic signed [7:0] and logic signed [3:0] are not equivalent (IEEE 1800-2017 §6.22.2, §7.6)\". The Veryl emitter must emit an element-wise conversion (or the case must not expect an SV simulation)." + }, + { + "suite": "veryl", + "name": "comb_observer::test_named_function_inputs_evaluate_in_source_order", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X6", + "note": "always_comb { tmp = 0; out = add(.second(write_tmp(value, tmp)), .first(tmp)); } reads value only inside a named argument binding. xezim leaves value out of the implicit sensitivity, so the block never reruns after the testbench sets value=13, and tmp stays x (expected 13). A variant that also reads value directly (variants/A-positional) gets tmp=13, but out is then 13 instead of the expected 26. That remaining mismatch is lrm_ambiguous: the case assumes named arguments are evaluated in source order, and the LRM does not define the order in which arguments are evaluated (13.5.4; 11.4.2 leaves the order of assignments inside an expression undefined)." + }, + { + "suite": "veryl", + "name": "context_width::test_runtime_arithmetic_shift_behavior", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [4-1:0] i_s` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq o_a: expected 0xe, got 0x2). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "enum_type::test_enum_assign_and_compare", + "status": "compile_error", + "classification": "suite_issue", + "note": "The emitted SV `always_comb c = i;` assigns a `logic [1:0]` input directly to a variable of enum type `Color`. Enumerated types are strongly typed and such an assignment requires an explicit cast (6.19.3, example `c = 1; // Invalid assignment`), so xezim correctly rejects it: \"cannot assign logic [1:0] to 'c' of type enum Color: an enum takes only its own members, values of its own type, or an explicit cast (IEEE 1800-2017 §6.19.3)\". The Veryl emitter should emit `c = Color'(i);`." + }, + { + "suite": "veryl", + "name": "expression_semantics::cast_binary_semantics_match_between_comb_and_ff", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [5-1:0] a5`, `input var byte b8` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq c_num_cast: expected 0xfff9, got 0x19 (c_num_cast)). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "expression_semantics::constant_and_runtime_casts_use_the_same_resize_rule", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [5-1:0] a` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq c_runtime_cast: expected 0xfff9, got 0x19 (c_runtime_cast)). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "expression_semantics::narrow_signed_comparison_sign_extends_both_operands", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [5-1:0] a`, `input var logic signed [5-1:0] b` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq c_lt: expected 0x0, got 0x1 (c_lt)). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "expression_semantics::numeric_cast_preserves_four_state_sign_extension", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X14", + "note": "Input a is 5'bx0001 (signed); c_num = 8'(a) must sign-extend the x sign bit to xxxx0001, xezim gives 000x0001 (0xX1). Bug E also applies (unsigned tb actual), but with the actual made signed the case still fails; it passes once the size cast is replaced by explicit replication {{3{a[4]}},a}. So the remaining cause is that a size cast zero-fills an x/z sign bit (known sign bits work)." + }, + { + "suite": "veryl", + "name": "expression_semantics::parent_context_and_self_determined_boundaries_match_between_comb_and_ff", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var byte a`, `input var byte b` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq c_lt: expected 0x1, got 0x0 (c_lt)). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "expression_semantics::short_circuit_operators_skip_effectful_operands", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X3", + "note": "In always @(posedge clk), `and_result <= 1'b0 && set_side_effect(and_side_effect)`, the matching || form and two ?: forms all short-circuit the call, so every *_side_effect stays 0. xezim runs each call, and and_state reads 1 (or_state and both ternary states would be 1 too). The same code in an initial block is correct." + }, + { + "suite": "veryl", + "name": "expression_semantics::signed_type_cast_keeps_comparison_operands_signed", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [8-1:0] a` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq c_lt: expected 0x1, got 0x0 (c_lt)). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "expression_semantics::system_function_results_obey_ternary_width_contexts", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [8-1:0] signed_arm` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq c_natural: expected 0xffffffff, got 0xff). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "flip_flop::test_ff_array_literal_default_expression", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X9", + "note": "r <= '{default: in_data} is correct in xezim (dut.r = 55s), but 'always_comb out_data = r;' (whole unpacked-array read) never re-evaluates when r changes, so out_data stays at its time-0 value (0 with INIT_MEM) instead of 0x55. Replacing it with a per-element for loop makes the case pass." + }, + { + "suite": "veryl", + "name": "flip_flop::test_ff_function_call_array_literal_supports_dynamic_multidim_indexing", + "status": "mismatch", + "classification": "suite_issue", + "note": "Emitted SV '{1{'{8'h11, 8'h22}}, default: '{8'h33, 8'h44}} combines a replication item with a keyed item, which Syntax 10-5 does not allow (a replication must be the whole pattern and 'shall represent an entire single dimension', 10.9.1). The design is illegal; xezim accepts it and returns 0 instead of 0x11. Even with a legal pattern the argument would hit veryl-X8." + }, + { + "suite": "veryl", + "name": "flip_flop::test_ff_function_call_converts_array_literal_view_for_wider_nested_formal", + "status": "compile_error", + "classification": "suite_issue", + "note": "The emitted SV passes `outer`'s formal `logic [3:0] x[2]` on to `inner(x, index)` whose formal is `logic [7:0] x[2]`. Input arguments are copied as by assignment (13.5.1), and unpacked arrays are assignment compatible only when element types are equivalent (7.6); logic [3:0] and logic [7:0] are not (6.22.2). xezim correctly rejects it: \"16:22: cannot assign logic [3:0] $[2] to argument 'x' of 'inner' of type logic [7:0] $[2]: element types logic [7:0] and logic [3:0] are not equivalent (IEEE 1800-2017 §6.22.2, §7.6)\". The Veryl emitter must emit an element-wise conversion (or the case must not expect an SV simulation)." + }, + { + "suite": "veryl", + "name": "flip_flop::test_ff_function_call_converts_forwarded_static_array_element", + "status": "compile_error", + "classification": "suite_issue", + "note": "The emitted SV passes `outer`'s formal `logic [3:0] x[2]` on to `inner(x)` whose formal is `logic [7:0] x[2]`. Input arguments are copied as by assignment (13.5.1), and unpacked arrays are assignment compatible only when element types are equivalent (7.6); logic [3:0] and logic [7:0] are not (6.22.2). xezim correctly rejects it: \"13:22: cannot assign logic [3:0] $[2] to argument 'x' of 'inner' of type logic [7:0] $[2]: element types logic [7:0] and logic [3:0] are not equivalent (IEEE 1800-2017 §6.22.2, §7.6)\". The Veryl emitter must emit an element-wise conversion (or the case must not expect an SV simulation)." + }, + { + "suite": "veryl", + "name": "flip_flop::test_ff_function_call_dynamic_multidim_indexing_accepts_array_valued_items", + "status": "mismatch", + "classification": "suite_issue", + "note": "pass_rows calls pick('{row0, row1}, ...) where row0/row1 are logic [3:0] [2] and pick's formal is logic [7:0] x [2][2]. Per 10.9.1 each item is assigned to the element type logic [7:0] [2], and 7.6 requires equivalent element types, so this is illegal SV (xezim rejects the analogous direct argument in other cases). xezim accepts it and gives X instead of 1." + }, + { + "suite": "veryl", + "name": "flip_flop::test_ff_function_call_multidim_array_literal_default_fill_matches_formal_shape", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X8", + "note": "f('{default: 8'h55}) into logic [7:0] x [2][2] should return x[1][1]=0x55; xezim returns X. Assigning the pattern to a local [2][2] variable and passing that makes the case pass." + }, + { + "suite": "veryl", + "name": "flip_flop::test_ff_function_call_multidim_array_literal_indexing_preserves_element_order", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X8", + "note": "f('{'{8'h11,8'h22},'{8'h33,8'h44}}) should return x[0][0]=0x11; xezim returns 0. Hoisting the nested pattern into a local [2][2] variable makes the case pass." + }, + { + "suite": "veryl", + "name": "flip_flop::test_ff_function_call_restores_array_literal_view_after_reentrant_call", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X11", + "note": "pick('{8'h11,8'h22}, pick('{8'h00,8'h01}, 0)) should be pick(outer, 0)=0x11; xezim returns 0x00 because the inner call's array argument overwrites the outer call's bound formal x (same with plain variables). Computing the inner call into a temporary first makes the case pass." + }, + { + "suite": "veryl", + "name": "flip_flop::test_ff_function_call_restores_initialized_forwarded_alias_view", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X11", + "note": "Inner forward('{aa,bb},1,0,0) = bb+aa = 0x65; outer forward('{11,22},1,1,0x65) should give 22+65+11 = 0x98. xezim gives 0xca = bb+65+aa, i.e. the outer call sees the inner call's array {aa,bb}. Hoisting the inner call into a temporary makes the case pass." + }, + { + "suite": "veryl", + "name": "flip_flop::test_ff_function_call_restores_nearest_array_view_after_deep_reentrant_call", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X11", + "note": "pick('{11,22}, pick('{00,00}, pick('{00,00}, 0))) should be 0x11; xezim gives 0x00 because nested calls of pick overwrite the outer call's array formal. Computing the inner calls into temporaries makes the case pass." + }, + { + "suite": "veryl", + "name": "flip_flop::test_ff_runtime_for_signed_inclusive_range_preserves_negative_bounds", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [32-1:0] start`, `input var logic signed [32-1:0] count` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq q_last: expected 0x1, got 0xdeadbeef). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "flip_flop::test_ff_runtime_reverse_min_i32_end_wraps_before_range_check", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [64-1:0] start`, `input var logic signed [64-1:0] end_bound` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq q: expected 0x7fffffff, got 0x0). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "flip_flop::test_ff_runtime_reverse_step_matches_emitted_sv_order", + "status": "runtime_error", + "classification": "xezim_bug", + "bug": "E", + "note": "Top's `start`/`end_bound` are `input var logic signed [63:0]` connected to unsigned `logic [63:0]` actuals; xezim treats them unsigned, so `i >= start` (int vs 64-bit) becomes an unsigned compare that stays true once i goes negative and the always_ff loop never ends (60 s timeout). With only the testbench actuals declared signed the case passes (q = 1)." + }, + { + "suite": "veryl", + "name": "flip_flop::test_ff_signed_xor_step_uses_loop_counter_width", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [32-1:0] wide_start`, `input var logic signed [128-1:0] wide_end` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq q: expected 0x7ffffff8, got 0x0). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "flip_flop::test_ff_struct_constructor_signed_member_extension", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var byte in_neg` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq out_pad: expected 0xffff, got 0xff). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "floating_point::arithmetic_and_rounding", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var int a`, `input var int b` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq quotient: expected 0xfffffffc, got 0x7ffffffd). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "floating_point::f32_precision_and_conversion", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X21", + "note": "With a = 16777216, `narrow = int'(x + shortreal'(1))` with shortreal x must round in single precision to 16777216, but xezim gives 16777217: shortreal variables and shortreal arithmetic keep double precision (a shortreal variable even holds 0.1 exactly as the double 0.1)." + }, + { + "suite": "veryl", + "name": "floating_point::scalar_port_and_function_conversions", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var real a` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq q: expected 0xfffffffd, got 0xfffffffe). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "floating_point::sequential_float", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var int a` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq result: expected 0xfffffffe, got 0x7fffffff). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "four_state::test_four_state_initial_and_set", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X15", + "note": "dut.b is `input var bit [7:0]` connected to a never-written 4-state tb variable i_b (x); a bit port variable must read 0, xezim reads it as 0xff payload / x mask. Changing only the tb actual to `bit [7:0] i_b` makes the case pass." + }, + { + "suite": "veryl", + "name": "four_state::test_four_state_internal_async_reset_edges_follow_table_9_2", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X16", + "note": "rl goes 1->x (a negedge per Table 9-2), so the `always_ff @(posedge k, negedge rl) if (!rl) l <= 0; else ...` block runs and `!x` is false, giving l = 0+1 = 1; xezim takes the reset branch and keeps l = 0 (hits_l expected 0x1 got 0x0; same at the 1->z step). The edge itself is detected; the case passes once `if (!rl)` is written `if (rl == 1'b0)`." + }, + { + "suite": "veryl", + "name": "four_state::test_four_state_sar_x_shift_amount", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [8-1:0] a` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (0x80 >>> 2 = 0xE0 (sign extend): 0x20 != 0xe0). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "four_state::test_four_state_signed_comparison_with_x", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [8-1:0] a`, `input var logic signed [8-1:0] b` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (signed: -1 < 1 should be true: 0x0 != 0x1). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "four_state::test_four_state_wide_signed", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [128-1:0] a`, `input var logic signed [128-1:0] b` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (SAR sign extension should propagate X: 0xffffffffffffffff != 0xffffffffffffffffffffffffffffffff). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "four_state::test_four_state_wide_signed_comparison_with_x", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [128-1:0] a`, `input var logic signed [128-1:0] b` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (Wide signed: -1 < 1 should be true: 0x0 != 0x1). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "four_state_expression_semantics::ff_unknown_reset_is_not_active", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X16", + "note": "With reset_low = x, `if (!reset_low) q_low <= 0; else q_low <= d;` must take the else branch (q_low = d = 1); xezim gives 0. The active-high block with reset_high = x is correct. Passes once `if (!reset_low)` is written `if (reset_low == 1'b0)`." + }, + { + "suite": "veryl", + "name": "four_state_expression_semantics::indeterminate_ternary_executes_effectful_arms_in_order", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X3", + "note": "result = sel ? set_two(q_output) : increment(q_output, q_output) with sel = 1 must only run set_two (q_output = 2); xezim runs both arms on every evaluation, so q_output = 3 whatever sel is (the x/z steps pass only by coincidence). Rewriting the ternary as an if/else chain (merging both arms only for unknown sel) passes." + }, + { + "suite": "veryl", + "name": "four_state_expression_semantics::wide_ternary_condition_known_one_dominates_unknown_bits", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X17", + "note": "sel (130 bits) has bit 100 = 1 and bit 3 = x/z, so it is nonzero under every resolution and `sel ? a : b` must give a = 0xa5; xezim treats it as ambiguous and merges the arms (got 0xX, a5 and 3c merged bitwise). xezim's own `if (v)`, `!v`, `v && 1` treat the same value as true; replacing `sel` with `|sel` makes the case pass. Not width-related (2'b1x repros)." + }, + { + "suite": "veryl", + "name": "four_state_expression_semantics::wide_ternary_unknown_condition_merges_every_arm_chunk", + "status": "mismatch", + "classification": "suite_issue", + "note": "With sel = x, the arms agree on bit 2 being z (a = b = z there). The expectation keeps z, xezim gives x; that bit is the only difference over all 130 bits. Per 11.4.11 the arms are compared with ==, which is x when a z is present (not true), so Table 11-20 applies and z combined with z gives x. xezim is right; the case expectation (and Icarus, which returns z) are wrong for z bits that agree." + }, + { + "suite": "veryl", + "name": "function_bodies::test_path_without_return_yields_unknown", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X18", + "note": "only_zero(5) takes no return, so the automatic function's implicit return variable (initialized to x on each entry) must come back as 8'hxx; in always_comb/always_ff xezim returns the previous call's value 1 (xmask 0 instead of 0xff). The same call from an initial block gives x. Adding `else return 'x;` passes (assigning `only_zero = 'x;` first does NOT help in xezim)." + }, + { + "suite": "veryl", + "name": "hierarchical_assignment::disjoint_loop", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "G", + "note": "Native Veryl testbench; xezim's preprocessor rejects the one-argument macro call with an empty actual: `CELOX_SUITE_FINISH();` -> \"error: macro `CELOX_SUITE_FINISH` missing required argument `unused` (IEEE 1800-2017 §22.5.1)\". IEEE 1800-2023 22.5.1 allows an empty actual argument, so the build fails before simulation." + }, + { + "suite": "veryl", + "name": "hierarchical_assignment::selections", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "G", + "note": "Native Veryl testbench; xezim's preprocessor rejects the one-argument macro call with an empty actual: `CELOX_SUITE_FINISH();` -> \"error: macro `CELOX_SUITE_FINISH` missing required argument `unused` (IEEE 1800-2017 §22.5.1)\". IEEE 1800-2023 22.5.1 allows an empty actual argument, so the build fails before simulation." + }, + { + "suite": "veryl", + "name": "hierarchy::test_dynamic_minus_colon_output_port_rmw", + "status": "unexpected_accept", + "classification": "xezim_bug", + "bug": "F", + "note": "The output port is connected to `.y(mem[idx-:2])`, a select of variable `mem` with a nonconstant index. An output port connection to a variable implies a continuous assignment (23.3.3.2), whose left-hand side may only use constant bit/part selects (Table 10-1); Icarus rejects it, xezim compiles it without a diagnostic, so the expected rejection is not observed." + }, + { + "suite": "veryl", + "name": "hierarchy::test_dynamic_output_port_converts_four_state_child_to_two_state_parent", + "status": "unexpected_accept", + "classification": "xezim_bug", + "bug": "F", + "note": "The output port is connected to `.y(mem[idx])`, a select of variable `mem` with a nonconstant index. An output port connection to a variable implies a continuous assignment (23.3.3.2), whose left-hand side may only use constant bit/part selects (Table 10-1); Icarus rejects it, xezim compiles it without a diagnostic, so the expected rejection is not observed." + }, + { + "suite": "veryl", + "name": "hierarchy::test_dynamic_output_port_rmw_preserves_unselected_bits", + "status": "unexpected_accept", + "classification": "xezim_bug", + "bug": "F", + "note": "The output port is connected to `.y(mem[idx+:2])`, a select of variable `mem` with a nonconstant index. An output port connection to a variable implies a continuous assignment (23.3.3.2), whose left-hand side may only use constant bit/part selects (Table 10-1); Icarus rejects it, xezim compiles it without a diagnostic, so the expected rejection is not observed." + }, + { + "suite": "veryl", + "name": "hierarchy::test_dynamic_prefix_colon_output_port_allows_zero_lsb", + "status": "unexpected_accept", + "classification": "xezim_bug", + "bug": "F", + "note": "The output port is connected to `.y(mem[idx][7:0])`, a select of variable `mem` with a nonconstant index. An output port connection to a variable implies a continuous assignment (23.3.3.2), whose left-hand side may only use constant bit/part selects (Table 10-1); Icarus rejects it, xezim compiles it without a diagnostic, so the expected rejection is not observed." + }, + { + "suite": "veryl", + "name": "hierarchy::test_dynamic_step_output_port_rmw", + "status": "unexpected_accept", + "classification": "xezim_bug", + "bug": "F", + "note": "The output port is connected to `.y(mem[idx*(2)+:(2)])`, a select of variable `mem` with a nonconstant index. An output port connection to a variable implies a continuous assignment (23.3.3.2), whose left-hand side may only use constant bit/part selects (Table 10-1); Icarus rejects it, xezim compiles it without a diagnostic, so the expected rejection is not observed." + }, + { + "suite": "veryl", + "name": "hierarchy::test_instance_input_function_output_writeback", + "status": "mismatch", + "classification": "suite_issue", + "note": "The emitted SV connects input port `.i(write_seen(a, seen))`, a call of a function with an `output` argument in a port expression, which is not within a procedural statement. 13.4.1 makes this illegal, so the design has no defined behavior (xezim leaves seen = x/0; with zinit it reads 0, expected 1). The Veryl case expects simulation of SV that the LRM forbids." + }, + { + "suite": "veryl", + "name": "hierarchy::test_instance_input_port_assignment_width_context", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [8-1:0] s8` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq o_s16: expected 0xff80, got 0x80). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "hierarchy::test_instance_output_concat_advances_each_destination", + "status": "unexpected_accept", + "classification": "xezim_bug", + "bug": "F", + "note": "The output port is connected to `.o({mem[tmp], tmp})`, a select of variable `mem` with a nonconstant index. An output port connection to a variable implies a continuous assignment (23.3.3.2), whose left-hand side may only use constant bit/part selects (Table 10-1); Icarus rejects it, xezim compiles it without a diagnostic, so the expected rejection is not observed." + }, + { + "suite": "veryl", + "name": "hierarchy::test_instance_output_dynamic_index_composes_aliasing_writeback", + "status": "unexpected_accept", + "classification": "xezim_bug", + "bug": "F", + "note": "The output port is connected to `.o(mem[choose_index(sel, mem[0])])`, a select of variable `mem` with a nonconstant index. An output port connection to a variable implies a continuous assignment (23.3.3.2), whose left-hand side may only use constant bit/part selects (Table 10-1); Icarus rejects it, xezim compiles it without a diagnostic, so the expected rejection is not observed." + }, + { + "suite": "veryl", + "name": "hierarchy::test_instance_output_dynamic_index_function_output_writeback", + "status": "unexpected_accept", + "classification": "xezim_bug", + "bug": "F", + "note": "The output port is connected to `.o(mem[choose_index(sel, tmp)])`, a select of variable `mem` with a nonconstant index. An output port connection to a variable implies a continuous assignment (23.3.3.2), whose left-hand side may only use constant bit/part selects (Table 10-1); Icarus rejects it, xezim compiles it without a diagnostic, so the expected rejection is not observed." + }, + { + "suite": "veryl", + "name": "hierarchy::test_instance_unpacked_array_slice_input", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X12", + "note": "Child input i_data [2] connected to data[1+:2] should see {data[2],data[1]} = 0x3412; xezim's child sees wrong elements (0 in the case; 0x0100 in the repro). Connecting an intermediate 2-element array driven from data[1]/data[2] makes the case pass." + }, + { + "suite": "veryl", + "name": "hierarchy::test_instance_unpacked_array_slice_output", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X12", + "note": "Child output o_data [2] connected to data[1+:2] should drive data[1]=0x12, data[2]=0x34 (o_data=0x3412); xezim never drives the slice (xx in the repro, 0 in the case). Connecting an intermediate array and copying it into data[1]/data[2] makes the case pass." + }, + { + "suite": "veryl", + "name": "interface::test_interface_array_direct_function_calls", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X22", + "note": "`always_comb y0 = lanes[0].scaled(x)` calls a function of an element of an interface instance array that reads lanes[0].base; xezim does not put base in the block's sensitivity, so y0 stays x/stale (y0 = 0x'x' for x = 0, expected 0). The same call on a non-arrayed interface instance updates correctly." + }, + { + "suite": "veryl", + "name": "logical_shift_count::two_state_wide_count", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X20", + "note": "With a 72-bit shift count n = 2**64, `8'hff << n` must be 0 but xezim returns 0xff: the count is truncated to its low 64 bits (2**64+1 shifts by 1)." + }, + { + "suite": "veryl", + "name": "operators::test_signed_arithmetic_shift_right", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var byte a` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq o_sar: expected 0xe0, got 0x20). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "operators::test_signed_comparison_and_extension", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var byte a`, `input var byte b` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq o_lt: expected 0x1, got 0x0). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "operators::test_symbolic_store_preserves_declared_state_signedness", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [8-1:0] signed_value`, `input var logic signed [8-1:0] signed_lhs` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq signed_cmp: expected 0x1, got 0x0). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "operators::test_unsigned_type_cast_does_not_inherit_source_signedness", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [5-1:0] signed_in`, `input var logic signed [8-1:0] lhs` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq cmp: expected 0x0, got 0x1). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "partial_word_shift::four_state_matrix", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [63-1:0] a63`, `input var logic signed [64-1:0] a64`, `input var logic signed [65-1:0] a65`, `input var logic signed [95-1:0] a95` ... are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq y63: expected 0x6000000000000002, got 0x2000000000000002 (runtime SAR width=63)). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "partial_word_shift::four_state_wide_counts", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [65-1:0] a` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq y129: expected 0x180000000000000ZZ, got 0x80000000000000ZZ (SAR with 129-bit count)). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "partial_word_shift::sar_padding_does_not_escape", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [65-1:0] a65`, `input var logic signed [193-1:0] a193` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq y65: expected 0x18000000000000002, got 0x8000000000000002 (SAR padding width=65)). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "partial_word_shift::sign_x_65", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [65-1:0] a` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq y: expected 0xX000000000000002, got 0xX000000000000002). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "partial_word_shift::sign_z_65", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [65-1:0] a` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq y: expected 0xZ000000000000002, got 0xZ000000000000002). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "partial_word_shift::two_state_matrix", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [63-1:0] a63`, `input var logic signed [64-1:0] a64`, `input var logic signed [65-1:0] a65`, `input var logic signed [95-1:0] a95` ... are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq y63: expected 0x6000000000000002, got 0x2000000000000002 (runtime SAR width=63)). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "partial_word_shift::two_state_runtime_matrix", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [63-1:0] a63`, `input var logic signed [64-1:0] a64`, `input var logic signed [65-1:0] a65`, `input var logic signed [95-1:0] a95` ... are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq y63: expected 0x6000000000000002, got 0x2000000000000002 (runtime SAR width=63)). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "recovered_unrolled_fold::recovered_unrolled_store_forward_selects_older_entry", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X9", + "note": "`always_comb ls_fwd = rob_fwd;` (whole unpacked-array copy) is not re-run when an element of rob_fwd changes: with store_idx=3, dut.rob_fwd[3]=1 but dut.ls_fwd[3]=0, so the forward search never finds the store and mask = 0 (expected 1). Reduced repro shows the same for any unpacked array copy in always_comb / always @*." + }, + { + "suite": "veryl", + "name": "shift_signedness::test_shift_right_arithmetic_native", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var longint i` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq o_comb: expected 0xc000000000000000, got 0x4000000000000000 (Comb arithmetic shift faile). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "shift_signedness::test_shift_right_arithmetic_wide", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [128-1:0] i` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq o_comb: expected 0xc0000000000000000000000000000000, got 0x400000000000000000000000000000). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "signed_divrem::signed_divrem_always_ff", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var byte a`, `input var byte b` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq q: expected 0xfd, got 0x7c). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "signed_divrem::signed_divrem_four_state_zero_divisor", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [8-1:0] sa8`, `input var logic signed [8-1:0] sb8`, `input var logic signed [64-1:0] sa64`, `input var logic signed [64-1:0] sb64` ... are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq sq8: expected 0xf2, got 0x16 (sq8)). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "signed_divrem::signed_divrem_i128", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "First failure (q = 0x2492...16 for -100/7, expected -14) is bug E on the signed 128-bit and 65-bit input formals; with signed actuals those pass. The remaining failure (q = x for b = 0 where the two-state fixture expects 0) is not a xezim bug: q is `logic signed [127:0]` and 11.4.3 requires x, the same reviewed state-model difference as limitation icarus_two_state_zero_division, which would also have to list xezim." + }, + { + "suite": "veryl", + "name": "signed_divrem::signed_divrem_i64", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var longint a`, `input var longint b` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq q: expected 0xfffffffffffffffe, got 0x3ffffffffffffffd). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "signed_divrem::signed_divrem_i8", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "First failure q = 0x7c for -7/2 (expected 0xfd) is bug E: the `input var byte a, b` formals act unsigned when connected to `logic [7:0]` actuals; with signed actuals all signed results pass. The run then stops at the divide-by-zero check: `output var byte q` holds x after a/0 (expected 0), which is a second new bug veryl-X15 (2-state port variables keep x)." + }, + { + "suite": "veryl", + "name": "state_cast_semantics::implicit_assignment_to_bit_clears_unknowns_without_mutating_source", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X15", + "note": "c_narrow_bit is `output var bit [7:0]` assigned the 4-state 0xa9/mask 0x0c in always_comb; the 2-state port must hold 0xa1 (x/z converted to 0), xezim stores the x/z bits (0xaX). A local bit variable assigned the same value is converted correctly; output ports driven from always_ff are affected too." + }, + { + "suite": "veryl", + "name": "state_cast_semantics::signed_four_state_function_formal_preserves_unknown_bits", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X19", + "note": "a = 1010xz01 passed through `function logic [7:0] through(input logic signed [7:0] x); return x;` must come back unchanged; called from always_comb/always_ff xezim turns the z bit into x (1010xx01, both print as 0xaX). The same call in an initial block is correct, and the signedness of the formal is irrelevant (an unsigned formal behaves the same). Inlining the copy instead of calling the function passes." + }, + { + "suite": "veryl", + "name": "std_onehot::test_onehot_8bit_exhaustive", + "status": "mismatch", + "classification": "adapter_two_state_init", + "note": "In the W == 1 base case of the recursive _onehot, the output variable o_gt_one is never driven, so it is x under xezim and o_onehot = ... & ~gt_one becomes x (got x, expected 1 for val = 1). The two-state contract says it starts at 0 (Icarus's harness zeroes it); adding `= 1'b0` to the o_gt_one port declaration makes all 256 values pass." + }, + { + "suite": "veryl", + "name": "synth_dynamic_loop::test_runtime_bounds_in_synth_for_loops", + "status": "runtime_error", + "classification": "lrm_permitted_race", + "note": "With the two-state inputs starting at 0, `for (int i = step_start; i < (count + 4); i *= 2)` never ends while step_start is 0. always_comb runs once at time zero after all processes have started (9.2.2.2.1) and may also run between the testbench's two blocking writes (4.7); xezim runs it before step_start is written, and the run reaches the 60 s timeout." + }, + { + "suite": "veryl", + "name": "synth_dynamic_loop::test_runtime_bounds_reverse_singleton_exits_cleanly", + "status": "runtime_error", + "classification": "lrm_permitted_race", + "note": "With the two-state inputs starting at 0, `for (int i = count; i >= start; i--)` compares unsigned and never ends. always_comb runs once at time zero after all processes have started (9.2.2.2.1), and xezim runs it before the testbench's first write, which 4.7 permits; the run reaches the 60 s timeout." + }, + { + "suite": "veryl", + "name": "synth_dynamic_loop::test_runtime_bounds_signed_inclusive_range_preserves_negative_bounds", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [32-1:0] start`, `input var logic signed [32-1:0] count` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq hits: expected 0x3, got 0x0). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "synth_dynamic_loop::test_runtime_reverse_step_matches_emitted_sv_order", + "status": "runtime_error", + "classification": "xezim_bug", + "bug": "E", + "note": "Same pattern as the flip_flop variant: signed 64-bit `start`/`end_bound` formals act unsigned under xezim, so the reverse loop condition `i >= start` never becomes false and the run times out. Declaring the testbench actuals signed makes it pass." + }, + { + "suite": "veryl", + "name": "synth_dynamic_loop::test_signed_xor_step_uses_loop_counter_width", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [128-1:0] wide_end` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq last: expected 0x7ffffff8, got 0x0). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "tb_string::array_elements", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "G", + "note": "Native Veryl testbench; xezim's preprocessor rejects the one-argument macro call with an empty actual: `CELOX_SUITE_FINISH();` -> \"error: macro `CELOX_SUITE_FINISH` missing required argument `unused` (IEEE 1800-2017 §22.5.1)\". IEEE 1800-2023 22.5.1 allows an empty actual argument, so the build fails before simulation." + }, + { + "suite": "veryl", + "name": "tb_string::assignment", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "G", + "note": "Native Veryl testbench; xezim's preprocessor rejects the one-argument macro call with an empty actual: `CELOX_SUITE_FINISH();` -> \"error: macro `CELOX_SUITE_FINISH` missing required argument `unused` (IEEE 1800-2017 §22.5.1)\". IEEE 1800-2023 22.5.1 allows an empty actual argument, so the build fails before simulation." + }, + { + "suite": "veryl", + "name": "tb_string::comparison", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "G", + "note": "Native Veryl testbench; xezim's preprocessor rejects the one-argument macro call with an empty actual: `CELOX_SUITE_FINISH();` -> \"error: macro `CELOX_SUITE_FINISH` missing required argument `unused` (IEEE 1800-2017 §22.5.1)\". IEEE 1800-2023 22.5.1 allows an empty actual argument, so the build fails before simulation." + }, + { + "suite": "veryl", + "name": "tb_string::control_flow", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "G", + "note": "Native Veryl testbench; xezim's preprocessor rejects the one-argument macro call with an empty actual: `CELOX_SUITE_FINISH();` -> \"error: macro `CELOX_SUITE_FINISH` missing required argument `unused` (IEEE 1800-2017 §22.5.1)\". IEEE 1800-2023 22.5.1 allows an empty actual argument, so the build fails before simulation." + }, + { + "suite": "veryl", + "name": "tb_string::function_argument", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "G", + "note": "Native Veryl testbench; xezim's preprocessor rejects the one-argument macro call with an empty actual: `CELOX_SUITE_FINISH();` -> \"error: macro `CELOX_SUITE_FINISH` missing required argument `unused` (IEEE 1800-2017 §22.5.1)\". IEEE 1800-2023 22.5.1 allows an empty actual argument, so the build fails before simulation." + }, + { + "suite": "veryl", + "name": "veryl_context_regressions::case_compares_each_label_as_an_if_does", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X24", + "note": "With t = 32'h0000fffd and K = shortint -1, `case (t) K - 2:` must match like `t == K - 2` (t is unsigned, so K is converted to unsigned 32 bit, 0x0000ffff - 2 = 0xfffd); xezim gives y2 = 0 while it evaluates `t == K-2` as 1. y3/y4 (case inside / inside ranges [K-3:K-1]) fail the same way, and y6 = f(8'hF5) fails because of veryl-X25 (case inside a function not widened to the 9-bit item). Icarus and Verilator both match the plain case." + }, + { + "suite": "veryl", + "name": "veryl_context_regressions::constant_case_on_signed_target", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X23", + "note": "localparam C1 = f(-5), where f uses `case (n) inside ... [-8:-2]: r = 3;`, evaluates to 0 in module Top (a non-top module under celox_suite_tb); the same function gives 3 at run time and in the top module. y1 = 0, expected 3." + }, + { + "suite": "veryl", + "name": "veryl_context_regressions::constant_case_target_uses_comparison_context", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X24", + "note": "`case (J + 8'h01) inside [16'h00FF:16'h0100]` with J = 8'hFF: the case expression must be evaluated in the 16-bit comparison context (0x100, in range -> y3 = 2), but xezim evaluates it in 8 bits (0x00) and takes default (y3 = 0). All other outputs (y0-y2, y4, y5, f0-f3) are correct; the expression form `(J+8'h01) inside {[...]}` also works." + }, + { + "suite": "veryl", + "name": "veryl_context_regressions::folded_const_select_keeps_its_sign", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "veryl-X1", + "note": "The emitted `localparam pkg::S LS = pkg::S'{m: -3, k: 5};` fails to parse (\"expected Semicolon, found ApostropheLBrace\"). A typed assignment pattern may name a package-scoped type (assignment_pattern_expression_type ::= ps_type_identifier, ps_type_identifier ::= [package_scope] type_identifier); xezim parses the unscoped `T'{...}` form but not `pkg::S'{...}`." + }, + { + "suite": "veryl", + "name": "veryl_context_regressions::signed_struct_member_sign_extends", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X26", + "note": "Inside always_comb, `y0 = s.m` with s.m a `logic signed [7:0]` member of a packed struct must sign-extend 0xfe to 0xfffe; xezim gives 0x00fe. The same read in an initial block gives 0xfffe, so it is an always_comb evaluation bug." + }, + { + "suite": "veryl", + "name": "veryl_context_regressions::unfolded_constant_struct_member_reads_its_value", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "veryl-X1", + "note": "The emitted `localparam pkg::S LS = pkg::S'{m: -3, k: 5};` fails to parse (\"expected Semicolon, found ApostropheLBrace\"). A typed assignment pattern may name a package-scoped type (assignment_pattern_expression_type ::= ps_type_identifier, ps_type_identifier ::= [package_scope] type_identifier); xezim parses the unscoped `T'{...}` form but not `pkg::S'{...}`." + }, + { + "suite": "veryl", + "name": "veryl_language::parameter_expression_type_cast_widths", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X27", + "note": "`expr_b = (Q + 1)'((i_x - 2))` with Q = 16, i_x = 0 must give 0x1fffe, but xezim gives 0xfffffffe: a size cast whose size is a parenthesized expression ((Q+1)' or even (9)') is a no-op, while 17'(...) and the typedef cast B'(...) work." + }, + { + "suite": "veryl", + "name": "veryl_regressions::constant_arrays_initialize_comb_and_ff_reads", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X2", + "note": "`localparam logic [2:0] REPEATED [4] = '{default: 3'b101};` reads back wrong under xezim: `repeated = REPEATED[index]` gives 3'bxxx (expected 5). `default:` sets every unmatched element (10.9.1) and parameters may be unpacked arrays (6.20.2). Replacing only that pattern with the positional `'{3'b101, 3'b101, 3'b101, 3'b101}` in a copy makes the case pass; the standalone repro shows default-pattern localparam elements read as 1/0 instead of 101/7." + }, + { + "suite": "veryl", + "name": "veryl_regressions::wide_shift_amount_out_of_range", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X20", + "note": "r = v >> amt with a 70-bit amt = 2**64+1 and v = 0xa5 must be 0; xezim gives 0x52 (= 0xa5 >> 1) because the shift count is truncated to 64 bits." + }, + { + "suite": "veryl", + "name": "veryl_regressions::wide_shift_count_preserves_unknowns_and_sign_fill", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "veryl-X20", + "note": "Two bugs: signed_value >>> amount is wrong because of bug E (input logic signed connected to unsigned i_signed_value, arithmetic 0x42 vs 0xc2). With E worked around the case still fails: value << amount with the 70-bit count 2**64+1 gives 0xaa (a shift by 1) instead of 0, because xezim keeps only the low 64 bits of the count. Clamping counts with nonzero bits 69:64 to 200 in the source (plus the signed actual) passes." + }, + { + "suite": "veryl", + "name": "wide_operators::test_wide_comb_sar", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [128-1:0] a` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq y: expected 0xfffffffffffffffffffffffffffffffc, got 0x3ffffffffffffffffffffffffffffffc). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "wide_operators::test_wide_comb_signed_gt", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [128-1:0] a`, `input var logic signed [128-1:0] b` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq y: expected 0x1, got 0x0). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "wide_operators::test_wide_comb_signed_lt", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [128-1:0] a`, `input var logic signed [128-1:0] b` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq y: expected 0x1, got 0x0). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "wide_operators::test_wide_signed_compare_non_chunk_aligned", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [65-1:0] a65`, `input var logic signed [65-1:0] b65`, `input var logic signed [127-1:0] a127`, `input var logic signed [127-1:0] b127` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq lt65: expected 0x1, got 0x0). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "wide_shift_mem::test_1024bit_sar_sign_extension", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [1024-1:0] a` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq o: expected 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "wide_shift_mem::test_256bit_arithmetic_shift_right", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [256-1:0] a` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq o: expected 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff, got 0xfff). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "wide_shift_mem::test_512bit_arithmetic_shift_right", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [512-1:0] a` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq o: expected 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "veryl", + "name": "wide_shift_mem::test_512bit_sar_ff", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The DUT formal(s) `input var logic signed [512-1:0] a` are signed, but the testbench connects unsigned `logic [N:0] i_*` actuals; xezim takes the port's signedness from the actual, so signed operations on the formal run unsigned (assert_eq o: expected 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff). Changing only those actuals to `logic signed` (all other files unchanged) makes the case pass under xezim, so the mismatch is bug E." + }, + { + "suite": "sv", + "name": "aggregate_regressions::parameter_element_forwarding", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X1", + "note": "Parent's localparam [N-1:0][31:0] WORDS=V; WORDS[n] is the 32-bit element (8 / 16), but xezim reads it as bit n (0) when the module is not the top, so Child gets A=0 and y=0 instead of 0x0810. Displaying WORDS[0] inside instance p prints 0; the same code run as top module prints 16." + }, + { + "suite": "sv", + "name": "aggregate_regressions::parameter_runtime_element_bit", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X1", + "note": "FLAGS is localparam [1:0][3:0] = 8'b10100101, so FLAGS[1][i] is bit i of 4'b1010; xezim takes FLAGS[1] as a single bit (bit 1 = 0), so i=0 gives 0 and i=1..3 give x (expected 1 at i=1). Same X1 select bug in a non-top module (dut)." + }, + { + "suite": "sv", + "name": "class::casts_from_interface_class_handles", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X3", + "note": "$cast(sized, named) with named (interface class Named) holding a Box that implements Sized returns 0 in xezim (expected 1, size 8). Because sized stays null, line 3 also prints 0 instead of 8; xezim additionally mis-handles named = Tag::new (sv_rest-X2), which with Tag::new replaced by a temporary still leaves line 1 and line 3 wrong through X3." + }, + { + "suite": "sv", + "name": "class::casts_of_class_handles", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X2", + "note": "animal = Puppy::new and animal = Dog::new (typed constructor calls) leave the handle unusable in xezim, so dog.legs() reads 0 instead of 4 on lines 1, 2 and 7. Replacing each typed constructor call with a temporary 'pup = new; animal = pup;' makes the case pass." + }, + { + "suite": "sv", + "name": "class::constructors_chain_to_base", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X4", + "note": "Derived::sum() returns super.sum()*1000 + c + super.b; xezim reads super.b as 0 when the class is declared in a non-top module (dut), printing derived=0 instead of 8110 (as top module it prints 8110). Then e = Default::new (typed constructor call, sv_rest-X2) leaves e null and xezim aborts with a null dereference, so the simulation ends before the script." + }, + { + "suite": "sv", + "name": "class::extern_methods_and_tasks", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X4", + "note": "The out-of-block Accumulator::add body does total += value; in a non-top module xezim's extern method body does not see the object's properties, so total stays 100 (expected 109). The same source run as the top module (-s M) gives 109." + }, + { + "suite": "sv", + "name": "class::objects_survive_heap_collections", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X5", + "note": "last = new inside always @(posedge clk) leaves last null in xezim, so last.text at t=6000 is a fatal null dereference and the simulation ends before the script (expected [inner] [2999] 3000). The same new in an initial procedure works." + }, + { + "suite": "sv", + "name": "class::randomization_inheritance", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X6", + "note": "Base::x, hidden by Child::x, is never randomized by c.randomize() in xezim (stays 0), and b.randomize(x) through the Base handle randomizes Child::x (c.x changes from cx), failing check 'c.x != cx'. 18.11 makes the argument scope the object class, which 18.7 defines as the class of the handle used in the call (Base). Note: the case's companion check b.x == bx after re-seeding relies on Celox's RNG ordering, which the LRM does not guarantee, but the failure here is c.x." + }, + { + "suite": "sv", + "name": "class::randomization_mode_bit_argument", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X7", + "note": "rand_mode(2) must convert 2 to the bit formal (0 = OFF), but xezim treats it as ON (checks 1 and 3 fail); and rand_mode() returns int, so 'c.x.rand_mode() < -1' must be 1 < -1 = 0, but xezim compares it unsigned (check 5 fails). errors=3 matches these." + }, + { + "suite": "sv", + "name": "class::randomization_modes_and_selection", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X8", + "note": "After c.rand_mode(0), alias_c.x.rand_mode(1) does not re-enable x in xezim (x=0, errors|=16). As in the case (non-top dut), c.disable_x() (x.rand_mode(0) inside a method) has no effect (sv_rest-X4, errors|=4), and 4096 follows from that changed state. xezim also does not call pre/post_randomize for randomize(null) (hooks=6, errors|=1024); whether hooks run for the null checker form is not explicit in 18.6.2/18.11.1, so that part is ambiguous." + }, + { + "suite": "sv", + "name": "class::randomization_pre_hook_controls_modes", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X9", + "note": "pre_randomize calls rand_mode(0) (implicit this) when disable_randomization is set; xezim ignores an object-level rand_mode() call made inside a class method, so x is still randomized (x=e99f.., mode=1) and both checks fail (errors=2)." + }, + { + "suite": "sv", + "name": "distributions::annex_n_reference_values", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X10", + "note": "Every $dist_* call returns a value/seed different from the normative Annex N algorithm (e.g. seed=17 $dist_normal(seed,0,10): seed should become -642763923, xezim 1150042706; $dist_exponential gives 68 instead of 82). Icarus, which uses the Annex N code, produces all the expected values." + }, + { + "suite": "sv", + "name": "edges::internal_async_reset_edges_follow_table_9_2", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X13", + "note": "When rl goes 1 -> x (a negedge per Table 9-2) the block 'if (!rl) l <= 0; else l <= l + 1;' must take the else branch (!x is x, so the condition is false), giving hits_l=1; xezim runs the reset branch (l=0). The posedge/rh twin is correct, and the same if in a display-only block takes else." + }, + { + "suite": "sv", + "name": "floating_point::real_arithmetic_and_rounding", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "Top declares input logic signed [31:0] a but the testbench actual i_a is unsigned logic [31:0]; xezim takes the port signedness from the actual, so the negative input converts to real as a large unsigned value (quotient: a=-7 read as 4294967289 -> 0x7ffffffd). Changing only the testbench actual to logic signed [31:0] makes the case pass." + }, + { + "suite": "sv", + "name": "floating_point::real_conversion_functions", + "status": "mismatch", + "classification": "lrm_ambiguous", + "note": "$itor(integer_bits) with an unsigned logic [31:0] 32'hffffffff: Celox expects -1.0 (0xbff0000000000000), xezim gives 4294967295.0. 20.5 only gives 'real $itor(int_val)' and 'converts integer values to real values' without stating that the argument is converted to the integer type; Icarus treats it as integer (-1.0), Verilator and xezim keep the unsigned value." + }, + { + "suite": "sv", + "name": "floating_point::real_display_formats", + "status": "mismatch", + "classification": "lrm_ambiguous", + "note": "Only '$display(x)' differs: Celox expects '1.50000', xezim prints ' 1.5' (width 20). 21.2.1 says an argument with no format specification uses 'the default decimal format', and the integer format specifiers apply only to integral types (21.2.1.1), so the default text of a real value is not specified." + }, + { + "suite": "sv", + "name": "floating_point::real_ports_and_subroutines", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "Top declares input logic signed [31:0] a but the testbench actual i_a is unsigned logic [31:0]; xezim takes the port signedness from the actual, so the negative input converts to real as a large unsigned value (result: half(a) of a=-7 read unsigned -> 0x7ffffffd). Changing only the testbench actual to logic signed [31:0] makes the case pass." + }, + { + "suite": "sv", + "name": "floating_point::sequential_real", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "Top declares input logic signed [31:0] a but the testbench actual i_a is unsigned logic [31:0]; xezim takes the port signedness from the actual, so the negative input converts to real as a large unsigned value (result: real'(a)/2.0 of a=-3 read unsigned -> 0x7fffffff). Changing only the testbench actual to logic signed [31:0] makes the case pass." + }, + { + "suite": "sv", + "name": "floating_point::shortreal_storage_precision", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X14", + "note": "Values assigned to shortreal x and to shortreal rounded must be rounded to IEEE single precision, so narrow = shortreal(shortreal(a) + 1.0) is 0x1000000; xezim keeps double precision in shortreal storage and returns 0x1000001. In isolation, p = 16777217 stored in a shortreal reads back 16777217 (expected 16777216)." + }, + { + "suite": "sv", + "name": "generate::bits_of_generate_local_array_element_localparam", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X1", + "note": "In generate block g, localparam W = $bits(n[0]) for the block-local logic [3:0] n [2] evaluates to 0 under xezim (y=0x0, expected 4). The same query at module scope gives 7/4 correctly, and $bits(n[0]) in a procedural context gives 4; only the constant evaluation of an array query/$bits on a generate-block-local declaration is wrong." + }, + { + "suite": "sv", + "name": "generate::bits_of_generate_local_array_elements", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X1", + "note": "Same as the localparam case: localparam W = $bits(n[0]) and S = $size(n) inside generate block g (block-local n) evaluate to 0, so y=0x0 instead of 4. Module-scope OUTER = $bits(n[0]) works (7)." + }, + { + "suite": "sv", + "name": "generate::distinguishes_escaped_generate_scope_components", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "sv_hier-X3", + "note": "xezim aborts elaboration with 'duplicate instance name a.b.child in the same scope': it flattens the escaped block name \\a.b (one identifier containing a dot, 5.6.1) into the path a.b, colliding with block a's nested block b. Icarus and Verilator keep them distinct (Verilator passes)." + }, + { + "suite": "sv", + "name": "generate::generate_local_typedefs_keep_lexical_scope", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X4", + "note": "Blocks left and right each declare typedef T (8 and 4 bits); xezim gives left's T the 4-bit width of right's T, so y=0x7/parent_value=0x7 instead of 0xa7. widths=0x11 instead of 0x43: the per-iteration typedef lane_t (logic [i+2:0]) gets 1 bit. Same-named declarations in different generate blocks are not kept per scope." + }, + { + "suite": "sv", + "name": "generate::genvar_shadows_inherited_parameter_shapes", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X2", + "note": "For a genvar's implicit integer localparam i, xezim returns $unpacked_dimensions(i)=1 (expected 0) and in localparam/generate-if contexts $left(i)=0, $dimensions(i)=0, $size(i)!=32, so checks[1:0]=0 and checks[4]=x (expected checks=31). Integer is a packed [31:0] with no unpacked dimension (20.7, 27.4); Verilator gives the expected values. outer_dimensions=$dimensions(1-bit logic k) is 1 in xezim vs expected 0; that sub-assert alone is arguable (6.11.1 lists logic among simple bit vector types) but the case already fails on the genvar queries." + }, + { + "suite": "sv", + "name": "generate::genvar_shadows_inherited_parameter_values_and_types", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X6", + "note": "Three xezim failures: checks=0 (expected 7) because $size(i) of the genvar localparam is not 32 and $bits(tmp) of block-local tmp in a generate-if is rejected/0 (X1/X2); nested_value=0 (expected 5) because localparam i=5 in the nested block does not hide the loop's implicit localparam i; unknown_shadow=x because the inner genvar loop under a scope with localparam j=4'bxxxx produces no instances. The nested-localparam shadowing is the clear new defect (23.9 local item is used); the j part depends on where an inline 'genvar j' is declared, which 27.4 leaves unstated." + }, + { + "suite": "sv", + "name": "generate::prefers_function_local_types_over_generate_signals", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X7", + "note": "Each term {~$bits(x)'(0)} evaluates to -1 under xezim (y=-1111=0xfffffba9) instead of 2**$bits(x)-1 (y=31745). A size cast whose width is a $bits(...) call loses its width, independent of scope: {~$bits(m)'(0)} gives -1 even for a module variable, while {~W'(0)} with a localparam W works." + }, + { + "suite": "sv", + "name": "generate::rejects_an_escaped_generate_block_named_like_a_port", + "status": "unexpected_accept", + "classification": "xezim_bug", + "bug": "sv_hier-X5", + "note": "xezim accepts a generate block named \\a (= a, 5.6.1) in a module with port a; it accepts the unescaped 'begin : a' too, so the missing check is the name conflict itself. 3.13(e)/23.9 forbid redeclaring a name in the module name space and 27.4 Example mod_b shows exactly this as an error; Icarus rejects ('a has already been declared')." + }, + { + "suite": "sv", + "name": "generate::resolves_each_generate_signal_declarator_independently", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X1", + "note": "localparam N = $size(a) of the block-local unpacked array a evaluates to 0, so b is declared b[-1:0] and y[1] reads x (y=0xX for all inputs). The same failure occurs with a declared before N (N=0, y=x0 in a reordered probe), so it is X1 independent of the case's forward reference (whose legality under 6.5 is separate)." + }, + { + "suite": "sv", + "name": "generate::resolves_forward_generate_localparam_dependencies", + "status": "mismatch", + "classification": "lrm_ambiguous", + "note": "Block constants uses localparams before their declaration (A = B + 1 with B, C, WIDTH declared later, while module-scope B=99 also exists). xezim resolves module-scope forward parameter references (M1 = M2 + 1 gives 6) but in a generate block yields A=1 (y=0x91, q=1; expected A=3). Reading 1: 23.9 scope lookup finds the block's own B regardless of order (Verilator, expected 3). Reading 2: 6.5 'Data shall be declared before they are used' with 6.20 calling constants named data objects makes the forward use illegal or binds the outer B (Icarus: 'Check for declaration after use'). The LRM states no rule for forward parameter references, so the expectation is not LRM-determined." + }, + { + "suite": "sv", + "name": "generate::resolves_generate_function_names_lexically", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X4", + "note": "Blocks first and second each declare function f (~x and x); xezim runs second's f for calls in first, so y[3:0]=0 for a=0 (expected 0xf) and 0x3f for a=1 (expected 0x30). A single generate-local f overriding the module f works; only sibling same-named functions collapse, the same per-scope table defect as the typedef case." + }, + { + "suite": "sv", + "name": "generate::resolves_generate_signal_size_parameter_dependencies", + "status": "runtime_error", + "classification": "xezim_bug", + "bug": "sv_hier-X1", + "note": "xezim reaches the else-branch $fatal at time 0 in g[0]: W = $bits(data) evaluates 0, which is wrong under every reading (the local data is 8 bits, the module data 2 bits). In a reordered probe (data declared before the localparams) W=8 but S = $size(data) is still 0, so the case fails on X1 independently of its forward reference." + }, + { + "suite": "sv", + "name": "generate::restricts_generate_size_queries_to_visible_functions", + "status": "runtime_error", + "classification": "xezim_bug", + "bug": "sv_hier-X9", + "note": "The module-scope case ($bits(f())) generate selects default and fires $fatal (scope genblk3 = the case construct): xezim evaluates $bits of a function call to 0 in every constant expression (localparam M = $bits(m()) with m returning logic [5:0] gives 0). 20.6.2 determines $bits from the type without evaluating the expression and makes it an elaboration-time constant for fixed-size types." + }, + { + "suite": "sv", + "name": "hierarchy::bits_query_parameter_overrides", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X8", + "note": "variable_bits=0 (expected 12): the ordered override Sub #($bits(value)) passes 0, while the named form .W($bits(value)), a localparam, and $bits(type) all pass 12. Only the positional parameter value assignment with $bits of a variable is lost." + }, + { + "suite": "sv", + "name": "hierarchy::named_array_parameters_follow_caller_specialization", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X10", + "note": "Child #(.Q((TABLE))) passes zeros for the unpacked byte array parameter (a=0, b=0, selected=x/0 instead of 0xfdfb/0x0705). Overriding an unpacked-array parameter with a named array constant loses the value even with a literal-only localparam (probe: .S(T2) gives 0,0 while .S('{7,8}) works)." + }, + { + "suite": "sv", + "name": "hierarchy::named_array_parameters_forward_package_subarrays", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X10", + "note": "Middle #(.Q(TABLE)) with the package's 2x2 logic [7:0] array and the child's .Q(Q[1]) produce y=x (expected 0x5678): the named-array override reaches the child as unknown/zero, as in the X10 repro." + }, + { + "suite": "sv", + "name": "hierarchy::named_array_parameters_forward_whole_values", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X10", + "note": "Middle #(.Q(TABLE)) then Child #(.Q(Q)) gives y=x/0 (expected 0x12/0xa5): the unpacked array parameter value is lost when overridden with a named array (X10)." + }, + { + "suite": "sv", + "name": "hierarchy::named_array_parameters_keep_four_state_values", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X10", + "note": "Child #(.Q(TABLE)) with TABLE = '{4'b10xz, 4'bz01x} gives y=0x00 (expected 8'b10xzz01x): the override with a named unpacked-array localparam passes zeros (X10)." + }, + { + "suite": "sv", + "name": "hierarchy::parameter_patterns_bind_nested_caller_types", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X10", + "note": "Child #(.Q('{pair_t'{-3,-5}, pair_t'{-7,-9}})) gives y=0 (expected 0xfff7fff9fffbfffd). A nested pattern override of a 2-D unpacked parameter is lost even untyped ('{'{1,2},'{3,4}} gives 0 0 0 0), while the same nested pattern in a localparam evaluates correctly." + }, + { + "suite": "sv", + "name": "hierarchy::parameter_patterns_evaluate_caller_constant_functions", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X10", + "note": "Child #(.Q('{g(1), f(2)})) gives Q[0]=0 (y=0x00f9, expected 0xfaf9). g calls f with a named argument f(.value(value)); the same pattern with positional f(value) gives -6 and localparam LG = g(1) gives -6, so only the parameter-override pattern evaluation of this call is wrong." + }, + { + "suite": "sv", + "name": "hierarchy::parameter_patterns_keep_fill_and_arithmetic_context", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "H", + "note": "xezim --compile fails with a parse error 'expected RParen, found ApostropheLBrace' at the typed assignment pattern in Scalar #(.P(int'{default: 0})). Typed assignment patterns (type'{...}) are legal expressions in parameter value assignments and port connections (10.9, A.6.7.1 assignment_pattern_expression with assignment_pattern_expression_type), so this is known bug H; the rest of the design is not reached." + }, + { + "suite": "sv", + "name": "hierarchy::parameter_patterns_keep_original_declarations_and_isolated_bindings", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X12", + "note": "repeated=0 (expected 0xfefe) and keyed=0 (expected 0xfe03). The replication pattern '{N{-N}} evaluates to zeros in every constant context (localparam byte LA[2] = '{2{-2}} gives 0,0; the variable form works). The keyed override '{N-2: -N, default: N+1} is right as a localparam but 0 in the override (X10)." + }, + { + "suite": "sv", + "name": "hierarchy::parameter_patterns_keep_unknown_fill", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X13", + "note": "Child #(.Q('{default: 'x})) gives xfill with only some bits x (16'h0x0x pattern, reported 0xX; expected all 16 bits x), likewise for 'z. In constant unpacked-array patterns the unbased unsized 'x/'z fill is one bit wide and zero-extended (localparam logic [7:0] LX[2] = '{default:'x} prints LX[0]=x as 1 bit), but the variable form fills all 8 bits." + }, + { + "suite": "sv", + "name": "hierarchy::parameter_patterns_override_scalar_defaults", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "H", + "note": "xezim --compile fails with a parse error 'expected RParen, found ApostropheLBrace' at the typed assignment pattern in Child #(.P(int'{default: 1})). Typed assignment patterns (type'{...}) are legal expressions in parameter value assignments and port connections (10.9, A.6.7.1 assignment_pattern_expression with assignment_pattern_expression_type), so this is known bug H; the rest of the design is not reached." + }, + { + "suite": "sv", + "name": "hierarchy::parameter_patterns_preserve_enclosing_expressions", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X11", + "note": "added=1 (expected 256): byte_t'{default: 1} (byte_t = logic [7:0], every bit 1 = 8'hff) evaluates to 0 in a constant expression, so the sum is 1. Typed assignment patterns with a packed type prefix are wrong in every context: as a localparam 0, procedurally 1 (v1 = 2)." + }, + { + "suite": "sv", + "name": "hierarchy::parameter_patterns_preserve_packed_member_states", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "H", + "note": "xezim --compile fails with a parse error 'expected RParen, found ApostropheLBrace' at the typed assignment pattern in Scalar #(.P(integer'{default: 'x})). Typed assignment patterns (type'{...}) are legal expressions in parameter value assignments and port connections (10.9, A.6.7.1 assignment_pattern_expression with assignment_pattern_expression_type), so this is known bug H; the rest of the design is not reached." + }, + { + "suite": "sv", + "name": "hierarchy::parameter_patterns_transfer_packed_values", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X11", + "note": "renamed=0 and regrouped=0 (expected 0x0102 and 0xa123): the typed packed-struct patterns caller_t'{y:2,x:1} and other_t'{...} evaluate to 0 (localparam LP2 = caller_t'{y:2,x:1} is 0; procedural gives 1), while the untyped '{y:2,x:1} in a caller_t localparam is right." + }, + { + "suite": "sv", + "name": "hierarchy::port_pattern_constant_aggregate_defaults", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "H", + "note": "xezim --compile fails with a parse error 'expected RParen, found ApostropheLBrace' at the typed assignment pattern in Child #(.CFG('{default:P::item_t'{a:3,b:5}})). Typed assignment patterns (type'{...}) are legal expressions in parameter value assignments and port connections (10.9, A.6.7.1 assignment_pattern_expression with assignment_pattern_expression_type), so this is known bug H; the rest of the design is not reached." + }, + { + "suite": "sv", + "name": "hierarchy::port_pattern_constant_literal_defaults", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X16", + "note": "Child #(.CFG('{default:VALUE})) with VALUE = P::item_t'(8'h35) gives CFG = 1,0 (y=0x0001, expected 0x3535). The same '{default:VALUE} in a localparam P::item_t L[2] also gives 1,0 (even '{default:8'h35}), while a variable with this initializer gets 35,35: constant evaluation of default: into packed-struct elements is wrong." + }, + { + "suite": "sv", + "name": "hierarchy::port_pattern_constant_mixed_state_defaults", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "H", + "note": "xezim --compile fails with a parse error 'expected RParen, found ApostropheLBrace' at the typed assignment pattern in Child #(.CFG('{default:P::item_t'{a:'x,b:'x}})). Typed assignment patterns (type'{...}) are legal expressions in parameter value assignments and port connections (10.9, A.6.7.1 assignment_pattern_expression with assignment_pattern_expression_type), so this is known bug H; the rest of the design is not reached." + }, + { + "suite": "sv", + "name": "hierarchy::port_pattern_constant_unpacked_defaults", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X15", + "note": "'{default:ROW} and '{OTHER_ROW,OTHER_ROW} (items are whole unpacked arrays) give 0/x elements (default_rows=0xX, explicit_rows=0; expected 0x34123412/0xcdabcdab). Pattern items that are unpacked subarrays are mis-evaluated by xezim in every context (variables give 0X too), for any bounds." + }, + { + "suite": "sv", + "name": "hierarchy::port_pattern_default_bounds_require_matching_types", + "status": "unexpected_accept", + "classification": "xezim_bug", + "bug": "sv_hier-X14", + "note": "xezim accepts '{default:row} where row is byte [4:5] and the subarrays of cfg are byte [0:1]. 10.9.1 applies default to a subarray only if its type matches the value's self-determined type; 6.22.1(f) requires identical bounds for fixed-size arrays to match, and the recursion to byte elements fails because a 16-bit array is not castable to byte, so this is an error. xezim also accepts the same pattern in a procedural assignment and yields 0 0; Verilator rejects it." + }, + { + "suite": "sv", + "name": "hierarchy::port_pattern_review_aggregate_defaults", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "H", + "note": "xezim --compile fails with a parse error 'expected RParen, found ApostropheLBrace' at the typed assignment pattern in Child t(.cfg(P::items_t'{default:value}), ...). Typed assignment patterns (type'{...}) are legal expressions in parameter value assignments and port connections (10.9, A.6.7.1 assignment_pattern_expression with assignment_pattern_expression_type), so this is known bug H; the rest of the design is not reached." + }, + { + "suite": "sv", + "name": "hierarchy::port_pattern_review_conditional_structs", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "H", + "note": "xezim --compile fails with a parse error 'expected RParen, found ApostropheLBrace' at the typed assignment pattern in Child t(.cfg(P::items_t'{default:(sel ? a:b)}), ...). Typed assignment patterns (type'{...}) are legal expressions in parameter value assignments and port connections (10.9, A.6.7.1 assignment_pattern_expression with assignment_pattern_expression_type), so this is known bug H; the rest of the design is not reached." + }, + { + "suite": "sv", + "name": "hierarchy::port_pattern_review_interface_inputs", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X17", + "note": "An assignment pattern used as the actual of an unpacked-array input port is evaluated wrong by xezim: '{default:'1} gives defaults=0xX1 (elements 1-bit), '{value,'1} gives 0x11 instead of 0xf5, '{plus_one(value),'0} gives 0. In the minimal repro, C pos(.cfg('{value,4'h9})) gives cfg=1,0 and '{default:'1} gives 1,X, while connecting a whole array variable works; Verilator gives 5,9 and f,f." + }, + { + "suite": "sv", + "name": "hierarchy::port_pattern_review_member_key_collisions", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X17", + "note": "An assignment pattern used as the actual of an unpacked-array input port is evaluated wrong by xezim: the keyed '{KEY:value, default:3} for input logic [3:0] cfg[2:3] gives indices=0 (expected 0x53); the struct port with a member-keyed pattern is right. In the minimal repro, C pos(.cfg('{value,4'h9})) gives cfg=1,0 and '{default:'1} gives 1,X, while connecting a whole array variable works; Verilator gives 5,9 and f,f." + }, + { + "suite": "sv", + "name": "hierarchy::port_pattern_review_mixed_state_structs", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "H", + "note": "xezim --compile fails with a parse error 'expected RParen, found ApostropheLBrace' at the typed assignment pattern in Single t(.cfg(P::item_t'{a:a, b:'x}), ...). Typed assignment patterns (type'{...}) are legal expressions in parameter value assignments and port connections (10.9, A.6.7.1 assignment_pattern_expression with assignment_pattern_expression_type), so this is known bug H; the rest of the design is not reached." + }, + { + "suite": "sv", + "name": "hierarchy::port_pattern_review_packed_struct_arrays", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "H", + "note": "xezim --compile fails with a parse error 'expected RParen, found ApostropheLBrace' at the typed assignment pattern in Child t(.cfg(P::pair_t'{default:'1}), ...). Typed assignment patterns (type'{...}) are legal expressions in parameter value assignments and port connections (10.9, A.6.7.1 assignment_pattern_expression with assignment_pattern_expression_type), so this is known bug H; the rest of the design is not reached." + }, + { + "suite": "sv", + "name": "hierarchy::port_pattern_review_packed_value_types", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "H", + "note": "xezim --compile fails with a parse error 'expected RParen, found ApostropheLBrace' at the typed assignment pattern in Child t(.cfg(P::items_t'{default:a}), ...). Typed assignment patterns (type'{...}) are legal expressions in parameter value assignments and port connections (10.9, A.6.7.1 assignment_pattern_expression with assignment_pattern_expression_type), so this is known bug H; the rest of the design is not reached." + }, + { + "suite": "sv", + "name": "hierarchy::port_pattern_review_subarray_items", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X17", + "note": "An assignment pattern used as the actual of an unpacked-array input port is evaluated wrong by xezim: '{row,row}, '{0:row,1:row}, '{2{row}} for input logic [7:0] cfg[2][2] give 0xX0X0X0X (expected 0x34123412). In the minimal repro, C pos(.cfg('{value,4'h9})) gives cfg=1,0 and '{default:'1} gives 1,X, while connecting a whole array variable works; Verilator gives 5,9 and f,f." + }, + { + "suite": "sv", + "name": "hierarchy::port_patterns_bind_nested_structure_elements", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X17", + "note": "An assignment pattern used as the actual of an unpacked-array input port is evaluated wrong by xezim: '{'{tag:tag, data:data}, '{default:'1}} for input P::item_t cfg[2] gives y=0x000001 (expected 0xfff3fe). In the minimal repro, C pos(.cfg('{value,4'h9})) gives cfg=1,0 and '{default:'1} gives 1,X, while connecting a whole array variable works; Verilator gives 5,9 and f,f." + }, + { + "suite": "sv", + "name": "hierarchy::port_patterns_keep_caller_values_and_generated_names", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X17", + "note": "An assignment pattern used as the actual of an unpacked-array input port is evaluated wrong by xezim: '{KEY:b, default:a} gives 0x0100 (expected 0x08fe), '{neg(a), b} gives 0 (expected 0x0802), generated 0x41 (expected 0x94). In the minimal repro, C pos(.cfg('{value,4'h9})) gives cfg=1,0 and '{default:'1} gives 1,X, while connecting a whole array variable works; Verilator gives 5,9 and f,f." + }, + { + "suite": "sv", + "name": "hierarchy::port_patterns_preserve_four_state_elements", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X17", + "note": "An assignment pattern used as the actual of an unpacked-array input port is evaluated wrong by xezim: '{a, 'x} gives four=0x10X (expected 16'hxx0X) and two=0x100 (expected 0x000b). In the minimal repro, C pos(.cfg('{value,4'h9})) gives cfg=1,0 and '{default:'1} gives 1,X, while connecting a whole array variable works; Verilator gives 5,9 and f,f." + }, + { + "suite": "sv", + "name": "hierarchy::port_patterns_reject_incorrect_element_counts", + "status": "unexpected_accept", + "classification": "xezim_bug", + "bug": "sv_hier-X19", + "note": "xezim accepts '{2{'0}} connected to input logic [7:0] cfg[3] (and also logic [7:0] c[3] = '{2{'0}} as a declaration). 10.9.1 requires the pattern's expressions to match the array element for element and the braces to match its dimensions, so a 2-item pattern for a 3-element array is an error; Icarus/Celox reject it." + }, + { + "suite": "sv", + "name": "hierarchy::port_patterns_use_specialized_formal_shapes", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X17", + "note": "An assignment pattern used as the actual of an unpacked-array input port is evaluated wrong by xezim: '{3{'1}} and ('{default:'1}) give named=0xX1 and ordered=0xX (expected 0x7fff, 0x3fff). In the minimal repro, C pos(.cfg('{value,4'h9})) gives cfg=1,0 and '{default:'1} gives 1,X, while connecting a whole array variable works; Verilator gives 5,9 and f,f." + }, + { + "suite": "sv", + "name": "hierarchy::widens_small_parameters_preserving_four_state_bits", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X18", + "note": "Child's 'output int value' driven by assign value = N (N = 4'b1xz1) reads 1xz1 at dut.value (reported 0xX, expected 9). int is 2-state, so x/z must become 0 on assignment (6.11.2, 10.3.2); a parent-side int variable receiving the same value is 1001, only the child's 2-state output-port variable keeps x/z." + }, + { + "suite": "sv", + "name": "indexed_select::constant_parameter_initializers_preserve_imported_shapes", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X20", + "note": "down/qualified/header give 0xa and up gives 0 instead of 0xb, and known_low gives x instead of 0xa: D[7:4] of package parameter logic [11:4] D = 8'hab is taken from the raw bits 7:4 (0xa), U[8:11] of [4:11] reads out of the raw range. xezim ignores the declared range of a parameter when selecting from it in constant expressions." + }, + { + "suite": "sv", + "name": "indexed_select::constant_parameter_initializers_preserve_overhanging_parts", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X21", + "note": "checks=0x1 (expected 0x1fff). Probing each localparam: W[8:5] of 8'hab gives 0000 instead of x101, W[6 +: 4] 0000 instead of xx10, W[1'bx +: 2] gives 11 instead of xx, U[1'bx +: 4] 1011 instead of xxxx. Constant part-selects of parameters that overhang the range or have an x/z base return zeros/the in-range value instead of x bits (11.5.1); runtime W[8:5] gives x101 correctly. OFFSET/UP also hit X20." + }, + { + "suite": "sv", + "name": "indexed_select::constant_parameter_initializers_preserve_selections", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X20", + "note": "down=0xa, up=0, negative=0, cast_value=0xb, function_value=0 (expected 0xb, 0xb, 0xb, 12, 4): selects of D [11:4], U [4:11], NEG [-1:-8] in localparam initializers index the raw [7:0] value instead of the declared range." + }, + { + "suite": "sv", + "name": "indexed_select::constant_parameter_initializers_preserve_unknown_indices", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X21", + "note": "checks=0x30 (expected 0x3ff) and indexed_width=5 (expected 8). In a probe every x/z-indexed constant select (W[1'bx][5], W[1][1'bz], W[IDX][7:4], W[1][1'bx +: 2]) is 0 instead of x, W[IDX +: 1] has width 1 instead of 4, and even in-range W[1][5]/W[0][5:4] of the [1:0][7:4] parameter are wrong (0/00 instead of 1/11, X20)." + }, + { + "suite": "sv", + "name": "indexed_select::constant_parameter_initializers_short_circuit_repetitions_and_selections", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X20", + "note": "checks=0x37: only C = UP[3] || ... fails. UP is localparam logic [3:4] = 2'b10, so UP[3] is the MSB (1); xezim reads raw bit 3 of the 2-bit value (out of range, 0), the declared-range defect X20. The short-circuit and ** parts pass." + }, + { + "suite": "sv", + "name": "indexed_select::constant_part_select_indices_of_signed_slices", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X23", + "note": "direct/casted/widened/wrapped/registered read x and contents shows mem[-1]/mem[-2] as x. Every continuous-assignment read of a negative index of logic [7:0] mem [-2:1] is x under xezim, even the constant mem[-2]. The same reads in an initial block return the stored element." + }, + { + "suite": "sv", + "name": "indexed_select::constant_part_select_indices_read_and_write_unpacked_arrays", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X22", + "note": "Only up = mem[ascending[2:3]] fails (0x24 for expected 0x12, index bits swapped): ascending is an input port declared logic [0:7], and xezim returns a part-select of an ascending-range input port in reversed bit order (asc[2:3]=10 for 8'h1b, expected 01). The same select of a local logic [0:7] variable is right." + }, + { + "suite": "sv", + "name": "indexed_select::indexed_constants_respect_declared_parameter_indices", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X20", + "note": "xezim ignores the declared range of a parameter in selects: down/up/selected_width are x and written=0x12XX (expected 0xa, 0xa, 2, 0x123e): BASE[4] / UP[7] / W[5:4] of localparams declared [7:4] / [4:7] read raw bits outside the [3:0] storage. The repro shows D[7:4] of [11:4] D = 8'hab giving 0xa and an instantiated module's assign r = P[4 +: 2] (P [7:4]) giving xx." + }, + { + "suite": "sv", + "name": "indexed_select::indexed_constants_work_in_ordinary_selection_indices", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X20", + "note": "xezim ignores the declared range of a parameter in selects: all selects use P[4 +: 2] of localparam logic [7:4] P; xezim yields x for direct_bit/concat_bit/repeated_bit/compound_bit/range_value, 0 for {P[4 +: 2]{1'b1}}, and the procedural write misses (0xa4 instead of 0xa0). The repro shows D[7:4] of [11:4] D = 8'hab giving 0xa and an instantiated module's assign r = P[4 +: 2] (P [7:4]) giving xx." + }, + { + "suite": "sv", + "name": "indexed_select::indexed_functions_preserve_selected_arguments", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X20", + "note": "xezim ignores the declared range of a parameter in selects: only offset_width fails (x, expected 3): $clog2(OFFSET[5:4]) with localparam logic [7:4] OFFSET reads raw bits 5:4 (out of range). The repro shows D[7:4] of [11:4] D = 8'hab giving 0xa and an instantiated module's assign r = P[4 +: 2] (P [7:4]) giving xx." + }, + { + "suite": "sv", + "name": "indexed_select::indexed_generate_parameters_retain_local_metadata", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X20", + "note": "xezim ignores the declared range of a parameter in selects: down/up/masked give x and derived 4 (expected 0xa), loop_value x: BASE[4], UP[7], MASK[4 +: 3], LOCAL_BASE[4 +: 4] of [7:4]/[4:7] localparams index the raw value. The repro shows D[7:4] of [11:4] D = 8'hab giving 0xa and an instantiated module's assign r = P[4 +: 2] (P [7:4]) giving xx." + }, + { + "suite": "sv", + "name": "indexed_select::indexed_initializers_preserve_four_state_parameters", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X20", + "note": "xezim ignores the declared range of a parameter in selects: high=0 (Z[8 +: 4] of logic [11:4] Z = 8'haz, expected 0xa) and port_value=x (Child Q = P[4 +: 4] of [11:4] P = 8'hxa reads raw bits 7:4 = x, expected 0xa). The repro shows D[7:4] of [11:4] D = 8'hab giving 0xa and an instantiated module's assign r = P[4 +: 2] (P [7:4]) giving xx." + }, + { + "suite": "sv", + "name": "indexed_select::indexed_parameter_initializers_resolve_enum_constants", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X20", + "note": "xezim ignores the declared range of a parameter in selects: enum_dependent=0 (expected 0xa): OFFSET_Q = OFFSET_P[(E+4) +: 4] with logic [11:4] OFFSET_P reads raw bits 11:8 (out of range) instead of declared bits 11:8. The repro shows D[7:4] of [11:4] D = 8'hab giving 0xa and an instantiated module's assign r = P[4 +: 2] (P [7:4]) giving xx." + }, + { + "suite": "sv", + "name": "indexed_select::indexed_parameter_ports_preserve_declared_ranges", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X20", + "note": "xezim ignores the declared range of a parameter in selects: down/specialized/header = 0 (expected 0xa, 0xc, 0xa): P[8 +: 4] of parameter logic [11:4] P in localparam and parameter-port initializers reads the raw value out of range. The repro shows D[7:4] of [11:4] D = 8'hab giving 0xa and an instantiated module's assign r = P[4 +: 2] (P [7:4]) giving xx." + }, + { + "suite": "sv", + "name": "indexed_select::indexed_select_parameterized_generate_and_ff", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X24", + "note": "selected_size=0 (expected 4): localparam SELECTED_SIZE = $size(data[WIDTH +: WIDTH]) in the instantiated Top evaluates to 0. In the repro the same localparam gives 4 in the top-level module and 0 in an instantiated child; $size of the whole port is right (16)." + }, + { + "suite": "sv", + "name": "indexed_select::indexed_selections_in_constant_declaration_contexts", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X25", + "note": "width = $bits(y) is 1 (expected 10) for logic [P[4 +: 4]-1:0] y with P = 8'hab: a select of a parameter inside a packed-dimension bound evaluates wrong (also [P[7:4]-1:0], also in a top-level module), while localparam Q = P[4 +: 4] and the enum E = P[4 +: 4] are right (enumeration passes)." + }, + { + "suite": "sv", + "name": "indexed_select::indexed_size_queries_preserve_parameter_dimensions", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X20", + "note": "packed_down/packed_up/outer_down/outer_up/selected_bit are 0/1 instead of 0xb/0xb/0xa/0xa/1: selects of OFFSET [2:1][7:4] and UP [1:2][4:7] ignore the declared ranges (X20). invalid_is_x=0 and overhang_checks=0 are the out-of-range→x defect (X21). signed_value=1 / unsigned_part=0 (expected -1/15) come from SIGNED[0][0] of nibble_t [1:0][1:0] selecting one bit instead of a signed nibble element (X26, also wrong procedurally)." + }, + { + "suite": "sv", + "name": "indexed_select::indexed_unsigned_bases_cross_zero", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X22", + "note": "minus=x, plus=x and wrapped_base=5 (expected 2, 2, 0xa) for selects of input logic [3:-4] data. In the repro the same selects of a local logic [3:-4] copy are right (2 2), and a top-level variable gives 2 2 a. Only selects of an input port declared with a non-[n-1:0] range are wrong: they follow the connected actual's [7:0] layout." + }, + { + "suite": "sv", + "name": "indexed_select::nested_array_indices_preserve_cast_widths", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X23", + "note": "direct, wrapped, q read x whenever the signed index selects mem[-2]/mem[-1], and contents shows written[-1]/written[-2] as x: continuous-assignment reads of negative indices of the [-2:1] unpacked arrays give x (X23). The nonnegative elements and the always_comb writes are right." + }, + { + "suite": "sv", + "name": "indexed_select::out_of_range_inner_indices_stay_in_their_element", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X29", + "note": "For j=4..7, b = t[0][j] reads a bit of t[1] (0/1, expected x) and the always_comb write x[0][j] = 1 sets bits 4..7 (v=0x10..0x80, expected 0). In continuous assignments and always_comb, xezim flattens an out-of-range inner index of logic [1:0][3:0] into the neighbouring element; the same statements in an initial block give x / no write. (Icarus has the same flattening procedurally; Verilator reports unsupported.)" + }, + { + "suite": "sv", + "name": "indexed_select::out_of_range_inner_indices_stay_in_their_multidimensional_unpacked_element", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X28", + "note": "n = u[j][k][i] reads x for in-range indices (expected 0 and 1). In the repro, a continuous assignment u[j][k] of logic [1:0][3:0] u [4] reads 0001 instead of 1111 and u[j][k][i] reads x, while the same selects in an initial block are right. xezim also warns that port i was 'left out as unobserved', but XEZIM_KEEP_PORTS=1 does not change the result." + }, + { + "suite": "sv", + "name": "indexed_select::runtime_indexed_reads_follow_the_declared_direction", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X22", + "note": "bit_up, up_plus, up_minus are wrong (e.g. up[i +: 8] 0x99 instead of 0x5d) while all down[...] reads pass. up is an input port declared logic [0:31], and xezim's selects of an ascending input port follow the [31:0] layout of the connected actual (reversed bit order)." + }, + { + "suite": "sv", + "name": "indexed_select::runtime_indexed_writes_keep_unselected_bits_and_clip_overhang", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X30", + "note": "minus_write=0 at i=0 (expected 0xa5): in always_comb, minus_write = base; minus_write[i -: 2] = 2'b10 with i=0 (bits 0..-1, bit -1 outside) clears the whole variable. The repro shows the same 00 result in always_comb and the correct a5 in an initial block." + }, + { + "suite": "sv", + "name": "indexed_select::signed_indices_access_clocked_negative_range_arrays", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X23", + "note": "direct/wrapped read x and contents shows mem[-1]/mem[-2] as x (expected 0x22 etc.). This is not bug E: declaring the testbench's i_c as logic signed [1:0] in a copy leaves the same 10 failures. Continuous-assignment reads of negative indices of mem [-2:1] give x (X23)." + }, + { + "suite": "sv", + "name": "interfaces::binds_implicit_named_interface_arrays_in_generate_scopes", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X20", + "note": "The generate block `inner` declares its own `Bus iface[2]` and connects `Writer w(.iface, ...)`; xezim binds the implicit .iface to the module-scope iface, so the inner writer (x=~x) drives the outer array and y = 0xff instead of 0x01 for x=0. Rewriting the inner connections as .iface(iface) makes it correct, and the same happens with plain variables." + }, + { + "suite": "sv", + "name": "interfaces::binds_interface_array_ports_in_declaration_order", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X21", + "note": "Lane lanes[3:2] is connected to Writer's `Lane.writer lanes[N]` (N=2, i.e. [0:1]); xezim matches elements by equal index numbers, so with no lanes[0]/[1] in the actual nothing gets connected (lanes[3/2].value = xx, y = 0 instead of 0x0001). With actual [1:0] the elements are swapped; an explicit range slice actual is remapped correctly." + }, + { + "suite": "sv", + "name": "interfaces::binds_local_interfaces_before_dependent_declarations", + "status": "mismatch", + "classification": "suite_issue", + "note": "The design sets `localparam SIZE = cfg.N;` where cfg is a local interface instance; 6.20.2 says a value parameter (parameter, localparam or specparam) can only be set to literals, parameters, genvars, enum names or constant functions of them, and 'Hierarchical names are not allowed'. The case is therefore not a valid design under the LRM. (xezim does not diagnose it and silently evaluates cfg.N to 0 here, giving width 2; with SIZE=5 and next_cfg.N replaced by 6 the case passes.)" + }, + { + "suite": "sv", + "name": "interfaces::connects_interface_array_slices_in_declaration_order", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X22", + "note": "Reader u(.lanes(descending[3 +: 2])) gets nothing connected: up = 0 instead of 0x0403 for x=0. Range slices (descending[6:5], descending[5:2]) work; replacing every +:/-: slice with the equivalent range in a copy makes the whole case pass." + }, + { + "suite": "sv", + "name": "interfaces::connects_multidimensional_interface_array_slices", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X21", + "note": "Row r(.lanes(grid[0])) passes row 0 of grid[-1:0][4:2] to `lanes[8:6]`; xezim matches by index number, so nothing connects and row = 0 instead of 0x030405. With grid[0][4:2] (range slice) row is correct. The later `second` port uses grid[0][4 -: 2] and is also lost (sv_rest-X22)." + }, + { + "suite": "sv", + "name": "interfaces::distinguishes_interface_dependency_bindings", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X24", + "note": "In the instantiated Top, `localparam S = $bits(packet.later)` evaluates to 0 instead of 13, so first.N = 7+5+0+11 = 23 instead of 36. The same declaration in a top-level module gives 13; the names `later`/`word_t` shadowing is not involved (deleting the interface instances does not change S)." + }, + { + "suite": "sv", + "name": "interfaces::distributes_array_port_connections_to_interface_arrays", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X25", + "note": "blocks[1:0](.value(inputs)) distributes elements of `logic [1:0] inputs[2][2]` (driven by continuous assigns); `assign members = {blocks[1].value[0], ...}` stays z (got 0xz, expected 0) even though a direct hierarchical read of blocks[1].value[0] returns the right value. With always_comb drivers the readers are still never updated (x)." + }, + { + "suite": "sv", + "name": "interfaces::distributes_multidimensional_connections_to_interface_arrays", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X25", + "note": "With `Wire grid [2:1][4:3](.value(data), ...)` the parent's `assign members = {grid[2][4].value, ...}` never updates (0xx), while y and a direct read of grid[i][j].value are correct. The same design with a one-dimensional grid [3:0] works." + }, + { + "suite": "sv", + "name": "interfaces::distributes_packed_connections_to_interface_arrays", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X27", + "note": "Pair has a parameter-dependent port `logic [W-1:0] value`; xezim broadcasts the whole truncated 4-bit actual to every element instead of giving each a 2-bit part-select, so ascending_members = 0xf instead of 0x3 (both elements read 11). Fixing widths to [1:0] in a copy then exposes sv_rest-X26 (ascending actual logic [0:3] distributed in reverse: selected_words 0xc vs 0x3), and fixing that too exposes sv_rest-X28 (generated_bits X: outputs to g[k*2 +: 2])." + }, + { + "suite": "sv", + "name": "interfaces::drives_interface_array_slices_through_generated_relays", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X22", + "note": "Relay r(.lanes(lanes[5 -: 4])) and Writer w(.lanes(lanes[10+n*2 +: 2])) use indexed part-select slices of interface arrays, which xezim leaves unconnected (y = x). Replacing them with lanes[5:2] and lanes[10+n*2:11+n*2] in a copy makes the case pass." + }, + { + "suite": "sv", + "name": "interfaces::propagates_interface_dependent_ports", + "status": "mismatch", + "classification": "lrm_ambiguous", + "note": "The port list declares `output logic [base.N-1:0] x` where base is a local interface instance. Reading 1: A.8.4 constant_primary allows parameters only through package/class scope or generate-block prefixes (ps_parameter_identifier, A.9.3), and 6.20.2 forbids hierarchical names in parameter values, so a hierarchical interface-parameter reference in a range is not a constant expression. Reading 2: 11.2.1 allows 'parameters' as operands, 25.10 makes interface localparams/parameters accessible by hierarchical name, and tools (Celox, Verilator) accept it. xezim accepts it silently with base.N = 0 (x = 3, width 2 bits); with base.N replaced by 5 the case passes." + }, + { + "suite": "sv", + "name": "interfaces::rewrites_nested_references_and_keeps_declaration_functions", + "status": "mismatch", + "classification": "lrm_ambiguous", + "note": "`Lane rows [cfg.N] ();`, the generate bound `i < cfg.N` and `rows[cfg.N - 1]` use a parameter of a local interface instance in constant expressions; same two readings as for propagates_interface_dependent_ports (A.8.4/A.9.3 and 6.20.2 vs 11.2.1/25.10). xezim takes cfg.N as 0, so last = x; with cfg.N replaced by 3 the whole case passes (the function and modport rewrites work)." + }, + { + "suite": "sv", + "name": "interfaces::runs_interface_processes_once_per_array_element", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X25", + "note": "`assign t10 = grid[1][0].sum` reads an element of a two-dimensional interface array `Acc grid[2][2]`; it stays x even though a direct read gives grid[1][0].sum = 2 (a=0, b=2). The one-dimensional row[] reads (s0, s2) are correct." + }, + { + "suite": "sv", + "name": "latch::hierarchy_same_activation_change_return", + "status": "runtime_error", + "classification": "lrm_ambiguous", + "note": "The startup check expects the Latch's `always @* if (!a) held = held + 1` not to run at time 0, but its input is net b driven by `assign b = a`; xezim starts the @* process first and then b's time-0 update from its default z to 0 wakes it (traced: 'wake t=0 a=0'), so q = 1. Reading 1: 6.7.1 'Nets with drivers shall assume the output value of their drivers', so there is no time-0 change event. Reading 2: a net's default initialization value is z (6.7.1) and the continuous assignment is evaluated at time 0 in arbitrary order with the always process (4.7), so the event may or may not be seen. Separately, xezim also misses the later a=1;a=0 pulse (q stays 1 instead of incrementing, sv_rest-X29)." + }, + { + "suite": "sv", + "name": "latch::same_activation_change_return", + "status": "runtime_error", + "classification": "xezim_bug", + "bug": "sv_rest-X29", + "note": "After `a = 1; a = 0;` in one activation, `always @* if (!a) qc = qc + 1` is not resumed (qc = 0, expected 1), while the always_latch increments (ql = 2). Isolated: processes waiting on @(a)/@* whose body is not pure combinational miss a change that returns to the old value before they run; Icarus gives the expected 1." + }, + { + "suite": "sv", + "name": "latch::star_unpacked_select_sensitivity", + "status": "runtime_error", + "classification": "lrm_ambiguous", + "note": "`always @* if (mem[0][0] == 0) q = 1;` with `logic [7:0] mem[0:1][0:1]`: the case expects a write to mem[1][1] to wake the process; xezim makes it sensitive to mem[0][0] only (q stays 0); Icarus and Verilator wake it. Reading 1: 9.4.2.2 adds 'all net and variable identifiers' read, i.e. the whole mem (always_comb, 9.2.2.2.1, is the one limited to longest static prefixes). Reading 2: 9.4.2 requires event expressions to be singular, so @(mem) of an unpacked array is not a legal event expression and the only legal implicit event is the singular select mem[0][0]." + }, + { + "suite": "sv", + "name": "operators::casts_preserve_guarded_division_signedness", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The signed formal port(s) a (signed [12:0]), b (signed [3:0]) are connected to unsigned testbench actuals; xezim takes the actual's signedness (bug E), so sign extension/signed arithmetic is wrong (quotient 32'(a/b) expected 0xfffffffa, got 0xff9). Declaring the testbench actual(s) signed in a copy makes the whole case pass." + }, + { + "suite": "sv", + "name": "operators::casts_preserve_guarded_division_unknowns", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The signed formal port(s) a, b are connected to unsigned testbench actuals; xezim takes the actual's signedness (bug E), so sign extension/signed arithmetic is wrong (quotient expected 0xfffffffa, got 0xff9). Declaring the testbench actual(s) signed in a copy makes the whole case pass." + }, + { + "suite": "sv", + "name": "operators::converts_function_arguments_using_actual_signedness", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The signed formal port(s) signed_value (signed [7:0]) are connected to unsigned testbench actuals; xezim takes the actual's signedness (bug E), so sign extension/signed arithmetic is wrong (pass_signed(signed_value) expected 0xff80, got 0x80). Declaring the testbench actual(s) signed in a copy makes the whole case pass." + }, + { + "suite": "sv", + "name": "operators::multidimensional_packed_declared_ranges", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X40", + "note": "indexed = mixed[-1 +: 2] on logic [-2:2][6:1] selects two 6-bit elements (bits [23:12] of 0x12345678 = 0x345); xezim evaluates the indexed slice inside always_comb as a 2-bit bit part-select and returns 0x2. Replacing it with the equivalent mixed[-1:0] in a copy makes the case pass." + }, + { + "suite": "sv", + "name": "operators::multidimensional_packed_declared_ranges_four_state", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X40", + "note": "indexed = mixed[-1 +: 2] on logic [-2:2][6:1] selects two 6-bit elements (bits [23:12] of 0x12345678 = 0x345); xezim evaluates the indexed slice inside always_comb as a 2-bit bit part-select and returns 0x2. Replacing it with the equivalent mixed[-1:0] in a copy makes the case pass." + }, + { + "suite": "sv", + "name": "operators::parameter_size_casts_in_generate_conditions", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X41", + "note": "W'(-1) with W=3 keeps the signedness of -1 (6.24.1), so the generate condition W'(-1) < 0 is true and signed_test should be 1; xezim evaluates the parameter-sized cast as unsigned in constant expressions and picks the else branch (got 0). The literal-sized 3'(-1) and the procedural evaluation are correct in xezim." + }, + { + "suite": "sv", + "name": "operators::partial_word_shift_sign_x_65", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The signed formal port(s) a (signed [64:0]) are connected to unsigned testbench actuals; xezim takes the actual's signedness (bug E), so sign extension/signed arithmetic is wrong (a >>> n does not replicate the X sign bit; expected and got print alike only because %h collapses the top digit). Declaring the testbench actual(s) signed in a copy makes the whole case pass." + }, + { + "suite": "sv", + "name": "operators::partial_word_shift_sign_z_65", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The signed formal port(s) a (signed [64:0]) are connected to unsigned testbench actuals; xezim takes the actual's signedness (bug E), so sign extension/signed arithmetic is wrong (a >>> n does not replicate the Z sign bit). Declaring the testbench actual(s) signed in a copy makes the whole case pass." + }, + { + "suite": "sv", + "name": "operators::preserves_power_signedness_in_arithmetic", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X42", + "note": "The power's type follows its base only (Table 11-21); xezim makes 2**4 unsigned inside continuous-assignment division and makes any power with an unsigned exponent unsigned: div = $signed(diff)/2**4 expected 0xffffffe8, got 0x0fffffe8; signed_power = ($signed(base)**exponent)/2 expected 0xfffffff3, got 0x7b8d72. Replacing 2**k with 32'sdN and the unsigned exponent with $signed({1'b0,exponent}) in a copy makes the case pass." + }, + { + "suite": "sv", + "name": "operators::preserves_power_signedness_in_four_state_arithmetic", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X42", + "note": "The power's type follows its base only (Table 11-21); xezim makes 2**4 unsigned inside continuous-assignment division and makes any power with an unsigned exponent unsigned: div expected 0xffffffe8, got 0x0fffffe8; dynamic_mul = $signed(diff)*(2**exponent) expected 0xfffffa00, got 0x7a00. Replacing 2**k with 32'sdN and the unsigned exponent with $signed({1'b0,exponent}) in a copy makes the case pass." + }, + { + "suite": "sv", + "name": "operators::simulates_systemverilog_always_ff_case_calls_and_xz_parameters", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The signed formal port(s) signed_mode (signed [1:0]) are connected to unsigned testbench actuals; xezim takes the actual's signedness (bug E), so sign extension/signed arithmetic is wrong (case (signed_mode) decode_signed(...) item: q_function_signed expected 0xc7, got 0x0). Declaring the testbench actual(s) signed in a copy makes the whole case pass." + }, + { + "suite": "sv", + "name": "operators::simulates_systemverilog_always_ff_case_context_values", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The signed formal port(s) signed_mode, signed_value are connected to unsigned testbench actuals; xezim takes the actual's signedness (bug E), so sign extension/signed arithmetic is wrong (case (signed_mode) NEGATIVE: q_negative expected 0xff, got 0x0). Declaring the testbench actual(s) signed in a copy makes the whole case pass." + }, + { + "suite": "sv", + "name": "operators::simulates_systemverilog_case_equality_operators", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X43", + "note": "With a = 2'b11, a ==? '1 must be 1 ('1 fills the 2-bit context) and a !=? '1 must be 0; xezim returns 0/1 for the wildcard operators while a === '1 is correct." + }, + { + "suite": "sv", + "name": "operators::simulates_systemverilog_hierarchical_parameter_selected_lvalue_ff_intermediate", + "status": "mismatch", + "classification": "adapter_two_state_init", + "note": "Child.next[W-2:1] (W=32) is never written, so q gets X bits under xezim; with the two-state contract it starts 0 and q=0x1 as expected. Adding `logic [W-1:0] next = '0` to a copy of the design makes the whole case pass under xezim with XEZIM_INIT_REG/MEM=0." + }, + { + "suite": "sv", + "name": "operators::simulates_systemverilog_hierarchical_selected_lvalue_ff_intermediate", + "status": "mismatch", + "classification": "adapter_two_state_init", + "note": "Child.next[6:1] is never written, so q gets X bits under xezim; with the two-state contract it starts 0 and q=0x1 as expected. Adding `logic [7:0] next = '0` to a copy of the design makes the whole case pass under xezim with XEZIM_INIT_REG/MEM=0." + }, + { + "suite": "sv", + "name": "operators::simulates_systemverilog_packed_multidimensional_selects", + "status": "mismatch", + "classification": "adapter_two_state_init", + "note": "Only m[1][2] is written, so y = m[1] carries X in the other three bits (got 0xX); under the two-state contract m starts 0 and y=0x4. Adding `logic [1:0][3:0] m = '0` to a copy of the design makes the whole case pass under xezim with XEZIM_INIT_REG/MEM=0." + }, + { + "suite": "sv", + "name": "operators::simulates_systemverilog_selected_lvalue_assignments", + "status": "mismatch", + "classification": "adapter_two_state_init", + "note": "Only z[2] and z[0] are written by the always_comb; z[7:3] and z[1] are never written and stay X under xezim (got 0xx), 0 under the two-state contract (expected 0x5). Adding `output logic [7:0] z = '0` to a copy of the design makes the whole case pass under xezim with XEZIM_INIT_REG/MEM=0." + }, + { + "suite": "sv", + "name": "operators::simulates_systemverilog_selected_lvalue_ff_intermediate", + "status": "mismatch", + "classification": "adapter_two_state_init", + "note": "next[6:1] is never written (only next[7] and next[0] have drivers), so after q <= next it holds X under xezim; with the two-state contract next starts 0 and q=0x1 as expected. Adding `logic [7:0] next = '0` to a copy of the design makes the whole case pass under xezim with XEZIM_INIT_REG/MEM=0." + }, + { + "suite": "sv", + "name": "operators::unknown_logical_operand_evaluates_effectful_right_operand", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X34", + "note": "With u = 0, `u && mark_ff_and()` in always_ff still calls mark_ff_and, so ff_and_hit is 1 instead of 0 (11.4.7 short-circuit)." + }, + { + "suite": "sv", + "name": "operators::wide_arithmetic_shift_preserves_unknown_sign", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "The signed formal port(s) a128 (signed [127:0]) are connected to unsigned testbench actuals; xezim takes the actual's signedness (bug E), so sign extension/signed arithmetic is wrong (y128 = a128 >>> amount loses the Z sign fill). Declaring the testbench actual(s) signed in a copy makes the whole case pass." + }, + { + "suite": "sv", + "name": "packed_structs::packed_struct_alias_packed_dimensions", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X30", + "note": "`typedef t [1:0] pair_t; pair_t value;` (t a packed struct): xezim returns $size(value) = 16 (and $left = 15) instead of 2, so WIDTHS = 16+16+16 = 48 (0x30) instead of 34 (0x22). Declaring `t [1:0] direct` without the typedef gives 2." + }, + { + "suite": "sv", + "name": "packed_structs::packed_struct_bounds_and_type_queries", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X24", + "note": "In the instantiated Top, `localparam BITS = $bits(alias_t) + $bits(value.a) + $bits(value.m) + $size(value.m) + $size(value.m[0])` gives 16 instead of 34: every query on a member select of the struct variable is 0 in the localparam (16+0+0+0+0); at run time the same queries give 4, 8, 2, 4, and as a top-level module the localparam is right." + }, + { + "suite": "sv", + "name": "packed_structs::packed_struct_layout_and_nested_fields", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X31", + "note": "`logic signed [3:0] delta` in packed header_t is read as unsigned: assign delta = packet.header.delta into logic signed [7:0] gives 0x08 instead of 0xf8 for raw=0xa8ff (field value 4'h8). Icarus sign-extends. This is not bug E (no input port is involved; the field is read inside the module)." + }, + { + "suite": "sv", + "name": "packed_structs::packed_struct_whole_value_signedness", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X31", + "note": "`assign signed_member = u.high` where u.high is `logic signed [3:0]` in an unsigned packed struct; the 16-bit output gets 0x0008 instead of 0xfff8 for raw=0x80. The signed whole-struct (struct packed signed) cases pass." + }, + { + "suite": "sv", + "name": "procedural::aggregate_parameters_are_constant_tables", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X32", + "note": "`localparam pair_t PAIR = pair_t'{hi: 4'd9, lo: 4'd6}` evaluates to 0 with x members in the instantiated Top, so member = X (expected 6). As a top-level module PAIR = 0x96; the unpacked TABLE/NESTED parameters work." + }, + { + "suite": "sv", + "name": "procedural::concatenated_targets_fix_their_positions_first", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X33", + "note": "`{data[i], other[bump(i, i)]} = 2'b11;` calls bump with output formal `after` bound to i; xezim never copies the output back to i inside a concatenation lvalue, so index = 0 instead of 1 for k=0. The same call in a plain lvalue index or RHS updates i; data/other are right." + }, + { + "suite": "sv", + "name": "procedural::select_index_calls_run_as_written", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X34", + "note": "In always_ff, `bits[c ? tick(calls, calls) : 2'd3] = 1'b1` with c=0 still calls tick in the unselected arm, so ff_count = 4 instead of 3. The same statement in initial/always_comb is correct (mux_count passes)." + }, + { + "suite": "sv", + "name": "procedural::static_function_four_state_result_retains_unknown_and_known_values", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X35", + "note": "Static function `remember` assigns its result only for 0/1; after a call with 1, a call with x should return the retained 1 (static result variable), but xezim's continuous-assignment call returns x. From an initial procedure the result is retained." + }, + { + "suite": "sv", + "name": "procedural::static_function_output_formals_keep_value", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X35", + "note": "Static void function `remember` returns before writing output formal `saved` when enable=0; the static formal keeps 37 and should be copied out, but xezim copies out 0 (result 0 instead of 0x25). Reproduced also from an initial procedure (o2 = 0, expected 37)." + }, + { + "suite": "sv", + "name": "procedural::static_function_result_keeps_value_between_calls", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X35", + "note": "`function static bit [15:0] saved` writes its result only when write_value=1; called from always_ff with update=0 after storing 23, xezim returns 0 instead of 23 (0x17). From an initial procedure the result is retained (23,23)." + }, + { + "suite": "sv", + "name": "random_plusargs::dist_uniform_converts_wide_and_signed_seeds_to_int_formals", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X11", + "note": "The case compares three $dist_uniform calls with seeds longint 64'h12345678ffffffff, shortint -1 and int -1, all of which convert to the integer seed -1. xezim reads the shortint seed as 65535 (b=52 vs a=c=20, narrow written back 16'h1000), so a==b fails; the longint seed behaves correctly." + }, + { + "suite": "sv", + "name": "random_plusargs::dist_uniform_reference_sequence", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X10", + "note": "$dist_uniform(seed=17,-17,23) must give -17 and seed 1174174 per Annex N; xezim gives 0 and 4596240 (and all later values differ). Icarus reproduces the expected sequence." + }, + { + "suite": "sv", + "name": "real_math::constant_functions", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X12", + "note": "In localparam initializers, $ln, $log10, $exp, $pow, trig/hyperbolic functions and $hypot evaluate to 0.0 in xezim (e.g. M0=$ln(2.0) is 0, CHOSEN=$ln($exp(0.25))?7:9 is 9); only $sqrt/$floor/$ceil work. The same calls at run time are correct." + }, + { + "suite": "sv", + "name": "review_regressions::body_parameters_are_local_with_a_parameter_port_list", + "status": "unexpected_accept", + "classification": "xezim_bug", + "bug": "sv_rest-X60", + "note": "With a parameter_port_list, the body `parameter P` is a localparam and the #(.P(205)) override in parameters.sv must be rejected. xezim enforces this only when the module and the overriding instance are in one file; with the instance in a separate file it elaborates and applies the override (p=cf). Icarus and Verilator reject." + }, + { + "suite": "sv", + "name": "review_regressions::default_pattern_fills_each_element_of_unpacked_subarrays", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X61", + "note": "c = '{default: b} with int c[2][2] and int b[2] must assign b to each subarray (subarray type matches the value's type), so z00 = d = 0x20. xezim leaves all elements 0. The y00..y11 asserts before it pass; the y part is fine." + }, + { + "suite": "sv", + "name": "review_regressions::folds_compound_four_state_case_labels", + "status": "mismatch", + "classification": "lrm_ambiguous", + "note": "The only failing item is the label (1'bx ? 1'bz : 1'bz) when s=z (expected ~a, xezim keeps the old y=0). xezim folds the label to x per Table 11-20 (z,z -> x); the suite (and Icarus) read it as z because both operands are identical. 11.4.11 applies Table 11-20 only when the operands are 'not logically equivalent', and does not say whether z and z are logically equivalent (z==z is x), while the table explicitly lists z/z -> x." + }, + { + "suite": "sv", + "name": "review_regressions::int_parameters_are_signed_in_comparisons_and_loop_bounds", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "Port `input int lo` connected to unsigned `logic [31:0] i_lo` = 0xfffffffe is treated as unsigned, so lo < S (S=2) is false (lt_s expected 1, got 0). Changing the testbench actual to `logic signed [31:0] i_lo` makes the whole case pass." + }, + { + "suite": "sv", + "name": "review_regressions::lowers_parameter_casts_in_conditional_generate", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X62", + "note": "select_t'(4) with select_t = logic [1:0] (W=2) is 2'b00, so the nested generate takes the `selected` branch and comb_y follows data. xezim's constant evaluation ignores the typedef cast width (4 -> true) and elaborates `disabled` (comb_y=0). Replacing select_t'(4) by 1'b0 makes the case pass." + }, + { + "suite": "sv", + "name": "review_regressions::normalizes_function_parameter_cast_dimensions", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X63", + "note": "All six functions take formals with ranges not based at 0 ([8:1], [1:8], typedef [W'(8):W'(1)]) and are called from always_comb; with data=0x40 each should return data[6]=1 (y=0x3f). xezim, inside always_comb/always @*/assign, indexes the formal as if it were [7:0] (x[7] reads d[7]), giving y=0; the same call from an initial block is right." + }, + { + "suite": "sv", + "name": "review_regressions::preserves_four_state_arithmetic_case_constants", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X65", + "note": "Only y11 fails: case (+(2'b1z)) with label 2'bxx. Unary plus is an arithmetic operator, so any x/z operand bit makes the whole result x (xx). xezim (and Icarus) return 2'b1z unchanged, so the label does not match and y11 stays X. Replacing that selector by 2'bxx makes the case pass." + }, + { + "suite": "sv", + "name": "review_regressions::preserves_four_state_equality_case_selectors", + "status": "mismatch", + "classification": "lrm_ambiguous", + "note": "Only y8 fails: case ((1'bx == 1'bx) ? 1'bz : 1'bz) with label 1'bz. The condition is x; xezim combines z and z per Table 11-20 into x, so the label 1'bz does not match (y8=X); the suite and Icarus treat identical operands as 'logically equivalent' and yield z. Same open reading of 11.4.11 as folds_compound_four_state_case_labels." + }, + { + "suite": "sv", + "name": "review_regressions::preserves_four_state_shift_and_bit_select_constants", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X64", + "note": "Only y1 fails: case (4'sbz101 >>> 2) with the unsigned label 4'b00z1. 12.5 makes all case expressions unsigned when any is unsigned, so >>> is a logical shift giving 00z1. xezim evaluates the case expression signed (zzz1), so it does not match and y1 stays X. Replacing the selector with 4'b00z1 makes the case pass." + }, + { + "suite": "sv", + "name": "review_regressions::preserves_use_site_dimensions_in_function_alias_types", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "sv_rest-X66", + "note": "xezim rejects the valid non-ANSI formal `input nibble_t [2:1] x;` with 'Undeclared identifier x' (build.log line 19). With that declaration rewritten as `input logic [2:1][3:0] x;` it builds, then high_y = high(data) with formal nibble_t [2:1] reads x (expected 0xa, got x), which is sv_rest-X63 (a formal range not based at 0, called from always_comb)." + }, + { + "suite": "sv", + "name": "review_regressions::resolves_generate_local_alias_casts_for_all_processes", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X62", + "note": "localparam S = select_t'(4) (select_t = logic [1:0]) must be 2'b00, so `if (S)` selects `selected` and comb_y follows data. xezim evaluates S=4 (32 bits), picks `disabled`, comb_y=0. Replacing select_t'(4) by 1'b0 makes the case pass." + }, + { + "suite": "sv", + "name": "scan::sscanf_integral_fields_and_failure_counts", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X15", + "note": "' 12,99 ffQ' with '%2d,%*d %h%c' gives n=1 (a=12, b=c=0) in xezim: scanning stops after the suppressed %*d (expected n=3, b=255, c=81). Also $sscanf('', '%d', keep) returns 0 instead of EOF -1 (sv_rest-X16)." + }, + { + "suite": "sv", + "name": "scan::sscanf_radix_unknowns_and_unknown_input", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X17", + "note": "xezim does not accept x/z digits: '1z' with %h gives 8'h01 (expected 8'h1z), 'x' with %d and 'z' with %b return 0 (expected 1, xx/zz). An unknown str (32'hx) returns 0 instead of EOF -1 (sv_rest-X16)." + }, + { + "suite": "sv", + "name": "scan::sscanf_real_fields_width_and_suppression", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X15", + "note": "'3.5e1,2.25' with '%*g,%f' returns 0 and leaves b unchanged in xezim (expected 1, 2.25): the suppressed conversion stops the scan. $sscanf('', '%f', keep) returns 0 instead of EOF -1 (sv_rest-X16)." + }, + { + "suite": "sv", + "name": "string::casts_from_integral_values", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X18", + "note": "s = \"x\\0y\" must drop the \\0 (len 2, 'xy'); xezim keeps the NUL (len 3, prints 'x y'). The string'(word) cast line matches." + }, + { + "suite": "sv", + "name": "synthesizable::instance_arrays_reject_a_fill_literal_tie_off", + "status": "unexpected_accept", + "classification": "lrm_ambiguous", + "note": "Pass u[1:0](.b('0)) on an 8-bit port: 23.3.3.5 requires the connection to match one instance port or all instances, and 5.7.1 gives '0 a width of 1 bit only 'in a self-determined context'. The suite reads the instance-array connection size as self-determined (1 bit -> error, Verilator agrees); xezim treats '0 as filling the port it connects to, the way it does for a single instance (23.3.3.2), and the LRM does not say which context applies to the 23.3.3.5 size check." + }, + { + "suite": "sv", + "name": "synthesizable::instance_arrays_reject_an_unsized_constant_tie_off", + "status": "unexpected_accept", + "classification": "xezim_bug", + "bug": "sv_rest-X67", + "note": "The unsized constant 0 is 32 bits, neither the 8-bit port nor the 16 bits of both instances, which 23.3.3.5 calls an error ('Too many or too few bits'). xezim only warns about a width mismatch and elaborates. Icarus and Verilator reject." + }, + { + "suite": "sv", + "name": "synthesizable::named_calls_in_constant_contexts", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X68", + "note": "In the non-top module Top, f(.b(2), .a(3)) used as a constant (localparam and packed dimension) evaluates to 0, so word_value is [-1:0] and y = 0x1 instead of 0x80000001. With the calls rewritten positionally the y/ok asserts pass, and then query fails (0x11 instead of 0x10) because $unpacked_dimensions(f(3)) returns 1 (sv_rest-X71)." + }, + { + "suite": "sv", + "name": "synthesizable::named_calls_preserve_defaults_and_declaration_scope", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X68", + "note": "localparam N = f(.b(3)) (a = default 7) must be 73 = 0x49; xezim's constant evaluation of the named call gives 0 (constant_value got 0x0). The runtime named calls y/z/positional/q pass; with N written as f(7, 3) the whole case passes." + }, + { + "suite": "sv", + "name": "synthesizable::named_calls_respect_generate_signatures", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X69", + "note": "The module-level call f(.a(x)) must call the module's f (a+1 = 4), but xezim binds it to the f declared in generate block `scoped` (b+10, with b unbound -> 10 = 0xa). After renaming the inner function, outer_y is still wrong (1) because a continuous assignment whose operand is only a named argument does not re-evaluate when x changes (sv_rest-X70)." + }, + { + "suite": "sv", + "name": "synthesizable::type_parameter_bindings_preserve_alias_dimensions", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X72", + "note": "Child #(.T(nibble_t [N-1:0])) should make T 8 bits; xezim ignores this override and uses the default logic signed [3:0] (t_bits=4). With T written as logic signed [N-1:0][3:0], u_bits still fails (8 instead of 16) because the default U = T [1:0] also drops its packed dimensions. Both come from one defect: a type identifier followed by packed dimensions in a type parameter." + }, + { + "suite": "sv", + "name": "synthesizable::type_parameter_bindings_use_caller_scope", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X73", + "note": "In Child #(.T(logic signed [W-1:0])), W must resolve to Top's W=8, but xezim uses Child's own parameter W=2 (literal_width got 2). With W-1 replaced by 7, literal_negative still fails because a signed port U connected to unsigned `a` acts unsigned (bug E). Feeding a signed copy of a as well makes the case pass." + }, + { + "suite": "sv", + "name": "synthesizable::type_parameters_are_bound_by_instantiations", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "Neg #(.T(logic signed [7:0])) has a signed input port connected to the unsigned part-select a[7:0], and xezim treats it as unsigned (signed_neg expected 1 for 0x80, got 0). Connecting a `logic signed [7:0]` copy of a[7:0] makes the case pass. Even a $signed(a[7:0]) actual stays unsigned under xezim." + }, + { + "suite": "sv", + "name": "system_functions::array_queries_handle_runtime_dimensions", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X3", + "note": "For logic [7:4] mem [2:5] the runtime dimension argument 0, 3, 0x08000001, -1 and all-x must give 'x for $left/$right/$low/$high/$increment; xezim returns numbers instead (d=0 acts as dimension 1: l=2 r=5; d=3 gives l=3 r=0). The in-range dimensions 1 and 2 pass." + }, + { + "suite": "sv", + "name": "system_functions::array_queries_preserve_bounds_and_dimensions", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X1", + "note": "selected = $left(mem[0]) + $right(mem[0][7]) + $dimensions(mem[0][7]) must be 8+3+2=13; xezim gives 7 (6+0+1): queries on selects ignore the selected element's type (X1). parameter_value must be 13+9+1=23; in the instantiated Top xezim computes the localparam P as 23 and BL=$left(BOUND) as 0, giving 24 (X4); as the root module P=13, BL=9." + }, + { + "suite": "sv", + "name": "system_functions::bit_vector_predicates_in_constant_expressions", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X32", + "note": "`localparam U = $isunknown(256'hx)` evaluates to 0 in xezim's constant evaluator (runtime $isunknown gives 1), so the generate condition fails and result is 0 instead of 0xa5. H and Z and the runtime `literals` are correct. The constant evaluator drops x/z bits, which is the same defect as the $countbits cases." + }, + { + "suite": "sv", + "name": "system_functions::character_formats_preserve_non_utf8_bytes", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X30", + "note": "Only the `%3s` field of 8'hfe differs: expected two pad spaces then byte 0xfe (`20 20 fe`), xezim writes one space (`20 fe`). xezim measures the field width by the UTF-8 encoded length of the character (0xfe -> 2 bytes) while emitting the raw byte; %3s of 8'h41 pads correctly. 21.2.1.7 makes each 8 bits one character and 21.2.1.2 pads strings to the field width with leading spaces." + }, + { + "suite": "sv", + "name": "system_functions::countbits_in_constant_expressions", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X32", + "note": "In constant context xezim gets X=$countbits(MIXED,'x)=5, Z=5 and K=$countbits(MIXED,'0,'1)=8, where 2, 2 and 4 are expected for MIXED=8'b10xz_11xz. x/z are turned into 0 in both the operand and the control bits, so the generate condition fails and result is 0 instead of 520. The same calls evaluated at runtime are correct (t1..t8 all match), and Icarus and Verilator give 2/2/4." + }, + { + "suite": "sv", + "name": "system_functions::countbits_in_parameter_specializations_and_generate_scopes", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X32", + "note": "Only `scoped` fails (expected 2, got -1). The generate condition `$countbits(MIXED,'x,'z) == 4` is constant-evaluated with x/z turned into 0 (it counts the five 0 bits instead of 4), so the else branch is taken. The runtime counts (c_original=4, extended=5, via_function=4) are correct." + }, + { + "suite": "sv", + "name": "system_functions::dimensions_counts_declared_arrays", + "status": "mismatch", + "classification": "lrm_ambiguous", + "note": "Only scalar = $dimensions(logic s) differs: suite expects 0, xezim returns 1 (Icarus and Verilator return 0); all array, atom and logic [0:0] counts pass. Reading A (suite, Icarus 13, Verilator 5.052): a scalar bit/logic has no packed dimension; 20.7 gives a [n-1:0] dimension only to the predefined-width integer types, and with $dimensions=1 the 20.7 rule that $left etc. return 'x when $dimensions is 0 would leave scalar bounds undefined. Reading B (xezim): 6.11.1 says the Table 6-8 integer types (which include bit and logic) are simple bit vector types, so a scalar is a 'nonarray type equivalent to a simple bit vector type' and 20.7 gives 1." + }, + { + "suite": "sv", + "name": "system_functions::dimensions_is_independent_of_unknown_values", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X4", + "note": "parameter_value = $dimensions(P) for localparam logic [1:0][3:0] P must be 2 and the generate branch on N==2 must give 0x1234; in the instantiated Top xezim evaluates the localparam query to 0, so both fail (X4; the x/z bits are irrelevant: P = 8'h00 also gives 0). scalar_value = $dimensions(a[0][0]) gets 1 vs expected 0 (select ignored, X1; the 0-vs-1 scalar rank is also the lrm_ambiguous scalar question)." + }, + { + "suite": "sv", + "name": "system_functions::dimensions_preserves_one_bit_vectors", + "status": "mismatch", + "classification": "lrm_ambiguous", + "note": "Only scalar_rank = $dimensions(localparam logic SCALAR) and bit_cast_rank = $dimensions(scalar_t'(s)) with typedef bit scalar_t differ: suite expects 0, xezim 1; all one-bit vector forms (1'b0, {s}, '0, logic [0:0], 1'(s)) pass with 1. Both failing operands have scalar type. Reading A (suite, Icarus 13, Verilator 5.052): a scalar bit/logic has no packed dimension; 20.7 gives a [n-1:0] dimension only to the predefined-width integer types, and with $dimensions=1 the 20.7 rule that $left etc. return 'x when $dimensions is 0 would leave scalar bounds undefined. Reading B (xezim): 6.11.1 says the Table 6-8 integer types (which include bit and logic) are simple bit vector types, so a scalar is a 'nonarray type equivalent to a simple bit vector type' and 20.7 gives 1." + }, + { + "suite": "sv", + "name": "system_functions::dimensions_preserves_selected_and_expression_types", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X1", + "note": "For a [1:0][3:0] and memory [0:1][0:2] of that type, $dimensions((a)) must be 2, a[1:0] 2, memory[index] 3, identity(a) (returns logic [1:0][3:0]) 2; xezim returns 1 for every non-identifier operand (parenthesized, slice, select, call, -a, ~a, a<<1). The -a/~a/a<<1 expectations of 2 rely on the operand type being preserved by unary/shift operators (11.8.1 leaves this loose), but the parenthesis/slice/select/call failures are unambiguous. scalar (a[i][0]) 1 vs 0 is also the scalar-rank question." + }, + { + "suite": "sv", + "name": "system_functions::dimensions_resolves_imported_function_returns", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X4", + "note": "localparam N = $dimensions(f()) must be 2 for the imported/qualified package function returning logic [1:0][3:0] and 1 for Child's local logic [7:0] f(); xezim gives 0 for all three: queries in parameter initializers evaluate to 0 in instantiated modules (X4). At run time xezim would still give 1 for any call (X1)." + }, + { + "suite": "sv", + "name": "system_functions::dimensions_resolves_package_array_constants", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X4", + "note": "Package localparams N = $dimensions(A) (A: logic [7:0] [0:1]) and ELEMENT = $dimensions(A[0]) must be 2 and 1; xezim evaluates both to 0 because array queries in package parameter initializers give 0 (PK=0 in the X4 repro, also with Top as root)." + }, + { + "suite": "sv", + "name": "system_functions::dimensions_resolves_preceding_block_declarations", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X6", + "note": "In always_comb, logic [$dimensions(a):0] b with a: logic [7:0] [0:1] must be 3 bits; xezim makes it 2 bits ($dimensions(a) evaluated as 1 in a block-local declaration range), while the runtime first_rank/second_rank (2) pass." + }, + { + "suite": "sv", + "name": "system_functions::dimensions_resolves_procedural_scopes", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X7", + "note": "task query(input logic [7:0] x [0:1]) must give $dimensions(x)*10 + $dimensions(local_array) = 2*10+4 = 24; xezim gives 44 because the always_comb also calls nested(), whose named block declares x [0:1][0:2][0:3], and the formal x resolves to that block-local x (rank 4). Removing the nested() call or calling from initial gives 24." + }, + { + "suite": "sv", + "name": "system_functions::dimensions_resolves_types_and_constant_scopes", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X4", + "note": "In the instantiated Top: $dimensions(memory_t) (typedef pair_t memory_t [0:2][0:3]) 2 vs 4, Child's localparam N = $dimensions(T) 0 vs 2/1, and every dependent value (bits_value ranges 1 vs 7/3, generate condition N==2 so scoped -1 and generated 0) fail from X4. cast_shape pair_t'(8'h5a) 1 vs 2 and real_literal 1 vs 0 are X1, string_type $dimensions(string) 0 vs 1 is X2, local_shape 13 vs 23 is X7 (formal x resolves to the module's logic [7:0] x); scalar_parameter 1 vs 0 is the ambiguous scalar rank." + }, + { + "suite": "sv", + "name": "system_functions::dimensions_signing_conversions_are_vectors", + "status": "mismatch", + "classification": "lrm_ambiguous", + "note": "Only scalar_rank = $dimensions(input logic s) differs (expected 0, xezim 1); all signing conversions (expected 1) and the packed operand (2) pass. Reading A (suite, Icarus 13, Verilator 5.052): a scalar bit/logic has no packed dimension; 20.7 gives a [n-1:0] dimension only to the predefined-width integer types, and with $dimensions=1 the 20.7 rule that $left etc. return 'x when $dimensions is 0 would leave scalar bounds undefined. Reading B (xezim): 6.11.1 says the Table 6-8 integer types (which include bit and logic) are simple bit vector types, so a scalar is a 'nonarray type equivalent to a simple bit vector type' and 20.7 gives 1." + }, + { + "suite": "sv", + "name": "system_functions::dimensions_types_function_pattern_arguments", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X4", + "note": "localparam N = $dimensions(f('{8'h1, 8'h2})) with f returning logic [7:0] must be 1; xezim evaluates it to 0 in the instantiated Top (array queries in parameter initializers give 0, X4). runtime_rank passes (xezim's constant 1 for calls happens to match)." + }, + { + "suite": "sv", + "name": "system_functions::display_arguments_are_sized_as_ieee_specifies", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "Only the last field of line 3 differs: `%d` of `input logic signed [7:0] s` = -2 prints `254` instead of ` -2`. The testbench actual `i_s` is unsigned `logic [7:0]`, and xezim takes the port's signedness from the actual (known bug E). With `i_s` declared `logic signed [7:0]` in a copy, the whole output matches the expectation." + }, + { + "suite": "sv", + "name": "system_functions::display_expressions_propagate_operand_widths", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "Expected `ffffffff -1 ...`, xezim prints `ff 255 ...`: `sa + 1` with `input logic signed [7:0] sa` = 0xfe is evaluated unsigned (8-bit 0xff, 255) because the tb actual `i_sa` is unsigned (bug E). The remaining five fields already match. With `i_sa` declared signed in a copy the output is exactly `ffffffff -1 f7 6d 8031 fb 84`." + }, + { + "suite": "sv", + "name": "system_functions::display_field_flags", + "status": "mismatch", + "classification": "suite_issue", + "note": "The two `%05d` fields differ: suite expects `[00042]` (C-style zero flag, as Icarus does), xezim prints `[ 42]`; every `-` (left-justify) field already matches. IEEE 1800-2023 defines no format flags: 21.2.1.2 only allows a non-negative decimal field width (05 = 5) and says decimal values are padded with leading spaces, so xezim's output is the LRM result. The case itself is labelled as Icarus/Verilator flag compatibility; the zero-pad expectation is a tool extension, not an LRM requirement, and should be tagged as such rather than counted against xezim." + }, + { + "suite": "sv", + "name": "system_functions::isunbounded_binds_procedural_aliases_in_declaration_order", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X42", + "note": "Each block declares localparam int U = $, COPY = U, AGAIN = COPY, so all three $isunbounded must be 1 (7). In the initial block and the always_ff xezim gives 3'b100 (only U), and via_function (query() in a continuous assignment) gives 0 (constant-folded call, X41)." + }, + { + "suite": "sv", + "name": "system_functions::isunbounded_generate_guards_preserve_short_circuit_bounds", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X41", + "note": "In generate block g with localparam int P = $, logic [($isunbounded(P) || P == 0):0] b must be 2 bits; xezim makes it 1 bit because $isunbounded evaluates to 0 in constant expressions (packed range here). and_bits (1) passes." + }, + { + "suite": "sv", + "name": "system_functions::isunbounded_preserves_lexical_scopes_and_short_circuits", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X41", + "note": "function_result = query() where query returns $isunbounded(INNER) for a function-local localparam INNER = $ must be 1; xezim gives 0 when the call is in a continuous assignment (the same call from an initial block returns 1). local_flags and generated pass." + }, + { + "suite": "sv", + "name": "system_functions::isunbounded_preserves_parameter_values_and_result_type", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X40", + "note": "flags must be 8'he0, xezim gives 8'hf8: $isunbounded(FINITE = -1) and $isunbounded(LARGE = 128'h all ones) return 1 (X40). result_bits = $bits(Q) for untyped localparam Q = $isunbounded(U) must be 1, xezim 32 (X43); generated must be 8'h5a, xezim takes the else branch because $isunbounded(U) is 0 in a generate condition (X41)." + }, + { + "suite": "sv", + "name": "system_functions::isunbounded_resolves_package_and_local_parameters", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X41", + "note": "flags must be 4'b1101; xezim gives 4'b1100 because the package localparam bit Q = $isunbounded(U) (U = $) evaluates to 0 (constant context). The runtime $isunbounded(Limits::U), $isunbounded(U), local and registered flags pass." + }, + { + "suite": "sv", + "name": "system_functions::isunbounded_restores_procedural_parameter_type_metadata", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X4", + "note": "outer_rank = $dimensions(P) for parameter logic [2:0][1:0] P must be 2; xezim gives 1 in the instantiated Top (2 as root): runtime queries of parameters lose packed dimensions outside the top module. inner_rank (block localparam logic P) 1 vs 0 is the ambiguous scalar rank question (see dimensions_counts_declared_arrays)." + }, + { + "suite": "sv", + "name": "system_functions::isunbounded_restores_shadowed_function_arguments", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "I0", + "note": "The first check writes data = 0, which equals the zero start value, so no update event re-evaluates `assign y = query(data)`; xezim's time-0 value is 0x0 instead of 0x100 because $isunbounded(P) ignores the block-local `localparam P = $`. After an input change xezim computes 0x101 correctly." + }, + { + "suite": "sv", + "name": "system_functions::printtimescale_displays_unit_and_global_precision", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X31", + "note": "Expected `Time scale of ($unit) is 100ps / 10fs` and `Time scale of ($root) is 10fs / 10fs`; xezim prints `Time scale of (celox_suite_tb) is 1ns / 1ps` for both. xezim ignores the $unit/$root argument and reports the calling instance's name and timescale. 20.4.2 requires the compilation unit's unit/precision for $unit, the simulation time unit for $root, and the names `$unit`/`$root` in the output." + }, + { + "suite": "sv", + "name": "system_functions::printtimescale_preserves_package_subroutine_scope", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X31", + "note": "Expected `Time scale of (P) is 100ns / 10ps` twice. xezim prints `(celox_suite_tb.P) is 1ns / 1ps` for `$printtimescale(P)` and `(celox_suite_tb) is 1ns / 1ps` for the argumentless call inside `P::show`. So xezim reports the calling instance's timescale for a package argument, and for a package subroutine it reports the caller's scope instead of the package. 20.4.2 requires the timescale of the named design element, or of the current scope when no argument is given." + }, + { + "suite": "sv", + "name": "system_functions::random_follows_annex_n_and_updates_its_seed", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X20", + "note": "With start=0 Annex N's rtl_dist_uniform(seed, LONG_MIN, LONG_MAX) gives 303379748 and leaves seed=-1844104698 (Icarus 13 and a C transcription of N.2 agree); xezim returns 1359758873 and writes the same value back into the seed (comb_seed=0x510c4619). Every seeded draw in the case differs; xezim's $random is not the Annex N generator." + }, + { + "suite": "sv", + "name": "system_functions::random_without_a_seed_continues_its_stream", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X20", + "note": "Expected first unseeded draws 303379748 -1064739199 (the zero-seed Annex N stream); xezim prints -375392153 942667852 then 1830663020 -1264564434. An exhaustive search over all 2^32 Annex N seeds finds no seed whose two consecutive $random values are -375392153, 942667852, so xezim's unseeded stream is not Annex N from any starting seed; the result does not depend on how the initial seed is chosen." + }, + { + "suite": "sv", + "name": "system_functions::scope_randomize_obeys_control_flow_and_statement_order", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X27", + "note": "The design calls $fatal('empty or function call failed') at time 0 because xezim returns 0 for unqualified `ok = randomize();` (draw() returns 1). With no arguments, scope randomize changes nothing and returns 1. If that call is changed to `std::randomize()` in a copy, the case runs to $finish with status 2. When the module is the top, xezim rejects the same call with 'Undeclared identifier randomize'." + }, + { + "suite": "sv", + "name": "system_functions::timescale_queries_accept_directives_before_unit_declarations", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X10", + "note": "Top declares timeunit 100ps / 10fs, so $timeunit()/$timeprecision() must be -10/-14; xezim returns the testbench top's -9/-12, so ok=0. Run with Top as the root (no testbench) ok=1, so the directives before the $unit declarations are handled and only the current-scope bug remains." + }, + { + "suite": "sv", + "name": "system_functions::timescale_queries_accept_leading_zero_magnitudes", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X10", + "note": "Child (100ns/100ps) and package P (10ns/10ps) must report -7/-10 and -8/-11; under the testbench every no-argument query returns the testbench's -9/-12. Separately, the fixed-point literals here (00100.00ps, 010.00ns, 0010.0ps) are mis-scaled even with Child as the root: Child reports -7/-12, and 010.00ns gives -9. Leading zeros on integers (00100ns, 001ps) are parsed correctly." + }, + { + "suite": "sv", + "name": "system_functions::timescale_queries_accept_separate_initial_declarations", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X10", + "note": "The repeated matching declarations are accepted. But U=$timeunit() and T=$timeprecision() in localparams evaluate to 0 instead of -8/-10 (X12), $timeunit($unit) returns the caller's timescale instead of -9/-12 (X11), and P::unit_value() returns the top's timescale instead of package P's -5/-8 (X10)." + }, + { + "suite": "sv", + "name": "system_functions::timescale_queries_are_constant_in_unqualified_calls", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X12", + "note": "localparam U = $timeunit() and P = $timeprecision in Top (timeunit 1ns / 100ps) must be -9/-10, giving $bits(v)=9. xezim evaluates both to 0 in constant context, even with Top as the root, so v is logic [-1:0] (2 bits) and ok=0. The runtime calls return -9/-10 correctly when Top is the root." + }, + { + "suite": "sv", + "name": "system_functions::timescale_queries_distinguish_unit_and_global_precision", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X11", + "note": "The expected values are $timeunit($unit)=-10, $timeprecision($unit)=-14, $timeunit($root)=$timeprecision($root)=-15 (the smallest precision, 1fs from the final `timescale) and $timeprecision(child)=-10. xezim ignores the argument and returns the calling top's timescale; under the testbench it returns the testbench's -10/-14 for every query, so ok=0." + }, + { + "suite": "sv", + "name": "system_functions::timescale_queries_follow_partial_declarations_and_resetall", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "sysfn-X13", + "note": "xezim rejects the `resetall on line 13 with \"`resetall is illegal inside a design element (IEEE 1800-2017 §22.3)\", but that line follows endmodule and is outside every design element. The false detection comes from the earlier one-line modules (`module A(); timeunit 10ns; endmodule`). After splitting them onto two lines in a copy (cases//split.sv) the case compiles but still gets ok=0 from the argument and current-scope query bugs." + }, + { + "suite": "sv", + "name": "system_functions::timescale_queries_keep_module_and_package_names_independent", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X11", + "note": "$timeunit(p_inst)/(q_inst) must be -6/-9 and -8/-12; xezim returns the testbench top's timescale. In addition, Q::unit_value() is resolved through the namesake: package Q is followed by module Q, and with Top as the root xezim reports \"Undeclared identifier 'Q'\"; under a testbench the minimal repro silently calls the wrong function (Q::f() returns 1 instead of 2). Package and definition names are in separate name spaces." + }, + { + "suite": "sv", + "name": "system_functions::timescale_queries_preserve_interface_scopes_when_flattened", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X10", + "note": "info.unit_value()/precision_value() run in interface ClockInfo (100ns/10ps) and must return -7/-11, directly and through the modport. xezim returns -8/-12, the testbench's timescale (10ns/1ps from the last $unit timeunit). ok also fails on $timeunit($unit)/($root) and on info.unit_scope(), which ignore the argument." + }, + { + "suite": "sv", + "name": "system_functions::timescale_queries_preserve_procedural_and_package_scopes", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X10", + "note": "In non-top Top (1ms/1us) the queries must give initialized=-3 and registered=-6, and P::precision_value() must give package P's -7. xezim returns the testbench's -9/-12 for all of them (initialized=0xfffffff7, registered=package_precision=0xfffffff4). The same package-subroutine error occurs with Top as the root (repro prints pkg=-3/-6)." + }, + { + "suite": "sv", + "name": "system_functions::timescale_queries_resolve_declarations_and_return_types", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X10", + "note": "Top (timeunit 100ps / 10fs) must give wide=-10 (64-bit sign-extended), narrow=4'h2 (-14 truncated) and scaled=-10/-14. xezim returns the testbench's -9 (0x...f7, narrow=7, scaled=0xfffffff7). With Top as the root ok=1, so the integer result type and the repeated declarations are correct; only the current-scope bug applies." + }, + { + "suite": "sv", + "name": "system_functions::timescale_queries_resolve_directives_and_hierarchy", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X11", + "note": "The expected values are $timeunit(child)=-6/-9 and $timeunit(child.leaf)=-8/-10 (from the `timescale directives), plus Top's own -3/-6. xezim ignores hierarchical arguments and returns the testbench top's -6/-9 for every query, so ok=0." + }, + { + "suite": "sv", + "name": "system_functions::timescale_queries_resolve_hierarchical_interface_instances", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X11", + "note": "$timeunit(child.info) must be -7/-11 (interface I, 100ns/10ps) and $timeunit(child.leaf.nested) must be -6/-10 (J, 1us/100ps). xezim returns the testbench top's -9/-12 (u=0xfffffff7, p=0xfffffff4), ignoring the hierarchical argument." + }, + { + "suite": "sv", + "name": "system_functions::timescale_queries_resolve_interface_instances_and_ports", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X11", + "note": "$timeunit(i)/$timeprecision(i) for interface I must be -7/-11, and for J -6/-10, whether queried directly, through an I.reader / generic interface port, or on a generate-scope instance. xezim returns the testbench's -9/-12 for all ten outputs, ignoring the argument." + }, + { + "suite": "sv", + "name": "system_functions::timescale_queries_resolve_packages_with_instantiated_namesakes", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X11", + "note": "$timeunit(p_inst)/(q_inst) must be -6/-9 and -8/-12 (module P 1us/1ns, Q 10ns/1ps). xezim returns the testbench top's timescale for every argument. The $timeunit(P)/(Q) terms name packages P/Q (packages are design elements under 3.2, so -7/-11 and -5/-10 are expected), but the instance terms alone already prove the failure." + }, + { + "suite": "sv", + "name": "system_functions::timescale_queries_survive_type_parameter_specialization", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X10", + "note": "Each Child specialization (1us/1ns) must see U=P localparams and runtime queries of -6/-9, and $timeprecision($root) must be -15. xezim returns the testbench's -8/-12 at runtime (X10), evaluates the localparams to 0 (X12) and ignores $root (X11), so a=b=0 and ok=0. wide/narrow are correct." + }, + { + "suite": "sv", + "name": "system_functions::unpacked_dimensions_accepts_defaulted_function_arguments", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X1", + "note": "$unpacked_dimensions(f(1)), f(1, 3) and g() of int-returning functions must be 0; xezim returns 1 for every function-call operand (runtime_rank, supplied_rank, empty_rank). constant_rank passes (0 from X4's constant behaviour)." + }, + { + "suite": "sv", + "name": "system_functions::unpacked_dimensions_accepts_explicit_default_omissions", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X1", + "note": "$unpacked_dimensions(f(, 2, )) and f(1, 2, ) with an int result must be 0; xezim returns 1 for call operands." + }, + { + "suite": "sv", + "name": "system_functions::unpacked_dimensions_accepts_function_result_arguments", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X1", + "note": "Each $unpacked_dimensions(g(...))/(update(...)) of an int-returning call must add 0; xezim adds 1 per call: ansi_result 12 vs 9 (3 calls), legacy_result 13 vs 11, inline_result 12 vs 9, implicit_result (1-bit) wraps 1+1 to 0." + }, + { + "suite": "sv", + "name": "system_functions::unpacked_dimensions_checks_unevaluated_indices", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X1", + "note": "For a: logic [7:0] [0:1][0:2], $unpacked_dimensions(a[index][f(index)]) must be 0 and $dimensions(a[f(index)]) 2; xezim gives 1 and 1 (select operands ignored, X1). The localparam N = $unpacked_dimensions(a[f(index)]) must be 1, xezim 0 (constant query in instantiated module, X4)." + }, + { + "suite": "sv", + "name": "system_functions::unpacked_dimensions_counts_declared_arrays", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X1", + "note": "Only nonarray_type = $unpacked_dimensions(42) differs: must be 0 (not an array), xezim returns 1 for the literal operand. All declared arrays and the scalar pass." + }, + { + "suite": "sv", + "name": "system_functions::unpacked_dimensions_is_independent_of_unknown_values", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X1", + "note": "element = $unpacked_dimensions(a[0]) for logic [7:0] a [0:1] must be 0; xezim returns 1 for the element select, for every input value. whole and the parameter query pass." + }, + { + "suite": "sv", + "name": "system_functions::unpacked_dimensions_prefers_values_over_imported_types", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X9", + "note": "type_rank = $unpacked_dimensions(P::row_t) with typedef logic [7:0] row_t [0:1] in package P must be 1; xezim returns 0 because the qualified name resolves to the module's scalar variable logic row_t (which only hides the wildcard import). signal_rank/port_rank pass." + }, + { + "suite": "sv", + "name": "system_functions::unpacked_dimensions_preserves_selection_and_return_types", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X1", + "note": "For a: logic [1:0][3:0] [0:1][0:2], $unpacked_dimensions((a)) must be 2 and a[i][0], a[i][0][1], value+value, 32'd7 and identity(value) must be 0; xezim returns 1 for each non-identifier operand. element/slice (expected 1) pass by coincidence." + }, + { + "suite": "sv", + "name": "system_functions::unpacked_dimensions_publishes_array_parameters_before_declarations", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X8", + "note": "parameter logic [7:0] A [0:1] = '{default:0} and localparam C likewise must have 1 unpacked dimension, so y, b, d are 2 bits (y=3); xezim drops the unpacked dimension of '{default:...}-initialized array parameters ($unpacked_dimensions = 0), so all are 1 bit (y=1). With '{8'h1, 8'h2} initializers xezim reports 1." + }, + { + "suite": "sv", + "name": "system_functions::unpacked_dimensions_publishes_dependent_array_parameters", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X8", + "note": "All header/body array parameters use '{default:...}; xezim elaborates them as their element type: $bits(B) 8 vs 16, $bits(C) 8 vs 48, $size(E) 8 vs 2, $bits(BODY_B) 8 vs 16, and y = {C[0],C[1],C[2]} is 0 instead of 48'h123412341234." + }, + { + "suite": "sv", + "name": "system_functions::unpacked_dimensions_resolves_package_array_constants", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X4", + "note": "Package localparam N = $unpacked_dimensions(A) for A: logic [7:0] [0:1] must be 1; xezim evaluates it to 0 (array queries in package parameter initializers give 0). ELEMENT passes (0)." + }, + { + "suite": "sv", + "name": "system_functions::unpacked_dimensions_resolves_preceding_block_declarations", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X6", + "note": "In always_comb, logic [$unpacked_dimensions(a):0] b with a [0:1] must be 2 bits; xezim makes it 1 bit (the block-local range evaluates the query as 0); the runtime ranks pass." + }, + { + "suite": "sv", + "name": "system_functions::unpacked_dimensions_resolves_procedural_scopes", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X7", + "note": "task query(input logic [7:0] x [0:1]) must give $unpacked_dimensions(x)*10 + 3 = 13; xezim gives 33 because x resolves to the block-local x [0:1][0:2][0:3] of nested(), which the same always_comb calls." + }, + { + "suite": "sv", + "name": "system_functions::unpacked_dimensions_resolves_types_and_constant_scopes", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X4", + "note": "In the instantiated Top, N = $unpacked_dimensions(matrix_t) is 0 vs 2 (alias_type, and generated -1 vs 3 through the N == 2 generate condition) and TABLE_N 0 vs 1 (X4). formal = query(arguments) with formal x [0:1] gives 3 vs 1 because the formal x resolves to a same-named x [0:1][0:2][0:3] declared elsewhere in the module (generate block g or local_query()) (X7); string_value(\"hello\") and real_value(3.14) give 1 vs 0 for literal operands (X1)." + }, + { + "suite": "sv", + "name": "system_functions::unpacked_dimensions_restores_shadowed_array_rank", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X7", + "note": "Inside generate block g with array x [0:1], always_comb blocks declare localparam int x = 1; $unpacked_dimensions(x) there must be 0 (local_rank, nested_rank); xezim gives 1 (the outer array), while restored_rank (1) passes. Outside a generate block xezim resolves it correctly." + }, + { + "suite": "sv", + "name": "system_functions::unpacked_dimensions_selects_integral_atoms", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X1", + "note": "Selects of int i (i[index], i[index +: 3]) and a[0][3] of int a [0:1] have no unpacked dimension, so 0 is required; xezim returns 1 for each select (runtime_rank, slice_rank, array_rank); constant_rank passes." + }, + { + "suite": "sv", + "name": "system_functions::unpacked_dimensions_types_function_pattern_arguments", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X1", + "note": "runtime_rank = $unpacked_dimensions(f('{8'h3, 8'h4})) with f returning logic [7:0] must be 0; xezim returns 1 for the call operand. constant_rank passes." + }, + { + "suite": "sv", + "name": "system_functions::unpacked_dimensions_validates_writable_function_arguments", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X1", + "note": "rank = $unpacked_dimensions(f(a, a)) of an int-returning function must be 0; xezim returns 1; untouched (7) and the no-output check pass, so the call is not executed." + }, + { + "suite": "sv", + "name": "system_functions::urandom_comb_executes_in_statement_order", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X22", + "note": "The case reseeds with $urandom(working_seed) and expects the next draw() to replay `second`. xezim's $urandom(seed) returns a seed-determined value but does not reseed the calling thread's RNG, so ok=0 for all 4 checks. A copy that replaces each `x = $urandom(s)` with `process::self().srandom(s); x = $urandom` passes, so seeding is the only defect (the short-circuited $urandom operands in always_comb are not evaluated)." + }, + { + "suite": "sv", + "name": "system_functions::urandom_extends_signed_seed_values", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X23", + "note": "For bits=128..255, $urandom(narrow) with logic signed [7:0] narrow differs from $urandom(int'(narrow)), so ff_ok and comb_ok are 0 (256 failing asserts; bits 0..127 pass). The seed formal is `int seed`, and passing -128 to it must sign-extend. A copy that passes int'(narrow) explicitly passes all 512 asserts." + }, + { + "suite": "sv", + "name": "system_functions::urandom_keeps_process_and_instance_streams_independent", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X24", + "note": "After both Generator instances reseed with 123, a draws alone and then b draws alone, and b must produce the value a drew. xezim gives same=0 in all 8 iterations because all processes share one $urandom stream: another process's earlier draw changes a thread's next value (repro: x=3919575143 alone vs 942667852 when a later-declared process also draws). This still fails after the reseed is replaced with process::self().srandom(123), so X22 alone does not explain it." + }, + { + "suite": "sv", + "name": "system_functions::urandom_reseeds_and_shares_the_calling_process_stream", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X22", + "note": "Three bugs combine here. ok=0: $urandom(seed) does not reseed the thread, so replay_b/replay_c differ from b/c (X22), and `width <= $bits($urandom())` makes an extra draw (X25). unchanged=0: xezim writes the new seed back into the `seed` input (X21). A copy with srandom-based reseeding, a constant width, and a temporary seed variable passes all 20 asserts." + }, + { + "suite": "sv", + "name": "system_functions::urandom_respects_short_circuits_and_evaluates_indices_once", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X22", + "note": "The second $urandom(42) does not replay the thread stream (X22). In the always_ff body, xezim also evaluates the short-circuited operands of `0 && $urandom`, `1 || $urandom` and `1 ? 0 : $urandom` (X26): with the reseed worked around, actual=938043164 instead of third=1478287871. The index select draws only once. A copy with srandom reseeding and the three short-circuit lines removed passes." + }, + { + "suite": "sv", + "name": "system_functions::urandom_select_keeps_distinct_source_calls", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sysfn-X22", + "note": "check_calls() reseeds with $urandom(seed) (seed=17) and expects the next draws to replay a, b and third. xezim does not reseed the thread RNG, so ff_ok and comb_ok are 0. With srandom-based reseeding in a copy, all 4 asserts pass, which shows that `($urandom() + $urandom())` in the select index is evaluated correctly." + }, + { + "suite": "sv", + "name": "timing::always_star_timed_task_calls_wait_on_folded_branch_reads", + "status": "mismatch", + "classification": "lrm_ambiguous", + "note": "y stays 0 at time 3 (expected 1): xezim does not wake always @* begin if (0) delayed(); delayed(b); end when a, read only by the default of delayed's omitted argument, changes at 2. 9.4.2.2 builds @* from the nets and variables 'that appear in the statement' (with 'read by the statement' in its first paragraph). The variable a appears only in the declaration of an omitted argument's default (13.5.3), not in the statement. Reading 1 (the suite's, also in limitations.json): a default evaluated for the call is read by the statement, so a change of a wakes the process. Reading 2: only identifiers written in the statement count, the same way reads inside a called function's body do not, so a is not in the list and xezim's y=0 conforms. xezim does include syntactic reads of a constant-false branch (probe: if (0) d2(a) wakes on a), so only the default-argument question decides this case." + }, + { + "suite": "sv", + "name": "timing::always_star_timed_task_calls_wait_on_nested_call_defaults", + "status": "mismatch", + "classification": "lrm_ambiguous", + "note": "y stays 0 at time 3 (expected 5): always @* delayed(pick()) is not woken by a change of a, read only by pick's default argument. 9.4.2.2 builds @* from the nets and variables 'that appear in the statement' (with 'read by the statement' in its first paragraph). The variable a appears only in the declaration of an omitted argument's default (13.5.3), not in the statement. Reading 1 (the suite's, also in limitations.json): a default evaluated for the call is read by the statement, so a change of a wakes the process. Reading 2: only identifiers written in the statement count, the same way reads inside a called function's body do not, so a is not in the list and xezim's y=0 conforms. xezim does include syntactic reads of a constant-false branch (probe: if (0) d2(a) wakes on a), so only the default-argument question decides this case. A side finding: standalone, xezim runs this always @* at time 0 and then stalls at time 1 (zero-delay livelock), recorded as sv_hier-X32. In the suite run it did not stall, and the stall does not change this case's verdict." + }, + { + "suite": "sv", + "name": "timing::any_change_waits_wake_on_every_value_change", + "status": "mismatch", + "classification": "suite_issue", + "note": "xezim prints the expected lines in a different order: at t=3 'either' before 'data=7'. Both processes ('@(data)' and '@(flag, data)') are woken by the same update of data, and 4.7 lets events be taken off the Active region in any order. So the expected text 'data=7\\neither\\n...' fixes an order the LRM leaves nondeterministic. xezim's output has the same set of lines per time step, so the expectation, not xezim, is at fault. Not a settle artifact: the case uses run_to_finish." + }, + { + "suite": "sv", + "name": "timing::blocking_ff_woken_waiters_sample_before_continuations", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X33", + "note": "a=0 and b=0 at time 1 (expected 1, 1): @(posedge (go & enable)) is never woken when Child's always_ff @(posedge clk) go = 1 (blocking) raises go. A standalone repro without the suite testbench fails the same way: plain always @(posedge clk) go = 1 also fails, a nonblocking write or a write from an initial block works, and adding any process waiting directly on @(go) makes the expression waiter wake. Not a settle artifact." + }, + { + "suite": "sv", + "name": "timing::blocking_write_waiters_rearm_before_nonblocking_updates", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X34", + "note": "Output n=1 r=1 (expected n=3 r=3). always @(posedge clk) begin y = 1; y <= 0; y <= 1; end: the two NBAs must apply 0 then 1 in order (4.6 b), each an update event that wakes @(y)/@(posedge y). xezim coalesces them to the final value, so only the first blocking 0->1 is seen. The variable is also written by both blocking and nonblocking assignments, the X40 pattern. Standalone repro, no settle involved (run_to_finish)." + }, + { + "suite": "sv", + "name": "timing::constant_variable_initializers_do_not_invent_clock_edges", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X35", + "note": "function_seen=1 and copy_seen=1 at time 0 (expected 0): the declaration initializers bit function_clock = high_value() and bit copied_clock = literal_clock produce a posedge that wakes always_ff @(posedge ...). Static declaration initialization happens before any initial or always procedure starts (6.8, 10.5), so no edge exists. Literal and parameter initializers are handled correctly. Reproduced standalone without the settler." + }, + { + "suite": "sv", + "name": "timing::cross_file_package_initializers_keep_static_clock_baseline", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X35", + "note": "qualified=1 and imported=1 at times 0 and 1 (expected 0): bit clk = P::high_value() (a package function) as a declaration initializer gives an edge at time 0 that runs always @(posedge clk) q++. A single-file standalone probe gives q=1 as well, so this is X35, not a cross-file or settle effect." + }, + { + "suite": "sv", + "name": "timing::direct_reads_settle_waiting_processes", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X31", + "note": "seen=1 (expected 2). The design does wait (go); seen = 1; #0; seen = 2. The settle after the write lets the settler program ack while the design's #0 continuation (Inactive region) is still pending, which 4.5 forbids: Reactive runs only when [Active ... Post-Observed] is empty. The settle mechanism triggers this, but the defect is xezim's: the standalone repro (no suite code) shows the program running before the #0 continuation once a program has already run in that time step. Without the earlier settle, xezim orders it correctly. Icarus agrees with xezim but treats program blocks as modules." + }, + { + "suite": "sv", + "name": "timing::intermediate_combinational_writes_keep_other_drivers", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X36", + "note": "Output n=1 m=2 (expected n=2 m=3). While a=1, each change of b re-runs always_comb y[3:0] = 0; if (a) y[3:0] = 1;, which pulses y 0xa1 -> 0xa0 -> 0xa1. The intermediate value change is an update event that must wake @(y) (4.3, 4.5), but xezim drops waiter wakeups from intermediate blocking writes within one process activation. Not settle-related (run_to_finish)." + }, + { + "suite": "sv", + "name": "timing::intermediate_combinational_writes_wake_waiters", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X36", + "note": "Output comb=1 star=1 (expected 3, 3): the 1 -> 0 -> 1 rewrites of y1/y2 inside always_comb / always @* on each change of b do not wake @(y1)/@(y2). Each intermediate change is an update event (4.3, 4.5). The repro shows the same with a plain always @(b) (xezim n=0, Icarus n=2)." + }, + { + "suite": "sv", + "name": "timing::intermediate_edge_process_writes_wake_waiters", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X36", + "note": "Output blk=1 nba=1 const=1 rise=1 fall=0 (expected 3 3 3 3 2). blk/const/fall come from the blocking pulses y3 = 0; y3 = 1 and y5 = 0; y5 = 1 not waking waiters (X36). nba/rise come from y4 <= 0; y4 <= 1 being coalesced so the 1->0->1 NBA updates are not seen (X34). Both reproduce standalone; no settle involved." + }, + { + "suite": "sv", + "name": "timing::negative_real_delays_wait_their_twos_complement", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X37", + "note": "woke=1 (expected 0): #r with real r = -1.5 resumes immediately. 9.4.1 interprets a negative delay as a two's-complement unsigned time (about 2^64 steps), so the wakeup is far after the #10 $finish. Integer #(-1) behaves the same in xezim (woke_int=1); Icarus gives 0 for both." + }, + { + "suite": "sv", + "name": "timing::negative_repeat_counts_do_not_run_the_body", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "E", + "note": "dynamic_count=3 and positive_count=0 (expected 0, 2): Top's input integer n receives 0xfffffffe from the testbench's unsigned logic [31:0] i_n. xezim takes the port's signedness from the actual, so n is 4294967294 instead of -2 and repeat(n) loops (12.7.2 treats a negative count as zero). Declaring i_n as integer in a copy of testbench.sv makes the case pass." + }, + { + "suite": "sv", + "name": "timing::parallel_flip_flop_parts_keep_pulses", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X34", + "note": "Output n=0 f=0 (expected n=2 f=2): always_ff @(posedge clk) begin y[0] <= 0; y[0] <= 1; end must apply y[0]=0 then 1 (4.6 b), each an update that wakes @(y) and @(negedge y). xezim coalesces the two NBAs to the unchanged final value." + }, + { + "suite": "sv", + "name": "timing::process_nonblocking_assignments_at_unknown_positions", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X38", + "note": "q=0x06 and m0=0xff at time 1 (expected 0, 0): with i = 3'bx, m[i] <= 8'hff writes m[0], and q[i +: 2] <= 2'b11 lands at bits 2:1, the value i has later (1). Writes through an x index/base are ignored (7.4.6, 11.5.1), and the NBA's lvalue index is fixed when the statement executes (10.4.2). Reproduced standalone." + }, + { + "suite": "sv", + "name": "timing::processes_wake_each_other_at_the_same_time", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X39", + "note": "xezim never resumes the first initial at @(posedge done): its hang report lists it 'waiting on @(posedge dut.done (now 1, has changed))', and the run ends without $finish. The second process does y = 1; #0 y = 2; done = 1. The first process's continuation to its event control is Active work, so it is armed before the Inactive #0 continuation raises done (4.5). The same design alone, without the suite testbench or settler, also hangs; it passes without the #0. Not a settle artifact. The testbench's own deadline after run_to_finish now reports it as a mismatch (\"the design did not finish after run_to_finish\")." + }, + { + "suite": "sv", + "name": "timing::pure_function_events_change_with_the_result", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X41", + "note": "count stays 0 (expected 1, 1, 2): @(middle(v)) never wakes, although v = 4'b0010 changes middle's result from 0 to 1. 9.4.2 allows function calls in event expressions and requires reevaluation when what they reference changes. A standalone probe shows @(middle(v)) never firing while the equivalent @(v[2:1]) fires twice." + }, + { + "suite": "sv", + "name": "timing::staged_nonblocking_writes_follow_later_blocking_writes", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X40", + "note": "Output r=1 (expected 2): always @(posedge clk) begin y[1] <= 0; y[0] <= 1; y = 2'b00; end raises y[0] in the NBA region at each edge, but the @(posedge y) waiter fires only at the first edge. In the repro, a variable written by both blocking and nonblocking assignments in an edge-triggered always stops waking @(w)/@(posedge w) after the first edge, and a $display in the always block hides the bug." + }, + { + "suite": "sv", + "name": "timing::staged_nonblocking_writes_wake_waiters", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X34", + "note": "Output y=0 z=0 (expected 3, 3): y <= 0; y <= 1 after y = 1, and z[0] <= 0; z[1] <= 0; z[0] <= 1; z[1] <= 1 after z = 2'b11, must each produce visible NBA updates (1 -> 0 -> 1) in order (4.6 b). xezim coalesces them, so no waiter wakes. The variables are also mixed blocking/NBA (X40)." + }, + { + "suite": "sv", + "name": "timing::time_calls_in_child_port_actuals", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X42", + "note": "t = s = 0xbbc (3004) at 3 ns (expected 7) and 0x3e800000bbd later: $time/$stime in Top's port actuals (.x($time + a)) are returned in picoseconds, the testbench's 1ps unit / global precision, instead of Top's 1ns unit from `timescale 1ns/1ps. The standalone repro shows the same for a plain continuous assignment, while $time in a procedural statement of Top is right (3)." + }, + { + "suite": "sv", + "name": "timing::timed_task_static_formals_remain_shared", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_hier-X43", + "note": "a=10 at time 5 (expected 20): pulse is a static task (module default lifetime), so the second call at t=1 overwrites the shared formal value with 20 before the first call resumes at 5 (13.3.2). xezim gives each overlapping call its own copy of the formals. Reproduced standalone; Icarus gives 20." + }, + { + "suite": "sv", + "name": "types::inherited_parameter_aliases_materialize_replication_masks", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X78", + "note": "LOCAL_MASK = {COPY_W{1'b1}} declared in an always_comb block (COPY_W=58) must be 58 bits wide; xezim gives a block localparam 32 bits (procedural got 0xffffffff, not 0x3ffffffffffffff). The module-level and generate-block localparams (y, generated) are right; with the replication written inline the case passes." + }, + { + "suite": "sv", + "name": "types::packed_arrays_of_signed_named_types_have_signed_elements", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X1", + "note": "In the instantiated module Top, t[1] of `pair_t t` (pair_t = sn_t [1:0]) is read as the single bit t[1] (got 0x1 for 0xab), not the 4-bit element. Separately, even when the element is selected correctly, xezim does not treat elements of a signed named type as signed: it gives 000a instead of fffa (sv_rest-X74). (Originally filed as sv_rest-X75; merged into sv_rest-X1, the same non-top packed element-select bug.)" + }, + { + "suite": "sv", + "name": "types::packed_parameters_of_signed_named_types_have_signed_elements", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X1", + "note": "In the instantiated module Top, C = L[1] of `localparam sn_t [1:0] L = 8'hab` reads bit L[1]=1 instead of the element 4'sha (y0 got 0x1, expected 0xfffa). The same parameter in the top-level module selects 000a, which is still unsigned and so also hits sv_rest-X74. (Originally filed as sv_rest-X75; merged into sv_rest-X1, the same non-top packed element-select bug.)" + }, + { + "suite": "sv", + "name": "types::passes_unpacked_arguments_of_equivalent_element_types", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X77", + "note": "pick(v, ...) passes `logic [0:7] v [2:3]` to the formal `logic [7:0] x [1:0]`; elements correspond left to right (x[1]=v[2]=0x12). xezim reads every element as X when the actual's range differs from the formal's (left got xx). An actual declared [1:0] works." + }, + { + "suite": "sv", + "name": "types::preserves_integer_atom_state_kinds", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X76", + "note": "`output int two_state` is a 2-state variable, so `assign two_state = a` with a = x must store 0. xezim keeps X in the port variable (got X)." + }, + { + "suite": "sv", + "name": "types::rejects_assignment_pattern_item_of_a_narrower_array_type", + "status": "unexpected_accept", + "classification": "xezim_bug", + "bug": "sv_rest-X79", + "note": "grid = '{row, row} assigns `logic [3:0] row [2]` to elements of type logic [7:0] [2]. An assignment-pattern item is an assignment-like context and needs equivalent element types, so this is an error. xezim elaborates successfully, although it rejects the same mismatch in a plain assignment." + }, + { + "suite": "sv", + "name": "types::rejects_unpacked_port_connection_of_a_narrower_element_type", + "status": "unexpected_accept", + "classification": "xezim_bug", + "bug": "sv_rest-X79", + "note": "Child u(.x(narrow)) connects `logic [3:0] narrow [2]` to the port `input logic [7:0] x [2]`. A port connection is an assignment-like context and the element types are not equivalent, so this is an error (Icarus and Verilator reject). xezim elaborates successfully." + }, + { + "suite": "sv", + "name": "types::simulates_systemverilog_bit_ports_as_two_state", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X76", + "note": "`output bit [3:0] y` is a 2-state variable, so assign y = 4'b10xz must store 4'b1000. xezim stores 10xz in the port variable (y got X). A local `bit` variable assigned the same way is converted correctly." + }, + { + "suite": "sv", + "name": "class::randomization_enum_alias", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_new-X4", + "note": "`rand alias_t value` with `typedef original_t alias_t` (enum {NEG=-7, MID=2, HIGH=91}) gets values outside the three constants (the case's default branch counts them); a direct rand of the enum type stays in the domain. Repro: n4_alias_enum.sv." + }, + { + "suite": "sv", + "name": "class::randomization_enum_domain", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_new-X1", + "note": "The named enum members stay in their domain, but the anonymous inline `rand enum bit [2:0] {ONLY=5} single` and `rand enum {FIRST=11, SECOND=35, THIRD} extra` take other values (the checks on lines 29 and 30 fail). 18.3 restricts every active rand enum variable to its named constants. Repro: n1_anon_rand_enum.sv." + }, + { + "suite": "sv", + "name": "class::randomization_enum_fill_literals", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_new-X3", + "note": "wide_t {WIDE_ALL='1}, small_t {SMALL_ALL='1} and signed_t {SIGNED_ALL='1} each have one named constant, all ones, but randomize() picks other values, so the three all-ones checks fail. Repro: n3_fill_literal_enum.sv." + }, + { + "suite": "sv", + "name": "class::randomization_enum_inheritance", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_new-X1", + "note": "Parent's anonymous `rand enum bit [7:0] {P=7, Q=93} x` and Child's anonymous `y` take values outside their named constants after randomize(). Repro: n1_anon_rand_enum.sv." + }, + { + "suite": "sv", + "name": "system_functions::scope_randomize_enum_order", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_new-X2", + "note": "Inside Top (an instantiated module) the unqualified `randomize(value)` returns failure and leaves value outside {A, B, C} on every iteration, while `std::randomize(value, plain)` works; Syntax 18-11 makes `std::` optional. Repro: n2_scope_randomize_enum.sv." + }, + { + "suite": "sv", + "name": "system_functions::scope_randomize_enum_values", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_new-X3", + "note": "std::randomize(wide) for wide_t {ALL='1} gives values other than all ones (line 24), and the function's unqualified `randomize(local_value)` fails (line 25, sv_new-X2). Repros: n3_fill_literal_enum.sv, n2_scope_randomize_enum.sv." + }, + { + "suite": "sv", + "name": "hierarchy::array_parameter_elements_forward_generated_values", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_new-X5", + "note": "Relay declares `parameter logic [4:0] N[6:7]` and is overridden with a two-element array; generated `Number #(.P(N[i]))` instances read X (numbers = X, expected 0x372). With a zero-based declared range the same forwarding works. Repro: n5_unpacked_param_element_override.sv." + }, + { + "suite": "sv", + "name": "hierarchy::array_parameter_elements_select_conditional_whole_arrays", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_new-X5", + "note": "Relay declares `parameter logic [63:0] A[3:2]` and the elements read X (first = x). Rewriting the declaration and loop to a zero-based range in a copy makes the values come through (in the rewritten index order). Repro: n5_unpacked_param_element_override.sv." + }, + { + "suite": "sv", + "name": "hierarchy::array_parameter_elements_select_package_multidimensional_values", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X1", + "note": "`Sink #(.P(TABLE[3][-1][1]))` passes one element of a [1:0][3:0] packed parameter element; in the instance $bits(P) is 1 instead of 4 (nibble_width), the element select taken as a single bit as in sv_rest-X1." + }, + { + "suite": "sv", + "name": "timing::edge_nonblocking_updates_keep_later_writes_of_other_bits", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_new-X6", + "note": "At the clock edge `mem[i][15:8] <= 8'h44` is scheduled; the initial process then resumes after #0 (Inactive region, before the NBA region) and writes mem[0][7:0] = 8'h22. The NBA must update bits [15:8] only, giving 0x4422; xezim writes the whole element back (0x4400). Repro: n6_nba_partial_select_whole_element.sv." + }, + { + "suite": "sv", + "name": "unions::packed_overlay", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_new-X8", + "note": "always_comb writes data.bits = raw and then data.parts.lo[3:0] = nibble; the second write is lost, so value = 0x0 instead of 0xf. The same write on a packed struct works. Repro: n8_packed_union_member_partselect.sv." + }, + { + "suite": "sv", + "name": "unions::soft_overlay", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "sv_new-X7", + "note": "xezim rejects the nested `union soft { ... } nested` member: \"member 'nested' of a packed union must be of a packed type, not an unpacked struct\". 7.3.1 makes a soft union packed even when `packed` is omitted. Repro: i_n7_soft_union_without_packed.sv." + }, + { + "suite": "sv", + "name": "unions::soft_signed_ports", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_rest-X31", + "note": "`assign member_extended = outgoing.nibble_value` reads the signed 4-bit member and must sign-extend (0xffff); xezim zero-extends (0xf) in the continuous assignment of a non-top module, as for sv_rest-X31 (a procedural read sign-extends). Repro: n9c.sv." + }, + { + "suite": "sv", + "name": "unions::soft_wide_four_state", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_new-X7", + "note": "`union soft { logic [129:0] wide; logic [7:0] narrow_value; }` in Top acts as an unpacked union: after data.wide = raw and data.narrow_value = byte_value, data.wide reads X instead of raw with the low byte replaced. Repro: i_n7_soft_union_without_packed.sv." + }, + { + "suite": "veryl", + "name": "nba_dynamic_array::test_partly_out_of_range_dynamic_ff_part_select", + "status": "mismatch", + "classification": "adapter_two_state_semantics", + "note": "For base = 5, `rp <= part[base+:2]` reads the out-of-range bit part[6]; part is a 4-state `logic`, so that bit reads x (11.5.1) and rp_q[1] is x, while the two-state contract gives 0. The script checks only bit 0 there, so the run used to pass with the unknown bit unchecked; a two-state read now rejects unknown bits. xezim has no two-state mode for 4-state types." + }, + { + "suite": "sv", + "name": "tagged_unions::casts_ports_and_registers", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "sv_new-X9", + "note": "xezim rejects the design at `tagged ` with an unparenthesized identifier or literal payload (\"expected Semicolon/RParen, found Identifier/IntegerLiteral\"), e.g. `tagged Full data` on line 11. Syntax 11-6 allows any primary. Repro: work/triage/new2/x9_tagged_primary_payload.sv." + }, + { + "suite": "sv", + "name": "tagged_unions::constructors_and_checked_members", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "sv_new-X9", + "note": "xezim rejects the design at `tagged ` with an unparenthesized identifier or literal payload (\"expected Semicolon/RParen, found Identifier/IntegerLiteral\"), e.g. `tagged Full data` and `tagged Full 8'h00`." + }, + { + "suite": "sv", + "name": "tagged_unions::default_arguments", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "sv_new-X9", + "note": "xezim rejects the design at `tagged ` with an unparenthesized identifier or literal payload (\"expected Semicolon/RParen, found Identifier/IntegerLiteral\"), e.g. `tagged Full data` and `tagged Full 8'h19`." + }, + { + "suite": "sv", + "name": "tagged_unions::factory_and_union_arguments", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "sv_new-X9", + "note": "xezim rejects the design at `tagged ` with an unparenthesized identifier or literal payload (\"expected Semicolon/RParen, found Identifier/IntegerLiteral\"), e.g. `tagged Full 8'd4` and `tagged Full value`." + }, + { + "suite": "sv", + "name": "tagged_unions::nested_and_void_constructors", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "sv_new-X9", + "note": "xezim rejects the design at `tagged ` with an unparenthesized identifier or literal payload (\"expected Semicolon/RParen, found Identifier/IntegerLiteral\"), e.g. `tagged Word 16'hffff` and the inner `tagged Nested (tagged ... 0)`." + }, + { + "suite": "sv", + "name": "tagged_unions::wide_four_state_payload", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "sv_new-X9", + "note": "xezim rejects the design at `tagged ` with an unparenthesized identifier or literal payload (\"expected Semicolon/RParen, found Identifier/IntegerLiteral\"), e.g. `tagged Full data`." + }, + { + "suite": "sv", + "name": "tagged_unions::writable_system_arguments", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "sv_new-X9", + "note": "xezim rejects the design at `tagged ` with an unparenthesized identifier or literal payload (\"expected Semicolon/RParen, found Identifier/IntegerLiteral\"), e.g. `tagged Full 0` and `tagged Full 123`." + }, + { + "suite": "sv", + "name": "tagged_unions::writable_task_arguments", + "status": "compile_error", + "classification": "xezim_bug", + "bug": "sv_new-X9", + "note": "xezim rejects the design at `tagged ` with an unparenthesized identifier or literal payload (\"expected Semicolon/RParen, found Identifier/IntegerLiteral\"), e.g. `tagged Full 0`." + }, + { + "suite": "sv", + "name": "tagged_unions::conditional_struct_payload", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_new-X10", + "note": "`item = enabled ? tagged Data '{data[7:4], data[3:0]} : tagged Empty` leaves the Data payload 0, so after `item.Data.high += 1` the result is 0x10 instead of 0xb5 (data = 0xa5). The same tagged expression assigned directly keeps its payload. Repro: work/triage/new2/x10_tagged_in_conditional.sv." + }, + { + "suite": "sv", + "name": "timing::derived_clocks_follow_superseded_publications", + "status": "mismatch", + "classification": "lrm_permitted_race", + "note": "Two posedges of clk at time 1 schedule q <= 1 and then q <= 0. The NBA region moves both updates to the Active region (4.5); 4.6 b) orders the two updates, but the events they cause, the update of gq = q & en and the @(q) waiter, may run between them (4.7: Active events are processed in any order). xezim does so: gq pulses and cnt becomes 1, and the waiter re-arms and wakes twice (n = 2). The case expects the order in which the second update runs first (cnt=0 n=1)." + }, + { + "suite": "sv", + "name": "procedural::static_function_unpacked_scratch_bits_at_element_boundaries", + "status": "mismatch", + "classification": "xezim_bug", + "bug": "sv_new-X11", + "note": "For index = 0 (the zero start value, so no update event) `assign y = identity(index)` keeps xezim's time-0 value 0x3ffffffffffffff instead of 0x1; identity clears words[i] and sets words[i][i] for i = 0..57 and returns words[selected]. After index changes, xezim computes the right one-hot value. Related to I0, also a wrong time-0 value of a function-valued continuous assignment. Repro: work/triage/new3/x11_time0_function_scratch_array.sv." + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim.json b/crates/celox-test-suite/verification/xezim.json new file mode 100644 index 00000000000..4d9cfdf87c7 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim.json @@ -0,0 +1,83 @@ +{ + "case_files": [ + "xezim/advanced_interface.json", + "xezim/array_literal.json", + "xezim/basic.json", + "xezim/case_switch.json", + "xezim/comb_observer.json", + "xezim/compare_matrix.json", + "xezim/concat_operators.json", + "xezim/concatenation.json", + "xezim/concurrent_initial.json", + "xezim/context_width.json", + "xezim/counter.json", + "xezim/data_access.json", + "xezim/duplicate_varpath.json", + "xezim/enum_type.json", + "xezim/expression_semantics.json", + "xezim/false_loop.json", + "xezim/ff_event_snapshot.json", + "xezim/ff_narrow_arrays.json", + "xezim/fifo_issue5.json", + "xezim/flip_flop.json", + "xezim/floating_point.json", + "xezim/for_loop_unroll.json", + "xezim/four_state.json", + "xezim/four_state_expression_semantics.json", + "xezim/function_arguments.json", + "xezim/function_bodies.json", + "xezim/generic_identity.json", + "xezim/hierarchical_assignment.json", + "xezim/hierarchy.json", + "xezim/interface.json", + "xezim/issue3_repro.json", + "xezim/latch.json", + "xezim/linear_sorter_pull.json", + "xezim/logical_shift_count.json", + "xezim/loop_idiom.json", + "xezim/multi_clock.json", + "xezim/nba_cross_block.json", + "xezim/nba_cross_block_empty.json", + "xezim/nba_dynamic_array.json", + "xezim/operators.json", + "xezim/packed_scatter_store.json", + "xezim/param_override.json", + "xezim/partial_word_shift.json", + "xezim/proto_package.json", + "xezim/recovered_unrolled_fold.json", + "xezim/reset_edge_cases.json", + "xezim/self_determination.json", + "xezim/shift_bug_test.json", + "xezim/shift_signedness.json", + "xezim/signed_divrem.json", + "xezim/state_cast_semantics.json", + "xezim/std_binary_codec.json", + "xezim/std_delay.json", + "xezim/std_edge_detector.json", + "xezim/std_fifo.json", + "xezim/std_gray_codec.json", + "xezim/std_lfsr.json", + "xezim/std_mux.json", + "xezim/std_onehot.json", + "xezim/std_ram.json", + "xezim/struct_constructor.json", + "xezim/synth_dynamic_loop.json", + "xezim/system_function.json", + "xezim/tb_string.json", + "xezim/test_unimplemented_paths.json", + "xezim/veryl_context_regressions.json", + "xezim/veryl_language.json", + "xezim/veryl_regressions.json", + "xezim/wide_context_width.json", + "xezim/wide_data.json", + "xezim/wide_operators.json", + "xezim/wide_shift_mem.json" + ], + "exclude_stronger_than_sv": false, + "include_ignored": false, + "schema_version": 4, + "suite": "veryl", + "suite_version": "0.11.0", + "tool": "xezim", + "version": "xezim version 0.11.3" +} diff --git a/crates/celox-test-suite/verification/xezim/advanced_interface.json b/crates/celox-test-suite/verification/xezim/advanced_interface.json new file mode 100644 index 00000000000..2c4ac7cba55 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/advanced_interface.json @@ -0,0 +1,59 @@ +{ + "cases": [ + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "advanced_interface::test_interface_bidirectional", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "advanced_interface::test_interface_wide_signal", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "advanced_interface::test_multiple_interface_instances", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "advanced_interface::test_transitive_generics", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "advanced_interface::test_transitive_generics_two_level", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/array_literal.json b/crates/celox-test-suite/verification/xezim/array_literal.json new file mode 100644 index 00000000000..feb7c292013 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/array_literal.json @@ -0,0 +1,114 @@ +{ + "cases": [ + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "array_literal::test_array_literal_comb_assignment", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "array_literal::test_array_literal_default_comb_assignment", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "array_literal::test_array_literal_default_fills_2d_array", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "array_literal::test_array_literal_default_fills_param_sized_array", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "array_literal::test_array_literal_default_in_ff_reset", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "array_literal::test_array_literal_default_only", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "array_literal::test_array_literal_nested_default_multidim_assignment", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "array_literal::test_array_literal_repeat_plus_default", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "array_literal::test_array_literal_single_element_size_one_array", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "array_literal::test_array_literal_two_explicit_plus_default", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/basic.json b/crates/celox-test-suite/verification/xezim/basic.json new file mode 100644 index 00000000000..7023c99bcb2 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/basic.json @@ -0,0 +1,518 @@ +{ + "cases": [ + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_always_comb_blocking_assignment_chain", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "basic::test_always_comb_read_before_write_uses_previous_value reads c with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "basic::test_always_comb_read_before_write_uses_previous_value", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_case_target_output_call_is_evaluated_once", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_effectful_case_after_dynamic_break_stays_inactive", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_effectful_if_condition_after_dynamic_break_stays_inactive", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_function_call_break_inside_for", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_function_call_constant_folded_if_return", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_function_call_early_return", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "basic::test_comb_function_call_expression_output_is_guarded_by_ternary at 545:3: assert_eq q_output: expected 0xa, got 0xb", + "expectation": "Simulation", + "name": "basic::test_comb_function_call_expression_output_is_guarded_by_ternary", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_function_call_expression_output_is_visible_to_later_operand", + "phase": "execute", + "status": "passed", + "stronger_than_sv": true, + "tag_reasons": { + "evaluation_order": "Requires a particular evaluation order for effectful arguments or expression operands; SV does not guarantee that order (IEEE 1800-2023 13.5, 11.4.2)." + }, + "tags": [ + "evaluation_order" + ] + }, + { + "category": "Combinational", + "detail": "basic::test_comb_function_call_expression_output_respects_short_circuit at 579:3: assert_eq and_output: expected 0x0, got 0xb", + "expectation": "Simulation", + "name": "basic::test_comb_function_call_expression_output_respects_short_circuit", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_function_call_expression_output_survives_system_function_wrapper", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_function_call_expression_with_constant_input_keeps_output_write", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_function_call_expression_with_output_argument", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_function_call_local_and_return_width_coercion", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_function_call_nested_helper", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_function_call_output_bit_select_preserves_unwritten_loop_bits", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_function_call_output_reads_current_caller_store", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_function_call_partial_write_local_temp", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_function_call_return_indexed_local_temp", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_function_call_return_inside_for", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_function_call_statement_ignores_return_value", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_function_call_statement_preserves_conditional_return_control_flow", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_function_call_statement_preserves_return_control_flow", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_function_call_statement_with_output_argument", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_function_call_statement_with_output_argument_in_loop", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_function_call_with_output_argument_in_case_target", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_function_call_with_output_argument_in_destination_index", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_function_call_with_output_argument_in_display_argument", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_function_call_with_output_argument_in_if_condition", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_function_call_with_output_argument_in_index_expression", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_function_call_with_output_argument_in_loop_condition", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "basic::test_comb_function_condition_output_is_guarded_after_early_return at 997:3: assert_eq q_output: expected 0x0, got 0x7", + "expectation": "Simulation", + "name": "basic::test_comb_function_condition_output_is_guarded_after_early_return", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_loop_bound_output_call_writes_back_once", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_nested_function_call_statement_with_output_argument", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_nested_function_output_call_in_function_condition", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_override_dependency", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_returning_output_function_allows_nested_output_call", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_comb_returning_output_function_reads_current_caller_store", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "basic::test_comb_value_system_function_after_dynamic_break_stays_inactive at 837:3: assert_eq q_output: expected 0xb, got 0x0", + "expectation": "Simulation", + "name": "basic::test_comb_value_system_function_after_dynamic_break_stays_inactive", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "basic::test_comb_value_system_function_statement_applies_argument_outputs at 798:3: assert_eq q: expected 0xb, got 0x0", + "expectation": "Simulation", + "name": "basic::test_comb_value_system_function_statement_applies_argument_outputs", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_dependency_chain", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_mixed_selects_execution", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_overlapping_override", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_simple_assignment", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "basic::test_statement_call_inputs_follow_output_writeback_order", + "phase": "execute", + "status": "passed", + "stronger_than_sv": true, + "tag_reasons": { + "evaluation_order": "Requires a particular evaluation order for effectful arguments or expression operands; SV does not guarantee that order (IEEE 1800-2023 13.5, 11.4.2)." + }, + "tags": [ + "evaluation_order" + ] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/case_switch.json b/crates/celox-test-suite/verification/xezim/case_switch.json new file mode 100644 index 00000000000..dea7d41a629 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/case_switch.json @@ -0,0 +1,103 @@ +{ + "cases": [ + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "case_switch::test_case_basic_comb", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "case_switch::test_case_block_body", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "case_switch::test_case_break_inside_comb_function_for", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "case_switch::test_case_in_always_ff", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "case_switch::test_case_in_comb_function_output_argument", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "case_switch::test_case_in_comb_function_return", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "case_switch::test_case_multiarm", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "case_switch::test_case_nested_in_if", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "case_switch::test_switch_basic_comb", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/comb_observer.json b/crates/celox-test-suite/verification/xezim/comb_observer.json new file mode 100644 index 00000000000..282a47a6292 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/comb_observer.json @@ -0,0 +1,155 @@ +{ + "cases": [ + { + "category": "Combinational", + "detail": "comb_observer::test_comb_function_array_literal_accepts_array_returning_items at 166:3: assert_eq expression: expected 0x3, got 0x0", + "expectation": "Simulation", + "name": "comb_observer::test_comb_function_array_literal_accepts_array_returning_items", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "comb_observer::test_comb_function_array_literal_array_item_preserves_element_type reads q with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "comb_observer::test_comb_function_array_literal_array_item_preserves_element_type", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "comb_observer::test_comb_function_array_literal_converts_scalar_items_per_element", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "xezim build exit status: 1; see /build.log\nParsed 2 file(s): 2 descriptions, 0 errors, 0 warnings\nerror: /source_0.sv:16:26: cannot assign logic signed [3:0] $[2] to argument 'x' of 'pick' of type logic signed [7:0] $[2]: element types logic signed [7:0] and logic signed [3:0] are not equivalent (IEEE 1800-2017 §6.22.2, §7.6)\nerror: /source_0.sv:17:26: cannot assign logic signed [3:0] $[2] to argument 'x' of 'pick' of type logic signed [7:0] $[2]: element types logic signed [7:0] and logic signed [3:0] are not equivalent (IEEE 1800-2017 §6.22.2, §7.6)\n", + "expectation": "Simulation", + "name": "comb_observer::test_comb_function_direct_array_argument_converts_each_element", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "comb_observer::test_comb_function_direct_array_return_preserves_all_elements at 217:3: assert_eq expression: expected 0x4, got 0x0", + "expectation": "Simulation", + "name": "comb_observer::test_comb_function_direct_array_return_preserves_all_elements", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "comb_observer::test_comb_function_loop_bounds_apply_output_effects_left_to_right", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "comb_observer::test_comb_function_loop_skips_conditions_after_break", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "comb_observer::test_comb_function_nested_array_literals_preserve_each_dimension_order at 56:3: assert_eq expression: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "comb_observer::test_comb_function_nested_array_literals_preserve_each_dimension_order", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "comb_observer::test_comb_function_nested_array_scalar_default_converts_each_element at 112:3: assert_eq expression: expected 0xf8, got 0x0", + "expectation": "Simulation", + "name": "comb_observer::test_comb_function_nested_array_scalar_default_converts_each_element", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "comb_observer::test_comb_function_packed_array_literal_preserves_source_order at 29:3: assert_eq expression: expected 0x22, got 0x11", + "expectation": "Simulation", + "name": "comb_observer::test_comb_function_packed_array_literal_preserves_source_order", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": true, + "tag_reasons": { + "assignment_pattern_evaluation": "Requires source-order evaluation or a particular evaluation count for effectful assignment-pattern items; SV does not guarantee these choices (IEEE 1800-2023 10.9.1, 11.4.2)." + }, + "tags": [ + "assignment_pattern_evaluation" + ] + }, + { + "category": "Combinational", + "detail": "xezim build exit status: 1; see /build.log\nParsed 2 file(s): 2 descriptions, 0 errors, 0 warnings\nerror: /source_0.sv:15:17: cannot assign logic signed [3:0] $[2] to argument 'x' of 'capture' of type logic signed [7:0] $[2]: element types logic signed [7:0] and logic signed [3:0] are not equivalent (IEEE 1800-2017 §6.22.2, §7.6)\n", + "expectation": "Simulation", + "name": "comb_observer::test_comb_statement_function_direct_array_argument_converts_each_element", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Combinational", + "detail": "comb_observer::test_named_function_inputs_evaluate_in_source_order at 276:3: assert_eq expression: expected 0xd, got 0x0", + "expectation": "Simulation", + "name": "comb_observer::test_named_function_inputs_evaluate_in_source_order", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": true, + "tag_reasons": { + "evaluation_order": "Requires a particular evaluation order for effectful arguments or expression operands; SV does not guarantee that order (IEEE 1800-2023 13.5, 11.4.2)." + }, + "tags": [ + "evaluation_order" + ] + }, + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "comb_observer::test_named_function_outputs_apply_in_source_order", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/compare_matrix.json b/crates/celox-test-suite/verification/xezim/compare_matrix.json new file mode 100644 index 00000000000..2f475279769 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/compare_matrix.json @@ -0,0 +1,81 @@ +{ + "cases": [ + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "compare_matrix::test_compare_matrix_merger", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "compare_matrix::test_compare_matrix_selector", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "compare_matrix::test_compare_matrix_stage1_sort", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "compare_matrix::test_compare_matrix_stage1cm", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "compare_matrix::test_generic_module_instantiation", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "compare_matrix::test_proto_const_max_value", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "compare_matrix::test_proto_function_basic", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/concat_operators.json b/crates/celox-test-suite/verification/xezim/concat_operators.json new file mode 100644 index 00000000000..8f697cc8d55 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/concat_operators.json @@ -0,0 +1,81 @@ +{ + "cases": [ + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "concat_operators::test_arithmetic_in_concat", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "concat_operators::test_as_cast_in_concat", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "concat_operators::test_bitwise_and_logical_in_concat", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "concat_operators::test_comparison_in_concat", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "concat_operators::test_nested_concat_and_repeat", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "concat_operators::test_shift_in_concat", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "concat_operators::test_ternary_in_concat", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/concatenation.json b/crates/celox-test-suite/verification/xezim/concatenation.json new file mode 100644 index 00000000000..b8e397acda3 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/concatenation.json @@ -0,0 +1,48 @@ +{ + "cases": [ + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "concatenation::test_lhs_concatenation_execution", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "concatenation::test_replication_concatenation_execution", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "concatenation::test_rhs_concatenation_execution", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "concatenation::test_rhs_mixed_concatenation_execution", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/concurrent_initial.json b/crates/celox-test-suite/verification/xezim/concurrent_initial.json new file mode 100644 index 00000000000..afd934fc0b5 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/concurrent_initial.json @@ -0,0 +1,286 @@ +{ + "cases": [ + { + "category": "ControlFlow", + "detail": "These native testbench fixtures use $tb::clock_gen (and reset_gen). The shared adapter does not translate native clock components; Veryl 0.22.0 SV emission panics with internal error: entered unreachable code before either external simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "emitter_panic", + "evidence": [ + "verification/repros/concurrent_initial_verilator.json", + "verification/repros/concurrent_initial_icarus.json", + "verification/repros/concurrent_initial_gated_drive_verilator.json", + "verification/repros/concurrent_initial_gated_drive_icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-native-clock-components" + ], + "id": "veryl_native_clock_components", + "observed_version": "Veryl 0.22.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "These native testbench fixtures use $tb::clock_gen (and reset_gen). The shared adapter does not translate native clock components; Veryl 0.22.0 SV emission panics with internal error: entered unreachable code before either external simulator runs.", + "upstream": [] + }, + "name": "concurrent_initial::clock_periods", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "These native testbench fixtures use $tb::clock_gen (and reset_gen). The shared adapter does not translate native clock components; Veryl 0.22.0 SV emission panics with internal error: entered unreachable code before either external simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "emitter_panic", + "evidence": [ + "verification/repros/concurrent_initial_verilator.json", + "verification/repros/concurrent_initial_icarus.json", + "verification/repros/concurrent_initial_gated_drive_verilator.json", + "verification/repros/concurrent_initial_gated_drive_icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-native-clock-components" + ], + "id": "veryl_native_clock_components", + "observed_version": "Veryl 0.22.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "These native testbench fixtures use $tb::clock_gen (and reset_gen). The shared adapter does not translate native clock components; Veryl 0.22.0 SV emission panics with internal error: entered unreachable code before either external simulator runs.", + "upstream": [] + }, + "name": "concurrent_initial::control_flow", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "These native testbench fixtures use $tb::clock_gen (and reset_gen). The shared adapter does not translate native clock components; Veryl 0.22.0 SV emission panics with internal error: entered unreachable code before either external simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "emitter_panic", + "evidence": [ + "verification/repros/concurrent_initial_verilator.json", + "verification/repros/concurrent_initial_icarus.json", + "verification/repros/concurrent_initial_gated_drive_verilator.json", + "verification/repros/concurrent_initial_gated_drive_icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-native-clock-components" + ], + "id": "veryl_native_clock_components", + "observed_version": "Veryl 0.22.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "These native testbench fixtures use $tb::clock_gen (and reset_gen). The shared adapter does not translate native clock components; Veryl 0.22.0 SV emission panics with internal error: entered unreachable code before either external simulator runs.", + "upstream": [] + }, + "name": "concurrent_initial::gated_drive", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": true, + "tag_reasons": { + "two_state_initialization": "Explicitly requires the suite's zero-initialized two-state storage even for emitted four-state logic; SV default initialization depends on the declared type (IEEE 1800-2023 6.8, Table 6-7)." + }, + "tags": [ + "two_state_initialization" + ] + }, + { + "category": "ControlFlow", + "detail": "These native testbench fixtures use $tb::clock_gen (and reset_gen). The shared adapter does not translate native clock components; Veryl 0.22.0 SV emission panics with internal error: entered unreachable code before either external simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "emitter_panic", + "evidence": [ + "verification/repros/concurrent_initial_verilator.json", + "verification/repros/concurrent_initial_icarus.json", + "verification/repros/concurrent_initial_gated_drive_verilator.json", + "verification/repros/concurrent_initial_gated_drive_icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-native-clock-components" + ], + "id": "veryl_native_clock_components", + "observed_version": "Veryl 0.22.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "These native testbench fixtures use $tb::clock_gen (and reset_gen). The shared adapter does not translate native clock components; Veryl 0.22.0 SV emission panics with internal error: entered unreachable code before either external simulator runs.", + "upstream": [] + }, + "name": "concurrent_initial::hierarchy", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "These native testbench fixtures use $tb::clock_gen (and reset_gen). The shared adapter does not translate native clock components; Veryl 0.22.0 SV emission panics with internal error: entered unreachable code before either external simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "emitter_panic", + "evidence": [ + "verification/repros/concurrent_initial_verilator.json", + "verification/repros/concurrent_initial_icarus.json", + "verification/repros/concurrent_initial_gated_drive_verilator.json", + "verification/repros/concurrent_initial_gated_drive_icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-native-clock-components" + ], + "id": "veryl_native_clock_components", + "observed_version": "Veryl 0.22.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "These native testbench fixtures use $tb::clock_gen (and reset_gen). The shared adapter does not translate native clock components; Veryl 0.22.0 SV emission panics with internal error: entered unreachable code before either external simulator runs.", + "upstream": [] + }, + "name": "concurrent_initial::mixed_edges", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": true, + "tag_reasons": { + "two_state_initialization": "Explicitly requires the suite's zero-initialized two-state storage even for emitted four-state logic; SV default initialization depends on the declared type (IEEE 1800-2023 6.8, Table 6-7)." + }, + "tags": [ + "two_state_initialization" + ] + }, + { + "category": "ControlFlow", + "detail": "These native testbench fixtures use $tb::clock_gen (and reset_gen). The shared adapter does not translate native clock components; Veryl 0.22.0 SV emission panics with internal error: entered unreachable code before either external simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "emitter_panic", + "evidence": [ + "verification/repros/concurrent_initial_verilator.json", + "verification/repros/concurrent_initial_icarus.json", + "verification/repros/concurrent_initial_gated_drive_verilator.json", + "verification/repros/concurrent_initial_gated_drive_icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-native-clock-components" + ], + "id": "veryl_native_clock_components", + "observed_version": "Veryl 0.22.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "These native testbench fixtures use $tb::clock_gen (and reset_gen). The shared adapter does not translate native clock components; Veryl 0.22.0 SV emission panics with internal error: entered unreachable code before either external simulator runs.", + "upstream": [] + }, + "name": "concurrent_initial::reset", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "These native testbench fixtures use $tb::clock_gen (and reset_gen). The shared adapter does not translate native clock components; Veryl 0.22.0 SV emission panics with internal error: entered unreachable code before either external simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "emitter_panic", + "evidence": [ + "verification/repros/concurrent_initial_verilator.json", + "verification/repros/concurrent_initial_icarus.json", + "verification/repros/concurrent_initial_gated_drive_verilator.json", + "verification/repros/concurrent_initial_gated_drive_icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-native-clock-components" + ], + "id": "veryl_native_clock_components", + "observed_version": "Veryl 0.22.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "These native testbench fixtures use $tb::clock_gen (and reset_gen). The shared adapter does not translate native clock components; Veryl 0.22.0 SV emission panics with internal error: entered unreachable code before either external simulator runs.", + "upstream": [] + }, + "name": "concurrent_initial::reset_between_edges", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "These native testbench fixtures use $tb::clock_gen (and reset_gen). The shared adapter does not translate native clock components; Veryl 0.22.0 SV emission panics with internal error: entered unreachable code before either external simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "emitter_panic", + "evidence": [ + "verification/repros/concurrent_initial_verilator.json", + "verification/repros/concurrent_initial_icarus.json", + "verification/repros/concurrent_initial_gated_drive_verilator.json", + "verification/repros/concurrent_initial_gated_drive_icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-native-clock-components" + ], + "id": "veryl_native_clock_components", + "observed_version": "Veryl 0.22.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "These native testbench fixtures use $tb::clock_gen (and reset_gen). The shared adapter does not translate native clock components; Veryl 0.22.0 SV emission panics with internal error: entered unreachable code before either external simulator runs.", + "upstream": [] + }, + "name": "concurrent_initial::reset_only_clock", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "These native testbench fixtures use $tb::clock_gen (and reset_gen). The shared adapter does not translate native clock components; Veryl 0.22.0 SV emission panics with internal error: entered unreachable code before either external simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "emitter_panic", + "evidence": [ + "verification/repros/concurrent_initial_verilator.json", + "verification/repros/concurrent_initial_icarus.json", + "verification/repros/concurrent_initial_gated_drive_verilator.json", + "verification/repros/concurrent_initial_gated_drive_icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-native-clock-components" + ], + "id": "veryl_native_clock_components", + "observed_version": "Veryl 0.22.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "These native testbench fixtures use $tb::clock_gen (and reset_gen). The shared adapter does not translate native clock components; Veryl 0.22.0 SV emission panics with internal error: entered unreachable code before either external simulator runs.", + "upstream": [] + }, + "name": "concurrent_initial::shared_clock", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "These native testbench fixtures use $tb::clock_gen (and reset_gen). The shared adapter does not translate native clock components; Veryl 0.22.0 SV emission panics with internal error: entered unreachable code before either external simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "emitter_panic", + "evidence": [ + "verification/repros/concurrent_initial_verilator.json", + "verification/repros/concurrent_initial_icarus.json", + "verification/repros/concurrent_initial_gated_drive_verilator.json", + "verification/repros/concurrent_initial_gated_drive_icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-native-clock-components" + ], + "id": "veryl_native_clock_components", + "observed_version": "Veryl 0.22.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "These native testbench fixtures use $tb::clock_gen (and reset_gen). The shared adapter does not translate native clock components; Veryl 0.22.0 SV emission panics with internal error: entered unreachable code before either external simulator runs.", + "upstream": [] + }, + "name": "concurrent_initial::simultaneous_edges", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": true, + "tag_reasons": { + "two_state_initialization": "Explicitly requires the suite's zero-initialized two-state storage even for emitted four-state logic; SV default initialization depends on the declared type (IEEE 1800-2023 6.8, Table 6-7)." + }, + "tags": [ + "two_state_initialization" + ] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/context_width.json b/crates/celox-test-suite/verification/xezim/context_width.json new file mode 100644 index 00000000000..064ff3cc0df --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/context_width.json @@ -0,0 +1,125 @@ +{ + "cases": [ + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "context_width::test_addition_different_widths", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "context_width::test_comparison_different_widths", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "context_width::test_context_determined_width_subtraction", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "context_width::test_ff_width_propagation", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "context_width::test_nested_width_propagation", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "context_width::test_runtime_arithmetic_shift_behavior at 204:3: assert_eq o_a: expected 0xe, got 0x2", + "expectation": "Simulation", + "name": "context_width::test_runtime_arithmetic_shift_behavior", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "context_width::test_runtime_shift_width_behavior", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "context_width::test_runtime_variable_width2_subtraction", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "context_width::test_runtime_variable_width3_subtraction", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "context_width::test_unsized_constant_width_subtraction", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "context_width::test_zero_extend", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/counter.json b/crates/celox-test-suite/verification/xezim/counter.json new file mode 100644 index 00000000000..2a25f2594fa --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/counter.json @@ -0,0 +1,37 @@ +{ + "cases": [ + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "counter::test_counter_n100_wrap", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "counter::test_counter_n4_basic", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "counter::test_phase_state_ssa_preserves_eval_before_apply_and_four_state", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/data_access.json b/crates/celox-test-suite/verification/xezim/data_access.json new file mode 100644 index 00000000000..73010df660f --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/data_access.json @@ -0,0 +1,147 @@ +{ + "cases": [ + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "data_access::test_dynamic_index_read", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "data_access::test_dynamic_index_with_bitslice", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "data_access::test_dynamic_index_write", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "data_access::test_dynamic_minus_colon_and_step_read_write", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "data_access::test_dynamic_slice_bullying", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "data_access::test_ff_bit_select_in_generate_loop", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "data_access::test_genvar_const_in_generate", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "data_access::test_genvar_dynamic_index_issue21", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "data_access::test_let_index_with_bitslice_write", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "data_access::test_let_index_with_bitslice_write_single", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "data_access::test_minus_colon_and_step_execution", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "data_access::test_multidimensional_access", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "data_access::test_partial_write_merging", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/duplicate_varpath.json b/crates/celox-test-suite/verification/xezim/duplicate_varpath.json new file mode 100644 index 00000000000..8e267374b73 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/duplicate_varpath.json @@ -0,0 +1,26 @@ +{ + "cases": [ + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "duplicate_varpath::test_duplicate_scoped_var_in_always_comb", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "duplicate_varpath::test_duplicate_scoped_var_with_generate_for", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/enum_type.json b/crates/celox-test-suite/verification/xezim/enum_type.json new file mode 100644 index 00000000000..2d15dead208 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/enum_type.json @@ -0,0 +1,37 @@ +{ + "cases": [ + { + "category": "Types", + "detail": "xezim build exit status: 1; see /build.log\nParsed 2 file(s): 2 descriptions, 0 errors, 0 warnings\nerror: /source_0.sv:11:26: cannot assign logic [1:0] to 'c' of type enum Color: an enum takes only its own members, values of its own type, or an explicit cast (IEEE 1800-2017 §6.19.3)\n", + "expectation": "Simulation", + "name": "enum_type::test_enum_assign_and_compare", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "enum_type::test_enum_case_match", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "enum_type::test_enum_ff_state_machine", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/expression_semantics.json b/crates/celox-test-suite/verification/xezim/expression_semantics.json new file mode 100644 index 00000000000..e8a3c6028be --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/expression_semantics.json @@ -0,0 +1,147 @@ +{ + "cases": [ + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "expression_semantics::aggregate_results_consume_the_unary_parent_context", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "expression_semantics::cast_binary_semantics_match_between_comb_and_ff at 439:7: assert_eq c_num_cast: expected 0xfff9, got 0x19 (c_num_cast)", + "expectation": "Simulation", + "name": "expression_semantics::cast_binary_semantics_match_between_comb_and_ff", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "expression_semantics::constant_and_runtime_casts_use_the_same_resize_rule at 528:7: assert_eq c_runtime_cast: expected 0xfff9, got 0x19 (c_runtime_cast)", + "expectation": "Simulation", + "name": "expression_semantics::constant_and_runtime_casts_use_the_same_resize_rule", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "expression_semantics::folded_and_runtime_builtin_selects_are_unsigned", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "expression_semantics::function_actuals_are_converted_at_the_formal_boundary", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "expression_semantics::narrow_signed_comparison_sign_extends_both_operands at 342:5: assert_eq c_lt: expected 0x0, got 0x1 (c_lt)", + "expectation": "Simulation", + "name": "expression_semantics::narrow_signed_comparison_sign_extends_both_operands", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "expression_semantics::numeric_cast_preserves_four_state_sign_extension at 308:5: assert_eq c_num: expected 0xx1, got 0xX1 (c_num with X sign bit)", + "expectation": "Simulation", + "name": "expression_semantics::numeric_cast_preserves_four_state_sign_extension", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "expression_semantics::parent_context_and_self_determined_boundaries_match_between_comb_and_ff at 478:7: assert_eq c_lt: expected 0x1, got 0x0 (c_lt)", + "expectation": "Simulation", + "name": "expression_semantics::parent_context_and_self_determined_boundaries_match_between_comb_and_ff", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "expression_semantics::short_circuit_operators_skip_effectful_operands at 276:3: assert_eq and_state: expected 0x0, got 0x1", + "expectation": "Simulation", + "name": "expression_semantics::short_circuit_operators_skip_effectful_operands", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "expression_semantics::signed_type_cast_keeps_comparison_operands_signed at 152:5: assert_eq c_lt: expected 0x1, got 0x0 (c_lt)", + "expectation": "Simulation", + "name": "expression_semantics::signed_type_cast_keeps_comparison_operands_signed", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "expression_semantics::system_function_results_obey_ternary_width_contexts at 217:5: assert_eq c_natural: expected 0xffffffff, got 0xff", + "expectation": "Simulation", + "name": "expression_semantics::system_function_results_obey_ternary_width_contexts", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "expression_semantics::unary_expression_context_signedness_matches_veryl", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "expression_semantics::wildcard_predicates_remain_one_bit_in_ternaries_and_concats", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/false_loop.json b/crates/celox-test-suite/verification/xezim/false_loop.json new file mode 100644 index 00000000000..71ff8750e5f --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/false_loop.json @@ -0,0 +1,15 @@ +{ + "cases": [ + { + "category": "Combinational", + "detail": "", + "expectation": "Simulation", + "name": "false_loop::test_read_then_overwrite_convergence", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/ff_event_snapshot.json b/crates/celox-test-suite/verification/xezim/ff_event_snapshot.json new file mode 100644 index 00000000000..3a3318d3a11 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/ff_event_snapshot.json @@ -0,0 +1,48 @@ +{ + "cases": [ + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "ff_event_snapshot::ff_read_array_uses_previous_index", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "ff_event_snapshot::ff_read_bit_select_uses_previous_index", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "ff_event_snapshot::ff_read_part_select_uses_previous_index", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "ff_event_snapshot::reset_groups_sample_the_same_pre_edge_state", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/ff_narrow_arrays.json b/crates/celox-test-suite/verification/xezim/ff_narrow_arrays.json new file mode 100644 index 00000000000..025abb81782 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/ff_narrow_arrays.json @@ -0,0 +1,26 @@ +{ + "cases": [ + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "ff_narrow_arrays::ff_captures_every_one_bit_array_element", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "ff_narrow_arrays::ff_captures_padded_elements_and_unknown_masks", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/fifo_issue5.json b/crates/celox-test-suite/verification/xezim/fifo_issue5.json new file mode 100644 index 00000000000..c7baadec4e4 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/fifo_issue5.json @@ -0,0 +1,15 @@ +{ + "cases": [ + { + "category": "StandardLibrary", + "detail": "", + "expectation": "Simulation", + "name": "fifo_issue5::test_fifo_issue5_subtract_overflow", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/flip_flop.json b/crates/celox-test-suite/verification/xezim/flip_flop.json new file mode 100644 index 00000000000..1f4fd9ab116 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/flip_flop.json @@ -0,0 +1,1927 @@ +{ + "cases": [ + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_async_reset", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "flip_flop::test_ff_array_literal_default_expression at 1333:5: assertion failed: 0x0 != 0x55", + "expectation": "Simulation", + "name": "flip_flop::test_ff_array_literal_default_expression", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_array_literal_expression_order", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_array_literal_nested_default_multidim_expression", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_assert_message_output_argument_is_eager", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": true, + "tag_reasons": { + "eager_assertion_messages": "Requires eager message argument effects for Veryl's `$assert`/`$assert_continue` extension, including successful checks; standard SystemVerilog does not define these calls." + }, + "tags": [ + "eager_assertion_messages" + ] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_bits_and_size_array_dependencies_do_not_alias_later_write", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_bits_and_size_operands_do_not_alias_earlier_array_argument", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects negative bounds in elaborated for loops (InvalidForRange::NegativeBound). This is a frontend restriction, not an external simulator mismatch.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_restriction", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-negative-for-bounds" + ], + "id": "veryl_negative_for_bounds", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects negative bounds in elaborated for loops (InvalidForRange::NegativeBound). This is a frontend restriction, not an external simulator mismatch.", + "upstream": [] + }, + "name": "flip_flop::test_ff_constant_signed_bounds_in_unrolled_loops", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_divider_of_a_divider", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_dynamic_nonlocal_store_follows_pending_whole_write", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_effectful_array_item_output_is_not_a_read_alias", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_array_element_assignment_preserves_signedness", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_function_call_array_literal_branch_view_is_reused_after_merge", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_array_literal_default_fill_matches_formal_shape", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_function_call_array_literal_effect_is_eager_in_short_circuit_rhs", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_function_call_array_literal_effect_is_eager_in_ternary_arm", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_array_literal_element_uses_element_width", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_array_literal_element_uses_formal_context_width", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_function_call_array_literal_snapshots_scalar_before_callee_write", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_function_call_array_literal_snapshots_scalar_before_later_write", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": true, + "tag_reasons": { + "deferred_function_effects": "Requires Celox's deferred FF function effects so subsequent statements read pre-edge state; SV subroutine copy-out is blocking (IEEE 1800-2023 4.9.7).", + "evaluation_order": "Requires a particular evaluation order for effectful arguments or expression operands; SV does not guarantee that order (IEEE 1800-2023 13.5, 11.4.2)." + }, + "tags": [ + "evaluation_order", + "deferred_function_effects" + ] + }, + { + "category": "Sequential", + "detail": "flip_flop::test_ff_function_call_array_literal_supports_dynamic_multidim_indexing at 1799:5: assert_eq out_q: expected 0x11, got 0x0", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_array_literal_supports_dynamic_multidim_indexing", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_array_literal_view_dominates_conditional_access", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_function_call_array_literal_view_preserves_expression_order", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": true, + "tag_reasons": { + "evaluation_order": "Requires a particular evaluation order for effectful arguments or expression operands; SV does not guarantee that order (IEEE 1800-2023 13.5, 11.4.2)." + }, + "tags": [ + "evaluation_order" + ] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_function_call_array_literal_view_preserves_source_order", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": true, + "tag_reasons": { + "assignment_pattern_evaluation": "Requires source-order evaluation or a particular evaluation count for effectful assignment-pattern items; SV does not guarantee these choices (IEEE 1800-2023 10.9.1, 11.4.2)." + }, + "tags": [ + "assignment_pattern_evaluation" + ] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_function_call_bits_and_size_evaluate_effectful_array_argument", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_function_call_carries_branch_local_static_array_item_cache", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_chained_range_access_on_argument", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "xezim build exit status: 1; see /build.log\nParsed 2 file(s): 2 descriptions, 0 errors, 0 warnings\nerror: /source_0.sv:16:22: cannot assign logic [3:0] $[2] to argument 'x' of 'inner' of type logic [7:0] $[2]: element types logic [7:0] and logic [3:0] are not equivalent (IEEE 1800-2017 §6.22.2, §7.6)\n", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_converts_array_literal_view_for_wider_nested_formal", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "xezim build exit status: 1; see /build.log\nParsed 2 file(s): 2 descriptions, 0 errors, 0 warnings\nerror: /source_0.sv:13:22: cannot assign logic [3:0] $[2] to argument 'x' of 'inner' of type logic [7:0] $[2]: element types logic [7:0] and logic [3:0] are not equivalent (IEEE 1800-2017 §6.22.2, §7.6)\n", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_converts_forwarded_static_array_element", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "flip_flop::test_ff_function_call_dynamic_multidim_indexing_accepts_array_valued_items reads out_q with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_dynamic_multidim_indexing_accepts_array_valued_items", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_function_call_effectful_array_items_are_eager_before_conditional_access", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_expression", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_expression_with_if", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_function_call_expression_with_output_argument_and_return_value", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": true, + "tag_reasons": { + "deferred_function_effects": "Requires Celox's deferred FF function effects so subsequent statements read pre-edge state; SV subroutine copy-out is blocking (IEEE 1800-2023 4.9.7)." + }, + "tags": [ + "deferred_function_effects" + ] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_forwards_array_literal_view_to_nested_call", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_indexed_argument_access", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_indexed_nonvariable_argument_expression", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_function_call_keeps_array_view_active_for_output_index", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_function_call_merges_directly_forwarded_array_cache", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": true, + "tag_reasons": { + "evaluation_order": "Requires a particular evaluation order for effectful arguments or expression operands; SV does not guarantee that order (IEEE 1800-2023 13.5, 11.4.2)." + }, + "tags": [ + "evaluation_order" + ] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_function_call_merges_nested_array_state_at_cache_completion", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_function_call_merges_nested_array_state_at_static_cache_completion", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_function_call_merges_outer_array_view_across_nested_short_circuit", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "flip_flop::test_ff_function_call_multidim_array_literal_default_fill_matches_formal_shape reads out_q with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_multidim_array_literal_default_fill_matches_formal_shape", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "flip_flop::test_ff_function_call_multidim_array_literal_indexing_preserves_element_order at 2972:3: assert_eq out_q: expected 0x11, got 0x0", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_multidim_array_literal_indexing_preserves_element_order", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_multistatement_body", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_function_call_nested_bits_evaluates_effectful_array_argument", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_function_call_nested_output_statement_in_function_body", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_nonvariable_argument_preserves_self_sized_overflow_before_coercion", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_nonvariable_argument_uses_formal_shape_for_indexing", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_nonvariable_argument_uses_formal_width_before_slice", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_part_select_of_signed_formal_is_unsigned", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_preserves_unsigned_actual_when_widening_to_signed_formal", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_preserves_unsigned_formal_signedness_for_nonvariable_actual", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "flip_flop::test_ff_function_call_restores_array_literal_view_after_reentrant_call at 2677:3: assert_eq out_q: expected 0x11, got 0x0", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_restores_array_literal_view_after_reentrant_call", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "flip_flop::test_ff_function_call_restores_initialized_forwarded_alias_view at 2550:5: assert_eq out_q: expected 0x98, got 0xca", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_restores_initialized_forwarded_alias_view", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "flip_flop::test_ff_function_call_restores_nearest_array_view_after_deep_reentrant_call at 2702:3: assert_eq out_q: expected 0x11, got 0x0", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_restores_nearest_array_view_after_deep_reentrant_call", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_sign_extends_narrow_signed_actual_before_slice", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_function_call_snapshots_pure_array_items_before_later_effect", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": true, + "tag_reasons": { + "assignment_pattern_evaluation": "Requires source-order evaluation or a particular evaluation count for effectful assignment-pattern items; SV does not guarantee these choices (IEEE 1800-2023 10.9.1, 11.4.2).", + "deferred_function_effects": "Requires Celox's deferred FF function effects so subsequent statements read pre-edge state; SV subroutine copy-out is blocking (IEEE 1800-2023 4.9.7)." + }, + "tags": [ + "assignment_pattern_evaluation", + "deferred_function_effects" + ] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_function_call_statement_with_output_argument", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": true, + "tag_reasons": { + "deferred_function_effects": "Requires Celox's deferred FF function effects so subsequent statements read pre-edge state; SV subroutine copy-out is blocking (IEEE 1800-2023 4.9.7)." + }, + "tags": [ + "deferred_function_effects" + ] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_function_call_statement_with_output_argument_and_return_value", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": true, + "tag_reasons": { + "deferred_function_effects": "Requires Celox's deferred FF function effects so subsequent statements read pre-edge state; SV subroutine copy-out is blocking (IEEE 1800-2023 4.9.7)." + }, + "tags": [ + "deferred_function_effects" + ] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_function_call_step_access_on_nonvariable_argument", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_function_call_tracks_array_reads_in_output_indices", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_function_call_tracks_array_view_hidden_in_bound_literal", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_function_call_tracks_nested_array_reads_in_output_indices", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_function_call_tracks_nested_static_array_read_through_branch", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_function_output_index_uses_final_nonlocal_state", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_gated_clock_follows_its_enable", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_gated_clock_samples_pre_edge_state", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_i32_bitwise_steps_discard_bits_above_the_counter_width", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_if_reset_basic", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_if_reset_multi_cycle", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_if_reset_with_nested_if", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_inverted_clock_samples_after_the_rising_edge", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_nested_function_call_expression", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_nonblocking", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_nonlocal_source_ternary_preserves_unknown_merge", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_nonlocal_write_precedes_aliased_formal_output_copyout", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_outputless_wrapper_direct_dynamic_nonlocal_assignment_is_observable", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_outputless_wrapper_dynamic_indexed_copyout_to_nonlocal_is_observable", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_outputless_wrapper_expression_copyout_to_nonlocal_is_observable", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_outputless_wrapper_indexed_copyout_to_nonlocal_is_observable", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_outputless_wrapper_nested_copyout_to_nonlocal_is_observable", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_pure_input_is_snapshotted_before_later_effectful_input", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": true, + "tag_reasons": { + "deferred_function_effects": "Requires Celox's deferred FF function effects so subsequent statements read pre-edge state; SV subroutine copy-out is blocking (IEEE 1800-2023 4.9.7).", + "evaluation_order": "Requires a particular evaluation order for effectful arguments or expression operands; SV does not guarantee that order (IEEE 1800-2023 13.5, 11.4.2)." + }, + "tags": [ + "evaluation_order", + "deferred_function_effects" + ] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_register_bit_clock_follows_the_selected_bit", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_register_bit_clock_ignores_other_bits", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_register_gated_clock_rises_after_the_commit", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_register_gated_clock_uses_the_pre_edge_enable", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_runtime_for_bitwise_steps", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_runtime_for_bounds", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_runtime_for_break", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_runtime_for_forward_overshoot_exits_without_wraparound", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_runtime_for_reverse_singleton_exits_cleanly", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "flip_flop::test_ff_runtime_for_signed_inclusive_range_preserves_negative_bounds at 987:3: assert_eq q_last: expected 0x1, got 0xdeadbeef", + "expectation": "Simulation", + "name": "flip_flop::test_ff_runtime_for_signed_inclusive_range_preserves_negative_bounds", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_runtime_for_unsigned_slice_bound_zero_extends_signed_source", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_runtime_for_zero_iteration_mul_loop_is_allowed", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_runtime_function_snapshots_helper_input_before_callee_nonlocal_write", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_runtime_function_snapshots_input_before_callee_nonlocal_write", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_runtime_reverse_exclusive_i32_upper_sentinel", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "flip_flop::test_ff_runtime_reverse_min_i32_end_wraps_before_range_check at 941:3: assert_eq q: expected 0x7fffffff, got 0x0", + "expectation": "Simulation", + "name": "flip_flop::test_ff_runtime_reverse_min_i32_end_wraps_before_range_check", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "xezim testbench failed: exit status: 124, without $finish; see runtime.log and protocol.log\n[INIT-REG] initialized 1 register signals to 0\n", + "expectation": "Simulation", + "name": "flip_flop::test_ff_runtime_reverse_step_matches_emitted_sv_order", + "phase": "execute", + "status": "runtime_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_short_circuit_runtime_write_preserves_later_state_source", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": true, + "tag_reasons": { + "deferred_function_effects": "Requires Celox's deferred FF function effects so subsequent statements read pre-edge state; SV subroutine copy-out is blocking (IEEE 1800-2023 4.9.7)." + }, + "tags": [ + "deferred_function_effects" + ] + }, + { + "category": "Sequential", + "detail": "flip_flop::test_ff_signed_xor_step_uses_loop_counter_width at 763:3: assert_eq q: expected 0x7ffffff8, got 0x0", + "expectation": "Simulation", + "name": "flip_flop::test_ff_signed_xor_step_uses_loop_counter_width", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_skipped_conditional_nonlocal_write_preserves_prior_ff_assignment", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_statement_after_if_reset_keeps_source_order", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "flip_flop::test_ff_statement_function_direct_nonlocal_assignment_is_observable", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_static_and_dynamic_writes_share_sparse_state", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_struct_constructor_expression", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_struct_constructor_expression_literal_order", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "flip_flop::test_ff_struct_constructor_signed_member_extension at 1295:3: assert_eq out_pad: expected 0xffff, got 0xff", + "expectation": "Simulation", + "name": "flip_flop::test_ff_struct_constructor_signed_member_extension", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_ff_swap_correctness", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_hierarchical_clocks", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_multiple_async_resets", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "flip_flop::test_multiple_clocks", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/floating_point.json b/crates/celox-test-suite/verification/xezim/floating_point.json new file mode 100644 index 00000000000..3f62128359e --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/floating_point.json @@ -0,0 +1,81 @@ +{ + "cases": [ + { + "category": "Operators", + "detail": "floating_point::arithmetic_and_rounding at 27:34: assert_eq quotient: expected 0xfffffffc, got 0x7ffffffd", + "expectation": "Simulation", + "name": "floating_point::arithmetic_and_rounding", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "floating_point::f32_precision_and_conversion at 45:3: assert_eq narrow: expected 0x1000000, got 0x1000001", + "expectation": "Simulation", + "name": "floating_point::f32_precision_and_conversion", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "floating_point::formatted_display_and_write", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "floating_point::integral_constants_from_float", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "floating_point::scalar_port_and_function_conversions at 84:3: assert_eq q: expected 0xfffffffd, got 0xfffffffe", + "expectation": "Simulation", + "name": "floating_point::scalar_port_and_function_conversions", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "floating_point::sequential_float at 66:3: assert_eq result: expected 0xfffffffe, got 0x7fffffff", + "expectation": "Simulation", + "name": "floating_point::sequential_float", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "floating_point::unknown_integer_conversion", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/for_loop_unroll.json b/crates/celox-test-suite/verification/xezim/for_loop_unroll.json new file mode 100644 index 00000000000..74a1bcba1c6 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/for_loop_unroll.json @@ -0,0 +1,37 @@ +{ + "cases": [ + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "for_loop_unroll::test_for_loop_unroll_break_in_always_ff", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "for_loop_unroll::test_for_loop_unroll_shift_register", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "for_loop_unroll::test_for_loop_unroll_with_default_zero_reset", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/four_state.json b/crates/celox-test-suite/verification/xezim/four_state.json new file mode 100644 index 00000000000..cdcd941ec5d --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/four_state.json @@ -0,0 +1,917 @@ +{ + "cases": [ + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_ff_struct_logic_to_bit_coercion_clears_mask", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_127bit", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_65bit_boundary", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_all_defined", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_always_comb_chain", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_and_or", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_arithmetic_ops", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_cascaded_mux_with_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_case_defined_selector", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_case_x_in_selector", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_comb_clock_edges_follow_table_9_2", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_comparison_with_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_concat", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_concat_chunk_boundary_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_concat_odd_width", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_concat_three_elements", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_div_with_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_eq_wildcard_value_at_wildcard_pos", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_equality_known_mismatch_with_unknown_bits", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_explicit_cast_with_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_ff_capture_and_reset", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_ff_conditional_with_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_ff_sync_reset_with_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_ge_le_with_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_gt_with_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "four_state::test_four_state_initial_and_set at 49:3: assertion failed: 0xff != 0x0", + "expectation": "Simulation", + "name": "four_state::test_four_state_initial_and_set", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "four_state::test_four_state_internal_async_reset_edges_follow_table_9_2 at 2588:5: assert_eq hits_l: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "four_state::test_four_state_internal_async_reset_edges_follow_table_9_2", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_logic_and_dominant_zero", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_logic_or_dominant_one", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_logical_not_with_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_mixing", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_mixing_propagation", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_mod_with_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_mul_with_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_multibit_mux_with_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_mux_both_branches_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_mux_x_condition", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_mux_x_in_branch", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_ne_wildcard_value_at_wildcard_pos", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_ne_with_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_negation_with_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_procedural_case_x_uses_default", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_procedural_if_known_nonzero_with_x_is_true", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_reduction_and_dominant_zero", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_reduction_or_dominant_one", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_reduction_xor_with_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_register_clock_edges_follow_table_9_2", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_sar_both_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "four_state::test_four_state_sar_x_shift_amount at 1010:3: 0x80 >>> 2 = 0xE0 (sign extend): 0x20 != 0xe0", + "expectation": "Simulation", + "name": "four_state::test_four_state_sar_x_shift_amount", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_shift_both_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_shift_by_constant", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_shift_by_x_amount", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_shifts_preserve_xz", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "four_state::test_four_state_signed_comparison_with_x at 863:3: signed: -1 < 1 should be true: 0x0 != 0x1", + "expectation": "Simulation", + "name": "four_state::test_four_state_signed_comparison_with_x", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_unary_ops", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_wide_128bit", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_wide_128bit_simple", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_wide_arith", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_wide_comparison_with_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_wide_concat_mixed", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_wide_div_with_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_wide_ge_le_with_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_wide_gt_with_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_wide_logical_not_with_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_wide_mod_with_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_wide_mul_with_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_wide_ne_with_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_wide_negation_with_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_wide_reduction_and_dominant", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_wide_reduction_or_dominant", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_wide_reduction_with_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_wide_shifts", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "four_state::test_four_state_wide_signed at 619:3: SAR sign extension should propagate X: 0xffffffffffffffff != 0xffffffffffffffffffffffffffffffff", + "expectation": "Simulation", + "name": "four_state::test_four_state_wide_signed", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "four_state::test_four_state_wide_signed_comparison_with_x at 2089:3: Wide signed: -1 < 1 should be true: 0x0 != 0x1", + "expectation": "Simulation", + "name": "four_state::test_four_state_wide_signed_comparison_with_x", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_wide_unary_not_with_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_wide_wildcard_equality", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_width_narrowing_with_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_width_widening_with_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_four_state_xor_partial_x", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_read_a", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_x_literal_encoding", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_z_literal_passthrough", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state::test_z_mux_tristate_pattern", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/four_state_expression_semantics.json b/crates/celox-test-suite/verification/xezim/four_state_expression_semantics.json new file mode 100644 index 00000000000..1ad05bab1ab --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/four_state_expression_semantics.json @@ -0,0 +1,164 @@ +{ + "cases": [ + { + "category": "FourState", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "four_state_expression_semantics::effectful_ternary_takes_known_true_branch_despite_unknown_bits", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "four_state_expression_semantics::ff_procedural_control_uses_known_nonzero_truth", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "four_state_expression_semantics::ff_unknown_reset_is_not_active at 287:7: assert_eq q_low: expected 0x1, got 0x0 (q_low, reset=X)", + "expectation": "Simulation", + "name": "four_state_expression_semantics::ff_unknown_reset_is_not_active", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state_expression_semantics::indeterminate_short_circuit_lhs_executes_effectful_rhs", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "four_state_expression_semantics::indeterminate_ternary_executes_effectful_arms_in_order at 68:3: assert_eq q_output: expected 0x2, got 0x3", + "expectation": "Simulation", + "name": "four_state_expression_semantics::indeterminate_ternary_executes_effectful_arms_in_order", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state_expression_semantics::logical_not_known_one_dominates_unknown_bits", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state_expression_semantics::logical_unknown_truth_table_matches_comb_and_ff", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state_expression_semantics::ternary_unknown_condition_merges_branch_bits", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state_expression_semantics::wide_logical_unknown_truth_table_uses_dominant_values", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "four_state_expression_semantics::wide_ternary_condition_known_one_dominates_unknown_bits at 322:7: assert_eq c: expected 0xa5, got 0xX (c, lower unknown bit is X)", + "expectation": "Simulation", + "name": "four_state_expression_semantics::wide_ternary_condition_known_one_dominates_unknown_bits", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "four_state_expression_semantics::wide_ternary_unknown_condition_merges_every_arm_chunk at 434:5: assert_eq c: expected 0xX000000000000000X000000000000000X, got 0xX000000000000000X000000000000000X (c, cond=X)", + "expectation": "Simulation", + "name": "four_state_expression_semantics::wide_ternary_unknown_condition_merges_every_arm_chunk", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "FourState", + "detail": "", + "expectation": "Simulation", + "name": "four_state_expression_semantics::wide_unaligned_partial_store_and_slice_preserve_four_state_bits", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/function_arguments.json b/crates/celox-test-suite/verification/xezim/function_arguments.json new file mode 100644 index 00000000000..4e99210e540 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/function_arguments.json @@ -0,0 +1,233 @@ +{ + "cases": [ + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "function_arguments::test_comb_expression_output_copyout_uses_unsigned_formal_for_signed_body", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "function_arguments::test_comb_inout_statement_copies_input_before_mutating_formal", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "function_arguments::test_comb_nested_output_copyout_stops_at_early_return", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "function_arguments::test_comb_output_copyout_freezes_aliased_inputs_and_return", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "function_arguments::test_comb_output_copyout_to_concat_preserves_unselected_bits_and_elements", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "function_arguments::test_comb_statement_output_copyout_obeys_named_argument_order", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "function_arguments::test_ff_expression_output_copyout_extends_before_splitting_concat", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "function_arguments::test_ff_function_local_snapshot_ignores_later_assignment", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "function_arguments::test_ff_inout_expression_copyout_commits_with_nonblocking_assignments", + "phase": "execute", + "status": "passed", + "stronger_than_sv": true, + "tag_reasons": { + "deferred_function_effects": "Requires Celox's deferred FF function effects so subsequent statements read pre-edge state; SV subroutine copy-out is blocking (IEEE 1800-2023 4.9.7)." + }, + "tags": [ + "deferred_function_effects" + ] + }, + { + "category": "Functions", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "function_arguments::test_ff_nested_output_copyout_is_visible_before_outer_copyout", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": true, + "tag_reasons": { + "deferred_function_effects": "Requires Celox's deferred FF function effects so subsequent statements read pre-edge state; SV subroutine copy-out is blocking (IEEE 1800-2023 4.9.7)." + }, + "tags": [ + "deferred_function_effects" + ] + }, + { + "category": "Functions", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "function_arguments::test_ff_output_copyout_to_dynamic_slice_preserves_other_bits", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": true, + "tag_reasons": { + "deferred_function_effects": "Requires Celox's deferred FF function effects so subsequent statements read pre-edge state; SV subroutine copy-out is blocking (IEEE 1800-2023 4.9.7)." + }, + "tags": [ + "deferred_function_effects" + ] + }, + { + "category": "Functions", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "function_arguments::test_ff_statement_output_copyout_freezes_all_inputs", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": true, + "tag_reasons": { + "deferred_function_effects": "Requires Celox's deferred FF function effects so subsequent statements read pre-edge state; SV subroutine copy-out is blocking (IEEE 1800-2023 4.9.7)." + }, + "tags": [ + "deferred_function_effects" + ] + }, + { + "category": "Functions", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "function_arguments::test_output_copyout_converts_formal_width_and_signedness_in_comb_and_ff", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/function_bodies.json b/crates/celox-test-suite/verification/xezim/function_bodies.json new file mode 100644 index 00000000000..55c010bb49b --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/function_bodies.json @@ -0,0 +1,103 @@ +{ + "cases": [ + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "function_bodies::test_concatenated_destination_in_function_body", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "function_bodies::test_dynamic_index_write_to_function_local", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "function_bodies::test_nested_output_to_concat_and_dynamic_local", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "function_bodies::test_out_of_range_dynamic_write_to_function_local_is_ignored", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "function_bodies::test_path_without_return_yields_unknown at 167:3: assertion failed: 0x0 != 0xff", + "expectation": "Simulation", + "name": "function_bodies::test_path_without_return_yields_unknown", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "function_bodies::test_runtime_bounded_loop_function_reentry", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "function_bodies::test_runtime_bounded_loop_in_function", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "function_bodies::test_runtime_effects_nested_in_function_statements", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "function_bodies::test_runtime_select_of_expression_bound_formal", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/generic_identity.json b/crates/celox-test-suite/verification/xezim/generic_identity.json new file mode 100644 index 00000000000..43ad06a53db --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/generic_identity.json @@ -0,0 +1,26 @@ +{ + "cases": [ + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "generic_identity::default_and_explicit_value_generics_preserve_instance_inputs", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "generic_identity::nested_value_generics_keep_distinct_bodies", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/hierarchical_assignment.json b/crates/celox-test-suite/verification/xezim/hierarchical_assignment.json new file mode 100644 index 00000000000..d81843925aa --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/hierarchical_assignment.json @@ -0,0 +1,26 @@ +{ + "cases": [ + { + "category": "Hierarchy", + "detail": "compile hierarchical_assignment::disjoint_loop: xezim build exit status: 1; see /build.log\n/source_0.sv:30:9: error: macro `CELOX_SUITE_FINISH` missing required argument `unused` (IEEE 1800-2017 §22.5.1)\n 30 | `CELOX_SUITE_FINISH();\n | ^~~~~~~~~~~~~~~~~~~\nError: preprocessing failed (1 error(s))\n", + "expectation": "Simulation", + "name": "hierarchical_assignment::disjoint_loop", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "compile hierarchical_assignment::selections: xezim build exit status: 1; see /build.log\n/source_0.sv:49:9: error: macro `CELOX_SUITE_FINISH` missing required argument `unused` (IEEE 1800-2017 §22.5.1)\n 49 | `CELOX_SUITE_FINISH();\n | ^~~~~~~~~~~~~~~~~~~\nError: preprocessing failed (1 error(s))\n", + "expectation": "Simulation", + "name": "hierarchical_assignment::selections", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/hierarchy.json b/crates/celox-test-suite/verification/xezim/hierarchy.json new file mode 100644 index 00000000000..a7d92980a81 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/hierarchy.json @@ -0,0 +1,312 @@ +{ + "cases": [ + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::test_child_signal_access", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::test_constant_propagation_across_hierarchy", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::test_deep_hierarchical_path_resolution", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "invalid design was accepted: hierarchy::test_dynamic_minus_colon_output_port_rmw", + "expectation": "CompilationError", + "name": "hierarchy::test_dynamic_minus_colon_output_port_rmw", + "phase": "execute", + "status": "unexpected_accept", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "invalid design was accepted: hierarchy::test_dynamic_output_port_converts_four_state_child_to_two_state_parent", + "expectation": "CompilationError", + "name": "hierarchy::test_dynamic_output_port_converts_four_state_child_to_two_state_parent", + "phase": "execute", + "status": "unexpected_accept", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "invalid design was accepted: hierarchy::test_dynamic_output_port_rmw_preserves_unselected_bits", + "expectation": "CompilationError", + "name": "hierarchy::test_dynamic_output_port_rmw_preserves_unselected_bits", + "phase": "execute", + "status": "unexpected_accept", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "invalid design was accepted: hierarchy::test_dynamic_prefix_colon_output_port_allows_zero_lsb", + "expectation": "CompilationError", + "name": "hierarchy::test_dynamic_prefix_colon_output_port_allows_zero_lsb", + "phase": "execute", + "status": "unexpected_accept", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "invalid design was accepted: hierarchy::test_dynamic_step_output_port_rmw", + "expectation": "CompilationError", + "name": "hierarchy::test_dynamic_step_output_port_rmw", + "phase": "execute", + "status": "unexpected_accept", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::test_flattened_instance_port_connection", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::test_hierarchical_concat_feedback_runtime", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::test_hierarchical_concat_feedback_runtime_multi_observe", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::test_hierarchical_concat_feedback_with_constant_middle_bit", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::test_hierarchical_concat_then_overlap_dynamic_index_runtime", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::test_hierarchical_dual_dynamic_readers_feedback_runtime", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::test_hierarchical_dynamic_index_feedback_runtime", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::test_hierarchical_overlapping_partial_write_dynamic_index_runtime", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::test_inactive_instance_input_output_call_adds_no_parent_driver", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::test_instance_array_broadcast_and_unpacked_array_connection", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::test_instance_input_function_output_concat_dynamic_writeback", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "hierarchy::test_instance_input_function_output_writeback reads seen_o with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "hierarchy::test_instance_input_function_output_writeback", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "hierarchy::test_instance_input_port_assignment_width_context at 368:3: assert_eq o_s16: expected 0xff80, got 0x80", + "expectation": "Simulation", + "name": "hierarchy::test_instance_input_port_assignment_width_context", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "invalid design was accepted: hierarchy::test_instance_output_concat_advances_each_destination", + "expectation": "CompilationError", + "name": "hierarchy::test_instance_output_concat_advances_each_destination", + "phase": "execute", + "status": "unexpected_accept", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "invalid design was accepted: hierarchy::test_instance_output_dynamic_index_composes_aliasing_writeback", + "expectation": "CompilationError", + "name": "hierarchy::test_instance_output_dynamic_index_composes_aliasing_writeback", + "phase": "execute", + "status": "unexpected_accept", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "invalid design was accepted: hierarchy::test_instance_output_dynamic_index_function_output_writeback", + "expectation": "CompilationError", + "name": "hierarchy::test_instance_output_dynamic_index_function_output_writeback", + "phase": "execute", + "status": "unexpected_accept", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "hierarchy::test_instance_unpacked_array_slice_input at 48:3: assert_eq o_data: expected 0x3412, got 0x0", + "expectation": "Simulation", + "name": "hierarchy::test_instance_unpacked_array_slice_input", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "hierarchy::test_instance_unpacked_array_slice_output at 69:3: assert_eq o_data: expected 0x3412, got 0x0", + "expectation": "Simulation", + "name": "hierarchy::test_instance_unpacked_array_slice_output", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::test_multiple_instances_isolation", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "hierarchy::test_unconnected_child_output_needs_no_parent_glue", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/interface.json b/crates/celox-test-suite/verification/xezim/interface.json new file mode 100644 index 00000000000..9b78f1aa1dc --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/interface.json @@ -0,0 +1,334 @@ +{ + "cases": [ + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interface::test_generic_interface_port", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interface::test_interface_always_comb_packed_array_member", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interface::test_interface_always_ff_on_member_clock", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "interface::test_interface_array_direct_function_calls reads y0 with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "interface::test_interface_array_direct_function_calls", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interface::test_interface_connect_modport_to_constant", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interface::test_interface_connect_operator", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interface::test_interface_connection", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interface::test_interface_continuous_assign_logic", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interface::test_interface_four_state_x_propagation", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interface::test_interface_instance_array_in_generate", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interface::test_interface_instance_inside_generate_for", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interface::test_interface_instance_inside_generate_if", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interface::test_interface_member_access_in_comb_and_ff", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interface::test_interface_param_and_const", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interface::test_interface_param_sized_members", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interface::test_interface_struct_and_packed_array_members", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interface::test_interface_type_parameter", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interface::test_interface_valid_ready_handshake", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interface::test_mixin_interface", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interface::test_modport_all_input_and_all_output_defaults", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interface::test_modport_array_port", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interface::test_modport_clock_reset_drive_module_ff", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interface::test_modport_converse_same_and_partial_defaults", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interface::test_modport_forwarded_through_hierarchy", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interface::test_modport_import_function", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interface::test_modport_import_function_forwarded_from_instance_array", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interface::test_modport_import_function_in_always_ff", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interface::test_nested_interface_instance", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interface::test_parameterized_interface_header_imports", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "interface::test_proto_interface_generic_module", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/issue3_repro.json b/crates/celox-test-suite/verification/xezim/issue3_repro.json new file mode 100644 index 00000000000..4ee8a1c4f36 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/issue3_repro.json @@ -0,0 +1,26 @@ +{ + "cases": [ + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "issue3_repro::test_comb_mux_i8_vs_i16_correctness", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "issue3_repro::test_comb_mux_i8_vs_i16_four_state", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/latch.json b/crates/celox-test-suite/verification/xezim/latch.json new file mode 100644 index 00000000000..89dcf693e74 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/latch.json @@ -0,0 +1,59 @@ +{ + "cases": [ + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "latch::dynamic_partial_writes", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "latch::four_state_enable", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "latch::partial_ranges", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "latch::transparent_chain", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "latch::unpacked_array_input", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/linear_sorter_pull.json b/crates/celox-test-suite/verification/xezim/linear_sorter_pull.json new file mode 100644 index 00000000000..de6da808a57 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/linear_sorter_pull.json @@ -0,0 +1,37 @@ +{ + "cases": [ + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "linear_sorter_pull::test_sorter_empty_flag_single_push_pop", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "linear_sorter_pull::test_sorter_push_pop_empty", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "linear_sorter_pull::test_sorter_simultaneous_push_pop", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/logical_shift_count.json b/crates/celox-test-suite/verification/xezim/logical_shift_count.json new file mode 100644 index 00000000000..8a9b794eb3f --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/logical_shift_count.json @@ -0,0 +1,48 @@ +{ + "cases": [ + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "logical_shift_count::four_state_dynamic_counts", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "logical_shift_count::two_state_dynamic_counts", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "logical_shift_count::two_state_single_bit_wrap", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "logical_shift_count::two_state_wide_count at 285:3: assert_eq shl8: expected 0x0, got 0xff (8-bit << 0x10000000000000000)", + "expectation": "Simulation", + "name": "logical_shift_count::two_state_wide_count", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/loop_idiom.json b/crates/celox-test-suite/verification/xezim/loop_idiom.json new file mode 100644 index 00000000000..c71c844aae2 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/loop_idiom.json @@ -0,0 +1,37 @@ +{ + "cases": [ + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "loop_idiom::test_guarded_packed_scan", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "loop_idiom::test_guarded_scan_preserves_independent_outputs", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "loop_idiom::test_recovered_bit_count_loop_semantics", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/multi_clock.json b/crates/celox-test-suite/verification/xezim/multi_clock.json new file mode 100644 index 00000000000..b8db5d976ba --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/multi_clock.json @@ -0,0 +1,37 @@ +{ + "cases": [ + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "multi_clock::test_clock_domain_crossing_pattern", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "multi_clock::test_independent_clock_domains", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "multi_clock::test_separate_resets_per_domain", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/nba_cross_block.json b/crates/celox-test-suite/verification/xezim/nba_cross_block.json new file mode 100644 index 00000000000..7570be1a1ff --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/nba_cross_block.json @@ -0,0 +1,37 @@ +{ + "cases": [ + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "nba_cross_block::test_nba_separate_blocks_pipeline", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "nba_cross_block::test_nba_separate_blocks_pipeline_reversed", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "nba_cross_block::test_nba_separate_blocks_swap", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/nba_cross_block_empty.json b/crates/celox-test-suite/verification/xezim/nba_cross_block_empty.json new file mode 100644 index 00000000000..8d7c8f5a3dd --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/nba_cross_block_empty.json @@ -0,0 +1,37 @@ +{ + "cases": [ + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "nba_cross_block_empty::test_cross_module_count_and_empty_ff", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "nba_cross_block_empty::test_empty_never_stuck_at_zero", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "nba_cross_block_empty::test_same_module_count_and_empty_ff", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/nba_dynamic_array.json b/crates/celox-test-suite/verification/xezim/nba_dynamic_array.json new file mode 100644 index 00000000000..49f5e2d522c --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/nba_dynamic_array.json @@ -0,0 +1,180 @@ +{ + "cases": [ + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "nba_dynamic_array::test_always_ff_let_bindings_are_visible_immediately", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "nba_dynamic_array::test_child_dynamic_ff_read_reaches_parent_after_same_edge_enable", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "nba_dynamic_array::test_dynamic_array_write_is_deferred_across_ff_blocks", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "nba_dynamic_array::test_dynamic_ff_array_partial_squash_preserves_head_and_branch", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "nba_dynamic_array::test_line_write_loop_updates_large_sparse_ff_array", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "nba_dynamic_array::test_out_of_range_dynamic_comb_access", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "nba_dynamic_array::test_out_of_range_dynamic_ff_access_four_state", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "nba_dynamic_array::test_out_of_range_dynamic_ff_stores_are_ignored", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "nba_dynamic_array::test_packed_rat_checkpoint_round_trip", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "nba_dynamic_array::test_partial_sparse_chunks_do_not_overlap_adjacent_variables", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "nba_dynamic_array::test_partly_out_of_range_dynamic_ff_part_select reads rp_q with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "nba_dynamic_array::test_partly_out_of_range_dynamic_ff_part_select", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "nba_dynamic_array::test_sparse_commit_reaches_every_summary_word", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "nba_dynamic_array::test_static_ff_writes_are_applied_after_all_rhs_evaluation", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "nba_dynamic_array::test_subbyte_arithmetic_padding_does_not_corrupt_concat", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "nba_dynamic_array::test_unaligned_309_bit_dynamic_ff_round_trip", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "nba_dynamic_array::test_wide_dynamic_ff_checkpoint_round_trip", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/operators.json b/crates/celox-test-suite/verification/xezim/operators.json new file mode 100644 index 00000000000..f8cf84ad784 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/operators.json @@ -0,0 +1,429 @@ +{ + "cases": [ + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_as_operator_passthrough", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_bitwise_operations", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_cast_signed_to_unsigned_affects_comparison", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_comb_bitxnor", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_comb_div", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_comb_reduction_nand", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_comb_reduction_nor", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_comb_reduction_xnor", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_comb_rem", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_comparisons", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_ff_bitxnor", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_ff_comb_constant_folding_consistency", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_ff_constant_two_state_initialization", + "phase": "execute", + "status": "passed", + "stronger_than_sv": true, + "tag_reasons": { + "two_state_initialization": "Explicitly requires the suite's zero-initialized two-state storage even for emitted four-state logic; SV default initialization depends on the declared type (IEEE 1800-2023 6.8, Table 6-7)." + }, + "tags": [ + "two_state_initialization" + ] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_ff_div", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_ff_reduction_nand", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_ff_reduction_nor", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_ff_rem", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_logical_operators_execution", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_mixed_signed_unsigned_comparison", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_nested_ternary", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_pow_operator_constant_exponent", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_pow_operator_constant_exponent_ff", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_extension", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-ff-effects" + ], + "id": "veryl_ff_effects", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects function output or non-local effects in always_ff. These fixtures use the Celox extension; strict SV emission stops before either simulator runs.", + "upstream": [] + }, + "name": "operators::test_pow_operator_runtime_exponent_comb_and_ff", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_pow_operator_runtime_signed_and_unknown_operands", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_reduction_operators_execution", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_shift_logical_vs_arithmetic", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "operators::test_signed_arithmetic_shift_right at 80:3: assert_eq o_sar: expected 0xe0, got 0x20", + "expectation": "Simulation", + "name": "operators::test_signed_arithmetic_shift_right", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_signed_comparison_after_as_cast", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "operators::test_signed_comparison_and_extension at 147:3: assert_eq o_lt: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "operators::test_signed_comparison_and_extension", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_subtraction_underflow", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "operators::test_symbolic_store_preserves_declared_state_signedness at 350:3: assert_eq signed_cmp: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "operators::test_symbolic_store_preserves_declared_state_signedness", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_ternary_div_zero_branch_is_lazy", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_ternary_operator", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_ternary_rem_zero_branch_is_lazy", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_unary_operations", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "operators::test_unary_plus_operator", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "operators::test_unsigned_type_cast_does_not_inherit_source_signedness at 380:3: assert_eq cmp: expected 0x0, got 0x1", + "expectation": "Simulation", + "name": "operators::test_unsigned_type_cast_does_not_inherit_source_signedness", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/packed_scatter_store.json b/crates/celox-test-suite/verification/xezim/packed_scatter_store.json new file mode 100644 index 00000000000..cd352314971 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/packed_scatter_store.json @@ -0,0 +1,15 @@ +{ + "cases": [ + { + "category": "Arrays", + "detail": "", + "expectation": "Simulation", + "name": "packed_scatter_store::packed_scatter_last_lane_does_not_touch_adjacent_storage", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/param_override.json b/crates/celox-test-suite/verification/xezim/param_override.json new file mode 100644 index 00000000000..23159304e4e --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/param_override.json @@ -0,0 +1,114 @@ +{ + "cases": [ + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "param_override::test_four_state_integral_instance_override", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "param_override::test_param_const_fold_if", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "param_override::test_param_in_always_ff", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "param_override::test_param_in_child_always_ff", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "param_override::test_param_override_basic_width", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "param_override::test_param_override_child_propagation", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "param_override::test_param_override_default_value", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "param_override::test_param_override_logic_reflection", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "param_override::test_param_override_multiple", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "param_override::test_wide_integral_instance_override", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/partial_word_shift.json b/crates/celox-test-suite/verification/xezim/partial_word_shift.json new file mode 100644 index 00000000000..0132d36a567 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/partial_word_shift.json @@ -0,0 +1,81 @@ +{ + "cases": [ + { + "category": "Operators", + "detail": "partial_word_shift::four_state_matrix at 308:11: assert_eq y63: expected 0x6000000000000002, got 0x2000000000000002 (runtime SAR width=63)", + "expectation": "Simulation", + "name": "partial_word_shift::four_state_matrix", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "partial_word_shift::four_state_wide_counts at 472:9: assert_eq y129: expected 0x180000000000000ZZ, got 0x80000000000000ZZ (SAR with 129-bit count)", + "expectation": "Simulation", + "name": "partial_word_shift::four_state_wide_counts", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "partial_word_shift::sar_padding_does_not_escape at 358:9: assert_eq y65: expected 0x18000000000000002, got 0x8000000000000002 (SAR padding width=65)", + "expectation": "Simulation", + "name": "partial_word_shift::sar_padding_does_not_escape", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "partial_word_shift::sign_x_65 at 26:3: assert_eq y: expected 0xX000000000000002, got 0xX000000000000002", + "expectation": "Simulation", + "name": "partial_word_shift::sign_x_65", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "partial_word_shift::sign_z_65 at 15:3: assert_eq y: expected 0xZ000000000000002, got 0xZ000000000000002", + "expectation": "Simulation", + "name": "partial_word_shift::sign_z_65", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "partial_word_shift::two_state_matrix at 161:11: assert_eq y63: expected 0x6000000000000002, got 0x2000000000000002 (runtime SAR width=63)", + "expectation": "Simulation", + "name": "partial_word_shift::two_state_matrix", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "partial_word_shift::two_state_runtime_matrix at 428:11: assert_eq y63: expected 0x6000000000000002, got 0x2000000000000002 (runtime SAR width=63)", + "expectation": "Simulation", + "name": "partial_word_shift::two_state_runtime_matrix", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/proto_package.json b/crates/celox-test-suite/verification/xezim/proto_package.json new file mode 100644 index 00000000000..0dea12f9b51 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/proto_package.json @@ -0,0 +1,26 @@ +{ + "cases": [ + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "proto_package::test_proto_package_builtin_comparison", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Hierarchy", + "detail": "", + "expectation": "Simulation", + "name": "proto_package::test_proto_package_with_custom_function", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/recovered_unrolled_fold.json b/crates/celox-test-suite/verification/xezim/recovered_unrolled_fold.json new file mode 100644 index 00000000000..aa3fa0895d6 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/recovered_unrolled_fold.json @@ -0,0 +1,59 @@ +{ + "cases": [ + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "recovered_unrolled_fold::recovered_independent_reductions_share_input_correctly", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "recovered_unrolled_fold::recovered_mmio_read_write_dependencies_are_independent", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "recovered_unrolled_fold::recovered_unrolled_guard_uses_procedural_four_state_truth", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "recovered_unrolled_fold::recovered_unrolled_multi_state_priority", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "recovered_unrolled_fold::recovered_unrolled_store_forward_selects_older_entry at 132:5: assert_eq mask: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "recovered_unrolled_fold::recovered_unrolled_store_forward_selects_older_entry", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/reset_edge_cases.json b/crates/celox-test-suite/verification/xezim/reset_edge_cases.json new file mode 100644 index 00000000000..b70a0c07f35 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/reset_edge_cases.json @@ -0,0 +1,59 @@ +{ + "cases": [ + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "reset_edge_cases::test_nonzero_reset_value", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "reset_edge_cases::test_reset_async_high", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "reset_edge_cases::test_reset_sync_high", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "reset_edge_cases::test_reset_sync_low", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Sequential", + "detail": "", + "expectation": "Simulation", + "name": "reset_edge_cases::test_shared_reset", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/self_determination.json b/crates/celox-test-suite/verification/xezim/self_determination.json new file mode 100644 index 00000000000..117f542aee5 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/self_determination.json @@ -0,0 +1,70 @@ +{ + "cases": [ + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "self_determination::test_comparison_self_determination", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "self_determination::test_concatenation_constant_self_determination", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "self_determination::test_concatenation_constant_self_determination_runtime", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "self_determination::test_concatenation_self_determination", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "self_determination::test_shift_rhs_constant_self_determination", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "self_determination::test_shift_rhs_self_determination", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/shift_bug_test.json b/crates/celox-test-suite/verification/xezim/shift_bug_test.json new file mode 100644 index 00000000000..878a4b54bdd --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/shift_bug_test.json @@ -0,0 +1,81 @@ +{ + "cases": [ + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "shift_bug_test::test_dynamic_shift_in_if_reset", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "shift_bug_test::test_right_shift_in_if_reset", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "shift_bug_test::test_shift_ifreset_for", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "shift_bug_test::test_shift_in_for_loop", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "shift_bug_test::test_shift_in_if_reset", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "shift_bug_test::test_shift_to_array_by_loop_index", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "shift_bug_test::test_shift_with_wide_const_amount", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/shift_signedness.json b/crates/celox-test-suite/verification/xezim/shift_signedness.json new file mode 100644 index 00000000000..4473a63dfbb --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/shift_signedness.json @@ -0,0 +1,70 @@ +{ + "cases": [ + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "shift_signedness::test_shift_constant_folding_native", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "shift_signedness::test_shift_constant_folding_wide", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "shift_signedness::test_shift_right_arithmetic_native at 21:3: assert_eq o_comb: expected 0xc000000000000000, got 0x4000000000000000 (Comb arithmetic shift failed)", + "expectation": "Simulation", + "name": "shift_signedness::test_shift_right_arithmetic_native", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "shift_signedness::test_shift_right_arithmetic_wide at 108:3: assert_eq o_comb: expected 0xc0000000000000000000000000000000, got 0x40000000000000000000000000000000 (Comb wide arithmetic shift failed)", + "expectation": "Simulation", + "name": "shift_signedness::test_shift_right_arithmetic_wide", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "shift_signedness::test_shift_right_logical_signed_native", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "shift_signedness::test_shift_right_logical_wide", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/signed_divrem.json b/crates/celox-test-suite/verification/xezim/signed_divrem.json new file mode 100644 index 00000000000..18548ec9a46 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/signed_divrem.json @@ -0,0 +1,74 @@ +{ + "cases": [ + { + "category": "Operators", + "detail": "signed_divrem::signed_divrem_always_ff at 201:3: assert_eq q: expected 0xfd, got 0x7c", + "expectation": "Simulation", + "name": "signed_divrem::signed_divrem_always_ff", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "signed_divrem::signed_divrem_four_state_unknown", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "signed_divrem::signed_divrem_four_state_zero_divisor at 335:13: assert_eq sq8: expected 0xf2, got 0x16 (sq8)", + "expectation": "Simulation", + "name": "signed_divrem::signed_divrem_four_state_zero_divisor", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "signed_divrem::signed_divrem_i128 at 152:3: assert_eq q: expected 0xfffffffffffffffffffffffffffffff2, got 0x24924924924924924924924924924916", + "expectation": "Simulation", + "name": "signed_divrem::signed_divrem_i128", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": true, + "tag_reasons": { + "two_state_zero_division": "Requires the suite's totalized two-state division/remainder result of zero, including logic destinations; SV arithmetic produces X before any two-state destination conversion (IEEE 1800-2023 11.3.4, 11.4.3)." + }, + "tags": [ + "two_state_zero_division" + ] + }, + { + "category": "Operators", + "detail": "signed_divrem::signed_divrem_i64 at 117:3: assert_eq q: expected 0xfffffffffffffffe, got 0x3ffffffffffffffd", + "expectation": "Simulation", + "name": "signed_divrem::signed_divrem_i64", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "signed_divrem::signed_divrem_i8 at 47:3: assert_eq q: expected 0xfd, got 0x7c", + "expectation": "Simulation", + "name": "signed_divrem::signed_divrem_i8", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/state_cast_semantics.json b/crates/celox-test-suite/verification/xezim/state_cast_semantics.json new file mode 100644 index 00000000000..732f3f1de13 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/state_cast_semantics.json @@ -0,0 +1,59 @@ +{ + "cases": [ + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "state_cast_semantics::constant_type_cast_clears_unknown_bits", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "state_cast_semantics::function_formal_type_clears_unknown_bits", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "state_cast_semantics::implicit_assignment_to_bit_clears_unknowns_without_mutating_source at 172:5: assert_eq c_narrow_bit: expected 0xa1, got 0xaX (c_narrow_bit)", + "expectation": "Simulation", + "name": "state_cast_semantics::implicit_assignment_to_bit_clears_unknowns_without_mutating_source", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "state_cast_semantics::signed_four_state_function_formal_preserves_unknown_bits at 122:5: assert_eq c: expected 0xaX, got 0xaX (c)", + "expectation": "Simulation", + "name": "state_cast_semantics::signed_four_state_function_formal_preserves_unknown_bits", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "state_cast_semantics::type_cast_clears_unknown_bits_in_comb_and_ff", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/std_binary_codec.json b/crates/celox-test-suite/verification/xezim/std_binary_codec.json new file mode 100644 index 00000000000..9c824e307c7 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/std_binary_codec.json @@ -0,0 +1,48 @@ +{ + "cases": [ + { + "category": "StandardLibrary", + "detail": "", + "expectation": "Simulation", + "name": "std_binary_codec::test_binary_codec_roundtrip", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "StandardLibrary", + "detail": "", + "expectation": "Simulation", + "name": "std_binary_codec::test_binary_decoder", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "StandardLibrary", + "detail": "", + "expectation": "Simulation", + "name": "std_binary_codec::test_binary_encoder", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "StandardLibrary", + "detail": "", + "expectation": "Simulation", + "name": "std_binary_codec::test_binary_encoder_disabled", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/std_delay.json b/crates/celox-test-suite/verification/xezim/std_delay.json new file mode 100644 index 00000000000..f31830a9a8c --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/std_delay.json @@ -0,0 +1,37 @@ +{ + "cases": [ + { + "category": "StandardLibrary", + "detail": "", + "expectation": "Simulation", + "name": "std_delay::test_delay_one", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "StandardLibrary", + "detail": "", + "expectation": "Simulation", + "name": "std_delay::test_delay_three", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "StandardLibrary", + "detail": "", + "expectation": "Simulation", + "name": "std_delay::test_delay_zero", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/std_edge_detector.json b/crates/celox-test-suite/verification/xezim/std_edge_detector.json new file mode 100644 index 00000000000..30d1e2b2e46 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/std_edge_detector.json @@ -0,0 +1,37 @@ +{ + "cases": [ + { + "category": "StandardLibrary", + "detail": "", + "expectation": "Simulation", + "name": "std_edge_detector::test_edge_detector_basic", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "StandardLibrary", + "detail": "", + "expectation": "Simulation", + "name": "std_edge_detector::test_edge_detector_clear", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "StandardLibrary", + "detail": "", + "expectation": "Simulation", + "name": "std_edge_detector::test_edge_detector_multibit", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/std_fifo.json b/crates/celox-test-suite/verification/xezim/std_fifo.json new file mode 100644 index 00000000000..7a13d0f749a --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/std_fifo.json @@ -0,0 +1,59 @@ +{ + "cases": [ + { + "category": "StandardLibrary", + "detail": "", + "expectation": "Simulation", + "name": "std_fifo::test_fifo_clear", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "StandardLibrary", + "detail": "", + "expectation": "Simulation", + "name": "std_fifo::test_fifo_full", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "StandardLibrary", + "detail": "", + "expectation": "Simulation", + "name": "std_fifo::test_fifo_initial_empty", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "StandardLibrary", + "detail": "", + "expectation": "Simulation", + "name": "std_fifo::test_fifo_ordering", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "StandardLibrary", + "detail": "", + "expectation": "Simulation", + "name": "std_fifo::test_fifo_push_pop_single", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/std_gray_codec.json b/crates/celox-test-suite/verification/xezim/std_gray_codec.json new file mode 100644 index 00000000000..a38e87134e0 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/std_gray_codec.json @@ -0,0 +1,26 @@ +{ + "cases": [ + { + "category": "StandardLibrary", + "detail": "", + "expectation": "Simulation", + "name": "std_gray_codec::test_gray_roundtrip_8bit", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "StandardLibrary", + "detail": "", + "expectation": "Simulation", + "name": "std_gray_codec::test_gray_single_bit_change", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/std_lfsr.json b/crates/celox-test-suite/verification/xezim/std_lfsr.json new file mode 100644 index 00000000000..fd7cc9558d6 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/std_lfsr.json @@ -0,0 +1,37 @@ +{ + "cases": [ + { + "category": "StandardLibrary", + "detail": "", + "expectation": "Simulation", + "name": "std_lfsr::test_lfsr_basic_shift", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "StandardLibrary", + "detail": "", + "expectation": "Simulation", + "name": "std_lfsr::test_lfsr_deterministic_cycle", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "StandardLibrary", + "detail": "", + "expectation": "Simulation", + "name": "std_lfsr::test_lfsr_enable_hold", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/std_mux.json b/crates/celox-test-suite/verification/xezim/std_mux.json new file mode 100644 index 00000000000..9cfb67a436f --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/std_mux.json @@ -0,0 +1,26 @@ +{ + "cases": [ + { + "category": "StandardLibrary", + "detail": "", + "expectation": "Simulation", + "name": "std_mux::test_demux_build_smoke", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "StandardLibrary", + "detail": "", + "expectation": "Simulation", + "name": "std_mux::test_mux_build_smoke", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/std_onehot.json b/crates/celox-test-suite/verification/xezim/std_onehot.json new file mode 100644 index 00000000000..135da6044cf --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/std_onehot.json @@ -0,0 +1,15 @@ +{ + "cases": [ + { + "category": "StandardLibrary", + "detail": "std_onehot::test_onehot_8bit_exhaustive reads o_onehot with unknown bits in a two-state run", + "expectation": "Simulation", + "name": "std_onehot::test_onehot_8bit_exhaustive", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/std_ram.json b/crates/celox-test-suite/verification/xezim/std_ram.json new file mode 100644 index 00000000000..064f496db22 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/std_ram.json @@ -0,0 +1,37 @@ +{ + "cases": [ + { + "category": "StandardLibrary", + "detail": "", + "expectation": "Simulation", + "name": "std_ram::test_ram_overwrite", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "StandardLibrary", + "detail": "", + "expectation": "Simulation", + "name": "std_ram::test_ram_reset_and_clear", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "StandardLibrary", + "detail": "", + "expectation": "Simulation", + "name": "std_ram::test_ram_write_read", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/struct_constructor.json b/crates/celox-test-suite/verification/xezim/struct_constructor.json new file mode 100644 index 00000000000..33c2018f0c4 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/struct_constructor.json @@ -0,0 +1,48 @@ +{ + "cases": [ + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "struct_constructor::test_single_bit_aggregate_members", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "struct_constructor::test_single_bit_struct_ff", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "struct_constructor::test_struct_constructor_comb_assignment", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "struct_constructor::test_struct_constructor_member_width_adjustment", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/synth_dynamic_loop.json b/crates/celox-test-suite/verification/xezim/synth_dynamic_loop.json new file mode 100644 index 00000000000..9c73bfb5109 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/synth_dynamic_loop.json @@ -0,0 +1,304 @@ +{ + "cases": [ + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "synth_dynamic_loop::test_constant_bounds_preserve_wide_limit_above_loop_width", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "synth_dynamic_loop::test_constant_break_in_synth_comb_loop", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "Veryl 0.21.0 rejects negative bounds in elaborated for loops (InvalidForRange::NegativeBound). This is a frontend restriction, not an external simulator mismatch.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_restriction", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-negative-for-bounds" + ], + "id": "veryl_negative_for_bounds", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 rejects negative bounds in elaborated for loops (InvalidForRange::NegativeBound). This is a frontend restriction, not an external simulator mismatch.", + "upstream": [] + }, + "name": "synth_dynamic_loop::test_constant_signed_bounds_in_unrolled_synth_loops", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "synth_dynamic_loop::test_expression_bounds_in_synth_for_loops", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "synth_dynamic_loop::test_i32_bitwise_steps_discard_bits_above_the_counter_width", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "synth_dynamic_loop::test_runtime_bitwise_steps_in_synth_for_loops", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "synth_dynamic_loop::test_runtime_bounds_forward_overshoot_exits_without_wraparound", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "xezim testbench failed: exit status: 124, without $finish; see runtime.log and protocol.log\n", + "expectation": "Simulation", + "name": "synth_dynamic_loop::test_runtime_bounds_in_synth_for_loops", + "phase": "execute", + "status": "runtime_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "synth_dynamic_loop::test_runtime_bounds_inclusive_max_bound_runs_full_range", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "synth_dynamic_loop::test_runtime_bounds_large_additive_step_exits_without_wraparound", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "synth_dynamic_loop::test_runtime_bounds_preserve_loop_carried_state_for_indexed_reads", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "synth_dynamic_loop::test_runtime_bounds_preserve_pre_loop_bits_for_partial_updates", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "synth_dynamic_loop::test_runtime_bounds_preserve_untouched_high_bits_for_dynamic_index_reads", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "synth_dynamic_loop::test_runtime_bounds_reconstruct_wide_loop_carried_reads_from_partial_state", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "xezim testbench failed: exit status: 124, without $finish; see runtime.log and protocol.log\n", + "expectation": "Simulation", + "name": "synth_dynamic_loop::test_runtime_bounds_reverse_singleton_exits_cleanly", + "phase": "execute", + "status": "runtime_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "synth_dynamic_loop::test_runtime_bounds_signed_inclusive_range_preserves_negative_bounds at 372:3: assert_eq hits: expected 0x3, got 0x0", + "expectation": "Simulation", + "name": "synth_dynamic_loop::test_runtime_bounds_signed_inclusive_range_preserves_negative_bounds", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "synth_dynamic_loop::test_runtime_bounds_stalled_step_with_break_exits_cleanly", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "synth_dynamic_loop::test_runtime_bounds_track_initial_seed_dependency", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "synth_dynamic_loop::test_runtime_bounds_track_initial_seed_dependency_across_module_boundary", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "synth_dynamic_loop::test_runtime_bounds_truncate_loop_var_to_declared_width", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "synth_dynamic_loop::test_runtime_break_after_assign_in_synth_comb_loop", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "synth_dynamic_loop::test_runtime_break_condition_dependency_across_module_boundary", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "synth_dynamic_loop::test_runtime_break_in_synth_comb_loop", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "", + "expectation": "Simulation", + "name": "synth_dynamic_loop::test_runtime_if_without_break_in_synth_comb_loop", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "xezim testbench failed: exit status: 124, without $finish; see runtime.log and protocol.log\n", + "expectation": "Simulation", + "name": "synth_dynamic_loop::test_runtime_reverse_step_matches_emitted_sv_order", + "phase": "execute", + "status": "runtime_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "synth_dynamic_loop::test_signed_xor_step_uses_loop_counter_width at 196:3: assert_eq last: expected 0x7ffffff8, got 0x0", + "expectation": "Simulation", + "name": "synth_dynamic_loop::test_signed_xor_step_uses_loop_counter_width", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/system_function.json b/crates/celox-test-suite/verification/xezim/system_function.json new file mode 100644 index 00000000000..7b0c5bb19fd --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/system_function.json @@ -0,0 +1,357 @@ +{ + "cases": [ + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_function::test_comb_function_body_bits_size_system_functions", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_function::test_comb_function_body_clog2_system_function", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_function::test_comb_function_body_onehot_system_function", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_function::test_comb_function_body_signed_unsigned_system_functions", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_function::test_direct_comb_bits_system_function", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_function::test_direct_comb_bits_type_system_function", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "Veryl 0.21.0 requires an evaluable argument for these direct $clog2/$onehot calls (UnevaluableValue). Runtime operands prevent emission.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_restriction", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-runtime-system-calls" + ], + "id": "veryl_runtime_system_calls", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 requires an evaluable argument for these direct $clog2/$onehot calls (UnevaluableValue). Runtime operands prevent emission.", + "upstream": [] + }, + "name": "system_function::test_direct_comb_clog2_system_function", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "Veryl 0.21.0 requires an evaluable argument for these direct $clog2/$onehot calls (UnevaluableValue). Runtime operands prevent emission.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_restriction", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-runtime-system-calls" + ], + "id": "veryl_runtime_system_calls", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 requires an evaluable argument for these direct $clog2/$onehot calls (UnevaluableValue). Runtime operands prevent emission.", + "upstream": [] + }, + "name": "system_function::test_direct_comb_onehot_system_function", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_function::test_direct_comb_signed_system_function_sign_extends_to_context", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_function::test_direct_comb_signed_unsigned_system_functions_affect_comparison", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_function::test_direct_comb_size_system_function", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_function::test_direct_comb_unsigned_system_function_zero_extends_to_context", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_function::test_direct_ff_bits_array_system_function", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_function::test_direct_ff_bits_system_function", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_function::test_direct_ff_bits_type_system_function", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "Veryl 0.21.0 requires an evaluable argument for these direct $clog2/$onehot calls (UnevaluableValue). Runtime operands prevent emission.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_restriction", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-runtime-system-calls" + ], + "id": "veryl_runtime_system_calls", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 requires an evaluable argument for these direct $clog2/$onehot calls (UnevaluableValue). Runtime operands prevent emission.", + "upstream": [] + }, + "name": "system_function::test_direct_ff_clog2_system_function", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "Veryl 0.21.0 requires an evaluable argument for these direct $clog2/$onehot calls (UnevaluableValue). Runtime operands prevent emission.", + "expectation": "Simulation", + "known_issue": { + "category": "veryl_restriction", + "evidence": [ + "verification/limitations/verilator.json", + "verification/limitations/icarus.json", + "verification/limitations/xezim.json", + "LIMITATIONS.md#veryl-runtime-system-calls" + ], + "id": "veryl_runtime_system_calls", + "observed_version": "Veryl 0.21.0; Verilator 5.052 / Icarus 13.0 / xezim 0.11.3", + "phase": "emission", + "reason": "Veryl 0.21.0 requires an evaluable argument for these direct $clog2/$onehot calls (UnevaluableValue). Runtime operands prevent emission.", + "upstream": [] + }, + "name": "system_function::test_direct_ff_onehot_system_function", + "phase": "skip", + "status": "ignored", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_function::test_direct_ff_signed_system_function", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_function::test_direct_ff_signed_system_function_sign_extends_to_context", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_function::test_direct_ff_size_packed_multidimensional_system_function", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_function::test_direct_ff_size_packed_multidimensional_type_system_function", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_function::test_direct_ff_size_system_function", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_function::test_direct_ff_size_type_system_function", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_function::test_direct_ff_unsigned_system_function", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_function::test_direct_ff_unsigned_system_function_zero_extends_to_context", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_function::test_ff_function_body_clog2_system_function", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Functions", + "detail": "", + "expectation": "Simulation", + "name": "system_function::test_ff_function_body_onehot_system_function", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/tb_string.json b/crates/celox-test-suite/verification/xezim/tb_string.json new file mode 100644 index 00000000000..6c28481e942 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/tb_string.json @@ -0,0 +1,59 @@ +{ + "cases": [ + { + "category": "ControlFlow", + "detail": "compile tb_string::array_elements: xezim build exit status: 1; see /build.log\n/source_0.sv:30:9: error: macro `CELOX_SUITE_FINISH` missing required argument `unused` (IEEE 1800-2017 §22.5.1)\n 30 | `CELOX_SUITE_FINISH();\n | ^~~~~~~~~~~~~~~~~~~\nError: preprocessing failed (1 error(s))\n", + "expectation": "Simulation", + "name": "tb_string::array_elements", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "compile tb_string::assignment: xezim build exit status: 1; see /build.log\n/source_0.sv:36:9: error: macro `CELOX_SUITE_FINISH` missing required argument `unused` (IEEE 1800-2017 §22.5.1)\n 36 | `CELOX_SUITE_FINISH();\n | ^~~~~~~~~~~~~~~~~~~\nError: preprocessing failed (1 error(s))\n", + "expectation": "Simulation", + "name": "tb_string::assignment", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "compile tb_string::comparison: xezim build exit status: 1; see /build.log\n/source_0.sv:35:9: error: macro `CELOX_SUITE_FINISH` missing required argument `unused` (IEEE 1800-2017 §22.5.1)\n 35 | `CELOX_SUITE_FINISH();\n | ^~~~~~~~~~~~~~~~~~~\nError: preprocessing failed (1 error(s))\n", + "expectation": "Simulation", + "name": "tb_string::comparison", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "compile tb_string::control_flow: xezim build exit status: 1; see /build.log\n/source_0.sv:36:9: error: macro `CELOX_SUITE_FINISH` missing required argument `unused` (IEEE 1800-2017 §22.5.1)\n 36 | `CELOX_SUITE_FINISH();\n | ^~~~~~~~~~~~~~~~~~~\nError: preprocessing failed (1 error(s))\n", + "expectation": "Simulation", + "name": "tb_string::control_flow", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "ControlFlow", + "detail": "compile tb_string::function_argument: xezim build exit status: 1; see /build.log\n/source_0.sv:30:9: error: macro `CELOX_SUITE_FINISH` missing required argument `unused` (IEEE 1800-2017 §22.5.1)\n 30 | `CELOX_SUITE_FINISH();\n | ^~~~~~~~~~~~~~~~~~~\nError: preprocessing failed (1 error(s))\n", + "expectation": "Simulation", + "name": "tb_string::function_argument", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/test_unimplemented_paths.json b/crates/celox-test-suite/verification/xezim/test_unimplemented_paths.json new file mode 100644 index 00000000000..86edfc0e447 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/test_unimplemented_paths.json @@ -0,0 +1,26 @@ +{ + "cases": [ + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "test_unimplemented_paths::dynamic_mask_store", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "test_unimplemented_paths::wide_dynamic_shift_works", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/veryl_context_regressions.json b/crates/celox-test-suite/verification/xezim/veryl_context_regressions.json new file mode 100644 index 00000000000..9fde7ddc25f --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/veryl_context_regressions.json @@ -0,0 +1,213 @@ +{ + "cases": [ + { + "category": "Regression", + "detail": "veryl_context_regressions::case_compares_each_label_as_an_if_does at 516:3: assert_eq y2: expected 0x1, got 0x0 (output y2)", + "expectation": "Simulation", + "name": "veryl_context_regressions::case_compares_each_label_as_an_if_does", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "veryl_context_regressions::case_on_signed_target_matches_negative_labels", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "veryl_context_regressions::constant_case_on_signed_target at 234:3: assert_eq y1: expected 0x3, got 0x0 (output y1)", + "expectation": "Simulation", + "name": "veryl_context_regressions::constant_case_on_signed_target", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "veryl_context_regressions::constant_case_target_uses_comparison_context at 696:3: assert_eq y3: expected 0x2, got 0x0 (output y3)", + "expectation": "Simulation", + "name": "veryl_context_regressions::constant_case_target_uses_comparison_context", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "veryl_context_regressions::constant_ternary_keeps_both_arm_types", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "veryl_context_regressions::dynamic_index_store_is_cut_to_element_width", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "veryl_context_regressions::dynamic_param_array_read_uses_its_elements", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "xezim build exit status: 1; see /build.log\n/source_0.sv:28:34: error: expected Semicolon, found ApostropheLBrace ''{'\n 28 | localparam pkg::S LS = pkg::S'{m: -3, k: 5};\n | ^~\n/source_0.sv:28:34: error: unexpected: \"'{\"\n 28 | localparam pkg::S LS = pkg::S'{m: -3, k: 5};\n | ^~\n/source_0.sv:28:39: error: unexpected: \"-\"\n 28 | localparam pkg::S LS = pkg::S'{m: -3, k: 5};\n | ^\n/source_0.sv:28:40: error: unexpected: \"3\"\n 28 | localparam pkg::S LS = pkg::S'{m: -3, k: 5};\n | ^\n/source_0.sv:28:41: error: unexpected: \",\"\n 28 | localparam pkg::S LS = pkg::S'{m: -3, k: 5};\n | ^\n/source_0.sv:28:46: error: unexpected: \"5\"\n 28 | localparam pkg::S LS = pkg::S'{m: -3, k: 5};\n | ^\n/source_0.sv:28:47: error: unexpected: \"}\"\n 28 | localparam pkg::S LS = pkg::S'{m: -3, k: 5};\n | ^\nParsed 2 file(s): 3 descriptions, 7 errors, 0 warnings\n", + "expectation": "Simulation", + "name": "veryl_context_regressions::folded_const_select_keeps_its_sign", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "veryl_context_regressions::folded_constant_wider_than_its_operand", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "veryl_context_regressions::part_select_of_signed_is_unsigned", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "veryl_context_regressions::runtime_case_target_uses_comparison_context", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "veryl_context_regressions::runtime_for_bound_arithmetic_uses_int_context", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "veryl_context_regressions::runtime_for_bound_keeps_its_type", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "veryl_context_regressions::runtime_for_with_negative_bound", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "veryl_context_regressions::signed_cast_of_folded_constant_sign_extends", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "veryl_context_regressions::signed_part_select_sign_extends", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "veryl_context_regressions::signed_struct_member_sign_extends at 87:3: assert_eq y0: expected 0xfffe, got 0xfe (output y0)", + "expectation": "Simulation", + "name": "veryl_context_regressions::signed_struct_member_sign_extends", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "xezim build exit status: 1; see /build.log\n/source_0.sv:14:34: error: expected Semicolon, found ApostropheLBrace ''{'\n 14 | localparam pkg::S LS = pkg::S'{m: -3, k: 5};\n | ^~\n/source_0.sv:14:34: error: unexpected: \"'{\"\n 14 | localparam pkg::S LS = pkg::S'{m: -3, k: 5};\n | ^~\n/source_0.sv:14:39: error: unexpected: \"-\"\n 14 | localparam pkg::S LS = pkg::S'{m: -3, k: 5};\n | ^\n/source_0.sv:14:40: error: unexpected: \"3\"\n 14 | localparam pkg::S LS = pkg::S'{m: -3, k: 5};\n | ^\n/source_0.sv:14:41: error: unexpected: \",\"\n 14 | localparam pkg::S LS = pkg::S'{m: -3, k: 5};\n | ^\n/source_0.sv:14:46: error: unexpected: \"5\"\n 14 | localparam pkg::S LS = pkg::S'{m: -3, k: 5};\n | ^\n/source_0.sv:14:47: error: unexpected: \"}\"\n 14 | localparam pkg::S LS = pkg::S'{m: -3, k: 5};\n | ^\nParsed 2 file(s): 3 descriptions, 7 errors, 0 warnings\n", + "expectation": "Simulation", + "name": "veryl_context_regressions::unfolded_constant_struct_member_reads_its_value", + "phase": "compile", + "status": "compile_error", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "veryl_context_regressions::wide_logical_operand_keeps_result_type", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/veryl_language.json b/crates/celox-test-suite/verification/xezim/veryl_language.json new file mode 100644 index 00000000000..dee33470353 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/veryl_language.json @@ -0,0 +1,37 @@ +{ + "cases": [ + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "veryl_language::inside_outside_range_endpoints", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "veryl_language::packed_union_members_alias", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "veryl_language::parameter_expression_type_cast_widths at 102:7: expr_b: 0xfffffffe != 0x1fffe", + "expectation": "Simulation", + "name": "veryl_language::parameter_expression_type_cast_widths", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/veryl_regressions.json b/crates/celox-test-suite/verification/xezim/veryl_regressions.json new file mode 100644 index 00000000000..3ad65dc8c3c --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/veryl_regressions.json @@ -0,0 +1,114 @@ +{ + "cases": [ + { + "category": "Regression", + "detail": "veryl_regressions::constant_arrays_initialize_comb_and_ff_reads at 275:5: assert_eq repeated: expected 0x5, got 0xX", + "expectation": "Simulation", + "name": "veryl_regressions::constant_arrays_initialize_comb_and_ff_reads", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "veryl_regressions::inlined_function_per_callsite_scratch_in_continuous_assign", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "veryl_regressions::inst_port_default_value_connected_not_folded", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "veryl_regressions::nested_array_index_const_array", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "veryl_regressions::struct_bit_field_rhs_no_spill", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "veryl_regressions::unary_minus_as_shift_amount", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "veryl_regressions::wide_shift_amount_out_of_range at 172:7: assert_eq r: expected 0x0, got 0x52 (r)", + "expectation": "Simulation", + "name": "veryl_regressions::wide_shift_amount_out_of_range", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "veryl_regressions::wide_shift_count_preserves_unknowns_and_sign_fill at 233:7: assert_eq arithmetic: expected 0xc2, got 0x42 (arithmetic)", + "expectation": "Simulation", + "name": "veryl_regressions::wide_shift_count_preserves_unknowns_and_sign_fill", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "veryl_regressions::wide_struct_bit_field_rhs_no_spill", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Regression", + "detail": "", + "expectation": "Simulation", + "name": "veryl_regressions::wide_ternary_narrow_branch_no_spill", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/wide_context_width.json b/crates/celox-test-suite/verification/xezim/wide_context_width.json new file mode 100644 index 00000000000..19d2fa481f5 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/wide_context_width.json @@ -0,0 +1,92 @@ +{ + "cases": [ + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "wide_context_width::test_wide_context_addition_carry", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "wide_context_width::test_wide_context_addition_mixed_boundary", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "wide_context_width::test_wide_context_constant_folding", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "wide_context_width::test_wide_context_constant_folding_128bit", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "wide_context_width::test_wide_context_multiplication_boundary", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "wide_context_width::test_wide_context_shift_left", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "wide_context_width::test_wide_context_subtraction_underflow", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "wide_context_width::test_wide_runtime_shift_width_behavior", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/wide_data.json b/crates/celox-test-suite/verification/xezim/wide_data.json new file mode 100644 index 00000000000..5f5af3a024a --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/wide_data.json @@ -0,0 +1,70 @@ +{ + "cases": [ + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "wide_data::test_nested_wide_concatenation", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "wide_data::test_wide_concatenation", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "wide_data::test_wide_cross_boundary_unaligned_write", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "wide_data::test_wide_int_memory_access", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "wide_data::test_wide_partial_write", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Types", + "detail": "", + "expectation": "Simulation", + "name": "wide_data::test_wide_rmw_preserve_neighboring_bits", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/wide_operators.json b/crates/celox-test-suite/verification/xezim/wide_operators.json new file mode 100644 index 00000000000..287d615af95 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/wide_operators.json @@ -0,0 +1,246 @@ +{ + "cases": [ + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_operators::test_wide_addition_128bit", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_operators::test_wide_addition_carry_propagation", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_operators::test_wide_bitwise_operations", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_operators::test_wide_comb_bitxnor", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_operators::test_wide_comb_div", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_operators::test_wide_comb_logic_and_or", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_operators::test_wide_comb_mul", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_operators::test_wide_comb_reduction_nand", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_operators::test_wide_comb_reduction_nor", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_operators::test_wide_comb_reduction_xnor", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_operators::test_wide_comb_rem", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "wide_operators::test_wide_comb_sar at 398:3: assert_eq y: expected 0xfffffffffffffffffffffffffffffffc, got 0x3ffffffffffffffffffffffffffffffc", + "expectation": "Simulation", + "name": "wide_operators::test_wide_comb_sar", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "wide_operators::test_wide_comb_signed_gt at 445:3: assert_eq y: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "wide_operators::test_wide_comb_signed_gt", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "wide_operators::test_wide_comb_signed_lt at 416:3: assert_eq y: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "wide_operators::test_wide_comb_signed_lt", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_operators::test_wide_comparison_eq", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_operators::test_wide_ff_accumulator", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_operators::test_wide_ff_mul", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_operators::test_wide_logic_or_with_narrow_operand", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_operators::test_wide_shift_left", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "wide_operators::test_wide_signed_compare_non_chunk_aligned at 544:5: assert_eq lt65: expected 0x1, got 0x0", + "expectation": "Simulation", + "name": "wide_operators::test_wide_signed_compare_non_chunk_aligned", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_operators::test_wide_subtraction_128bit", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_operators::test_wide_subtraction_borrow", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/crates/celox-test-suite/verification/xezim/wide_shift_mem.json b/crates/celox-test-suite/verification/xezim/wide_shift_mem.json new file mode 100644 index 00000000000..9e7192d6c18 --- /dev/null +++ b/crates/celox-test-suite/verification/xezim/wide_shift_mem.json @@ -0,0 +1,246 @@ +{ + "cases": [ + { + "category": "Operators", + "detail": "wide_shift_mem::test_1024bit_sar_sign_extension at 353:3: assert_eq o: expected 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff, got 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff (1024-bit sar of -1 by 512 should remain -1)", + "expectation": "Simulation", + "name": "wide_shift_mem::test_1024bit_sar_sign_extension", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_shift_mem::test_1024bit_shift_left", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_shift_mem::test_1024bit_shift_right", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_shift_mem::test_256bit_all_ones_shift_left_one", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "wide_shift_mem::test_256bit_arithmetic_shift_right at 147:3: assert_eq o: expected 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff, got 0xfffffffffffffffffffffffffffffffffffffff (256-bit sar of -1 by any amount should remain -1)", + "expectation": "Simulation", + "name": "wide_shift_mem::test_256bit_arithmetic_shift_right", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_shift_mem::test_256bit_shift_left_by_zero", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_shift_mem::test_256bit_shift_left_cross_chunk", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_shift_mem::test_256bit_shift_left_exact_chunk_boundary", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_shift_mem::test_256bit_shift_left_overflow", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_shift_mem::test_256bit_shift_left_within_chunk", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_shift_mem::test_256bit_shift_right_cross_chunk", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_shift_mem::test_256bit_shift_right_logical", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "wide_shift_mem::test_512bit_arithmetic_shift_right at 213:5: assert_eq o: expected 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff, got 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff (512-bit sar of -1 by should remain -1)", + "expectation": "Simulation", + "name": "wide_shift_mem::test_512bit_arithmetic_shift_right", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "wide_shift_mem::test_512bit_sar_ff at 294:3: assert_eq o: expected 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff, got 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff (512-bit sar of -1 by 200 in always_ff should remain -1)", + "expectation": "Simulation", + "name": "wide_shift_mem::test_512bit_sar_ff", + "phase": "execute", + "status": "mismatch", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_shift_mem::test_512bit_shift_left", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_shift_mem::test_512bit_shift_left_ff", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_shift_mem::test_512bit_shift_left_multiword_pattern", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_shift_mem::test_512bit_shift_right", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_shift_mem::test_512bit_shift_right_complete_overflow", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_shift_mem::test_narrow_source_wide_dest_sar", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_shift_mem::test_narrow_source_wide_dest_shift_left", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + }, + { + "category": "Operators", + "detail": "", + "expectation": "Simulation", + "name": "wide_shift_mem::test_narrow_source_wide_dest_shift_right", + "phase": "execute", + "status": "passed", + "stronger_than_sv": false, + "tag_reasons": {}, + "tags": [] + } + ] +} diff --git a/flake.lock b/flake.lock index 7d3b441967e..c0c6d086cac 100644 --- a/flake.lock +++ b/flake.lock @@ -40,7 +40,8 @@ "inputs": { "nix-packages": "nix-packages", "nixpkgs": "nixpkgs", - "rust-overlay": "rust-overlay" + "rust-overlay": "rust-overlay", + "xezim": "xezim" } }, "rust-overlay": { @@ -63,6 +64,23 @@ "rev": "5b9f1198b59bcb31c5c3250b332e7d77590e6306", "type": "github" } + }, + "xezim": { + "flake": false, + "locked": { + "lastModified": 1792800355, + "narHash": "sha256-hMrSyzLTQZjKaFPwLBRWJy9HRrzF9O28BS7qXePZ8Gg=", + "owner": "aionhw", + "repo": "xezim", + "rev": "058f2bba58648452e5799d17572356ebcae7d163", + "type": "github" + }, + "original": { + "owner": "aionhw", + "repo": "xezim", + "rev": "058f2bba58648452e5799d17572356ebcae7d163", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 0fd586c75c2..a09fede119b 100644 --- a/flake.nix +++ b/flake.nix @@ -12,6 +12,12 @@ url = "github:oxalica/rust-overlay/5b9f1198b59bcb31c5c3250b332e7d77590e6306"; inputs.nixpkgs.follows = "nixpkgs"; }; + # The xezim reference simulator for the shared test suite, pinned by + # revision so that Renovate proposes updates. + xezim = { + url = "github:aionhw/xezim/058f2bba58648452e5799d17572356ebcae7d163"; + flake = false; + }; }; outputs = @@ -19,6 +25,7 @@ nixpkgs, nix-packages, rust-overlay, + xezim, ... }: let @@ -55,6 +62,7 @@ }; mbx = nix-packages.packages.${system}.mbx; mergify-cli = pkgs.callPackage ./nix/mergify-cli.nix { }; + xezim-simulator = pkgs.callPackage ./nix/xezim { src = xezim; }; # mbx recognizes a symlink named cargo and preserves Cargo's CLI, # including --version. Real Cargo must remain later on PATH. cargoShim = pkgs.runCommand "celox-cargo-shim" { } '' @@ -101,6 +109,7 @@ pkgs mbx mergify-cli + xezim-simulator tools python rust @@ -117,6 +126,7 @@ in { inherit (e) mbx mergify-cli; + xezim = e.xezim-simulator; # The devcontainer uses this profile for editor and non-shell commands. dev-tools = e.pkgs.buildEnv { name = "celox-dev-tools"; @@ -136,17 +146,22 @@ system: let e = environments.${system}; + shell = + extra: + (e.pkgs.mkShell.override { stdenv = e.stdenv; }) { + packages = e.tools ++ extra; + CELOX_COCOTB_PYTHON = "${e.python}/bin/python3"; + Z3_BIN = "${e.pkgs.z3}/bin/z3"; + shellHook = '' + export NPM_CONFIG_PREFIX="''${NPM_CONFIG_PREFIX:-$HOME/.local/share/npm}" + export PATH="$NPM_CONFIG_PREFIX/bin:$PATH" + ''; + }; in { - default = (e.pkgs.mkShell.override { stdenv = e.stdenv; }) { - packages = e.tools; - CELOX_COCOTB_PYTHON = "${e.python}/bin/python3"; - Z3_BIN = "${e.pkgs.z3}/bin/z3"; - shellHook = '' - export NPM_CONFIG_PREFIX="''${NPM_CONFIG_PREFIX:-$HOME/.local/share/npm}" - export PATH="$NPM_CONFIG_PREFIX/bin:$PATH" - ''; - }; + default = shell [ ]; + # xezim builds from source, so only its external-suite jobs use it. + xezim = shell [ e.xezim-simulator ]; } ); checks = forAllSystems ( diff --git a/nix/xezim/Cargo.lock b/nix/xezim/Cargo.lock new file mode 100644 index 00000000000..5b613d882e7 --- /dev/null +++ b/nix/xezim/Cargo.lock @@ -0,0 +1,1091 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "ahash" +version = "0.8.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75" +dependencies = [ + "cfg-if", + "getrandom 0.3.4", + "once_cell", + "serde", + "version_check", + "zerocopy", +] + +[[package]] +name = "allocator-api2" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" + +[[package]] +name = "anyhow" +version = "1.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" + +[[package]] +name = "arbitrary" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3bc62ac97cc33321f50863d514c3bc38a453947a8f9e781137e47c7401020aed" + +[[package]] +name = "autocfg" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" + +[[package]] +name = "bincode" +version = "1.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad" +dependencies = [ + "serde", +] + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "bumpalo" +version = "3.20.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" +dependencies = [ + "allocator-api2", +] + +[[package]] +name = "cc" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86e055fa6e3e40ad6187ba25b6855eeb635d5271f8e0f0e1e9a5826b8d75bea0" +dependencies = [ + "find-msvc-tools", + "jobserver", + "libc", + "shlex", +] + +[[package]] +name = "cfg-if" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600" + +[[package]] +name = "corosensei" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6886a0c0f263965933c438626e7179139a62b978a33aa18281cbf0cd5a975f34" +dependencies = [ + "autocfg", + "cfg-if", + "scopeguard", +] + +[[package]] +name = "cranelift" +version = "0.131.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bde609ad0d2ac3255f3363fad230a7f4c6dfd2ff4bf26381c53e459cc7a4fe89" +dependencies = [ + "cranelift-codegen", + "cranelift-frontend", + "cranelift-module", +] + +[[package]] +name = "cranelift-assembler-x64" +version = "0.131.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3867f7a56768640a79fc660d2f60298251dc6d65b5d1c907706cd1afff024957" +dependencies = [ + "cranelift-assembler-x64-meta", +] + +[[package]] +name = "cranelift-assembler-x64-meta" +version = "0.131.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0661d63dcf8fc4a6538c1ee4d523917c5b27e9fce7a4114cdf9e2b30b4043cf" +dependencies = [ + "cranelift-srcgen", +] + +[[package]] +name = "cranelift-bforest" +version = "0.131.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8d535b489159ea63e3c40dfbe8d0e12bfb71f2a14845ef2407353e06c5a697c" +dependencies = [ + "cranelift-entity", + "wasmtime-internal-core", +] + +[[package]] +name = "cranelift-bitset" +version = "0.131.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3af4f7d421b2354deb01d714266022f38fcdbebc9f5f1ec6d310d3c27286d9e" +dependencies = [ + "wasmtime-internal-core", +] + +[[package]] +name = "cranelift-codegen" +version = "0.131.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09fe4c289e67e0221d1705734a57f95e25c289ed0ead7728743ea21285fc4cf1" +dependencies = [ + "bumpalo", + "cranelift-assembler-x64", + "cranelift-bforest", + "cranelift-bitset", + "cranelift-codegen-meta", + "cranelift-codegen-shared", + "cranelift-control", + "cranelift-entity", + "cranelift-isle", + "gimli", + "hashbrown 0.16.1", + "libm", + "log", + "regalloc2", + "rustc-hash", + "serde", + "smallvec", + "target-lexicon", + "wasmtime-internal-core", +] + +[[package]] +name = "cranelift-codegen-meta" +version = "0.131.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b3063e5363dc5ee6ee8edd930314582c08eb91c209b9564da1cd667f6424b9b3" +dependencies = [ + "cranelift-assembler-x64-meta", + "cranelift-codegen-shared", + "cranelift-srcgen", + "heck", +] + +[[package]] +name = "cranelift-codegen-shared" +version = "0.131.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c34b9c8dbc9edf37744918e56898d4979ef1e764e8e4bbe8b4d50250838ddfe8" + +[[package]] +name = "cranelift-control" +version = "0.131.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4eed9dc54204dc99aad19669bca50142659ed583396d9a99a2aef34d7c136ef4" +dependencies = [ + "arbitrary", +] + +[[package]] +name = "cranelift-entity" +version = "0.131.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aa2846b239a046217ecf95cfed0e31be4e86843785d07438ad33f456871e888" +dependencies = [ + "cranelift-bitset", + "wasmtime-internal-core", +] + +[[package]] +name = "cranelift-frontend" +version = "0.131.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "144f70fa9cd07efb83497c12dc8fb73f360a690cd990c44e8ceebc293d8c13b5" +dependencies = [ + "cranelift-codegen", + "log", + "smallvec", + "target-lexicon", +] + +[[package]] +name = "cranelift-isle" +version = "0.131.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0733ca5b2aaa5f6d5d6a1439e3c44280d34730d4d5c262ca08c6775c8d83f191" + +[[package]] +name = "cranelift-jit" +version = "0.131.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96aa44fbb64b5b652fd77aa0a5bb3a1609ca4eae7204fd547991245cc19a18d0" +dependencies = [ + "anyhow", + "cranelift-codegen", + "cranelift-control", + "cranelift-entity", + "cranelift-module", + "cranelift-native", + "libc", + "log", + "region", + "target-lexicon", + "wasmtime-internal-jit-icache-coherence", + "windows-sys 0.61.2", +] + +[[package]] +name = "cranelift-module" +version = "0.131.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dab212cf4630da14726d76333152920694c52f544ff5cc520329b4fa256fe78c" +dependencies = [ + "anyhow", + "cranelift-codegen", + "cranelift-control", +] + +[[package]] +name = "cranelift-native" +version = "0.131.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75b1290d6193b171172d5fe9a6e42326edf487a79f211fbf1e76f912a4aed035" +dependencies = [ + "cranelift-codegen", + "libc", + "target-lexicon", +] + +[[package]] +name = "cranelift-srcgen" +version = "0.131.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce0d5c2b4d719566816a0f1c9a9712d35d61e27df0ffd6c72a9afec9048db6c0" + +[[package]] +name = "equivalent" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826" + +[[package]] +name = "find-msvc-tools" +version = "0.1.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48" + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foldhash" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" + +[[package]] +name = "fst-reader" +version = "0.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9875223756618df05c8e7aae5e6a704fab17940337eb5b2fb962ed03853b4ce" +dependencies = [ + "lz4_flex 0.13.1", + "miniz_oxide 0.9.1", + "num_enum", + "thiserror", +] + +[[package]] +name = "fst-writer" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77be37fdc968866fa4f0cee73e42185e6d4699a761a51a54e6ebc9a3d73ed537" +dependencies = [ + "lz4_flex 0.11.6", + "miniz_oxide 0.8.9", + "thiserror", +] + +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "libc", + "wasi", +] + +[[package]] +name = "getrandom" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" +dependencies = [ + "cfg-if", + "libc", + "r-efi 5.3.0", + "wasip2", +] + +[[package]] +name = "getrandom" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" +dependencies = [ + "cfg-if", + "libc", + "r-efi 6.0.0", +] + +[[package]] +name = "gimli" +version = "0.33.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf7f043f89559805f8c7cacc432749b2fa0d0a0a9ee46ce47164ed5ba7f126c" +dependencies = [ + "fnv", + "hashbrown 0.16.1", + "indexmap", + "stable_deref_trait", +] + +[[package]] +name = "hashbrown" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" +dependencies = [ + "foldhash", +] + +[[package]] +name = "hashbrown" +version = "0.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "indexmap" +version = "2.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855" +dependencies = [ + "equivalent", + "hashbrown 0.17.1", +] + +[[package]] +name = "itoa" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" + +[[package]] +name = "jobserver" +version = "0.1.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c00acbd29eabad4a2392fa0e921c874934dbbf4194312ad20f04a0ed67a3cb3" +dependencies = [ + "getrandom 0.4.3", + "libc", +] + +[[package]] +name = "libc" +version = "0.2.191" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a" + +[[package]] +name = "libffi" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce826c243048e3d5cec441799724de52e2d42f820468431fc3fceee2341871e2" +dependencies = [ + "libc", + "libffi-sys", +] + +[[package]] +name = "libffi-sys" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f36115160c57e8529781b4183c2bb51fdc1f6d6d1ed345591d84be7703befb3c" +dependencies = [ + "cc", +] + +[[package]] +name = "libloading" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55" +dependencies = [ + "cfg-if", + "windows-link", +] + +[[package]] +name = "libm" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981" + +[[package]] +name = "libmimalloc-sys" +version = "0.1.49" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a45a52f43e1c16f667ccfe4dd8c85b7f7c204fd5e3bf46c5b0db9a5c3c0b8e9" +dependencies = [ + "cc", +] + +[[package]] +name = "log" +version = "0.4.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6" + +[[package]] +name = "lz4_flex" +version = "0.11.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "373f5eceeeab7925e0c1098212f2fbc4d416adec9d35051a6ab251e824c1854a" +dependencies = [ + "twox-hash", +] + +[[package]] +name = "lz4_flex" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ef0d4ed8669f8f8826eb00dc878084aa8f253506c4fd5e8f58f5bce72ddb97e" +dependencies = [ + "twox-hash", +] + +[[package]] +name = "mach2" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d640282b302c0bb0a2a8e0233ead9035e3bed871f0b7e81fe4a1ec829765db44" +dependencies = [ + "libc", +] + +[[package]] +name = "memchr" +version = "2.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" + +[[package]] +name = "mimalloc" +version = "0.1.52" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d4139bb28d14ad1facf21d5eb8825051b326e172d216b39f6d31df53cc97862" +dependencies = [ + "libmimalloc-sys", +] + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", +] + +[[package]] +name = "miniz_oxide" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c" +dependencies = [ + "adler2", + "serde", +] + +[[package]] +name = "num_enum" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0bca838442ec211fa11de3a8b0e0e8f3a4522575b5c4c06ed722e005036f26" +dependencies = [ + "num_enum_derive", + "rustversion", +] + +[[package]] +name = "num_enum_derive" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "680998035259dcfcafe653688bf2aa6d3e2dc05e98be6ab46afb089dc84f1df8" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" + +[[package]] +name = "pkg-config" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548" + +[[package]] +name = "ppv-lite86" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" +dependencies = [ + "zerocopy", +] + +[[package]] +name = "proc-macro-crate" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f" +dependencies = [ + "toml_edit", +] + +[[package]] +name = "proc-macro2" +version = "1.0.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quote" +version = "1.0.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + +[[package]] +name = "rand" +version = "0.8.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e058c7de0b26af77780c769414d6257830bb240f3c38477dbc2c16e5f54d6d4c" +dependencies = [ + "libc", + "rand_chacha", + "rand_core", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom 0.2.17", +] + +[[package]] +name = "regalloc2" +version = "0.15.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "757712e8e61590d6d4f5d563483755538b5aa13467837a3b41cd9832509a7f85" +dependencies = [ + "allocator-api2", + "bumpalo", + "hashbrown 0.17.1", + "log", + "rustc-hash", + "smallvec", +] + +[[package]] +name = "region" +version = "3.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6b6ebd13bc009aef9cd476c1310d49ac354d36e240cf1bd753290f3dc7199a7" +dependencies = [ + "bitflags", + "libc", + "mach2", + "windows-sys 0.52.0", +] + +[[package]] +name = "rustc-hash" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d" + +[[package]] +name = "rustversion" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "serde" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde_core" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "serde_json" +version = "1.0.154" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "shlex" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" + +[[package]] +name = "smallvec" +version = "1.16.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0d5d4b1981b8bbbb7aed204cae5726d683d5d6ac7e74ec54122ea28f315e7c8" + +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[package]] +name = "sv-parser" +version = "0.11.3" +source = "git+https://github.com/aionhw/xezim-core.git?rev=48820a89e113df68687a10831e7051fbeb97340e#48820a89e113df68687a10831e7051fbeb97340e" +dependencies = [ + "serde", + "serde_json", +] + +[[package]] +name = "syn" +version = "2.0.119" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "3.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "target-lexicon" +version = "0.13.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca" + +[[package]] +name = "thiserror" +version = "2.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e" +dependencies = [ + "thiserror-impl", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "toml_datetime" +version = "1.1.2+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b86d767906c6c42421dcba507eb9d203e779497710a47782a224bb871653053" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_edit" +version = "0.25.17+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3641d5bbb5349a79e1020a242d251efbc546ad8048d133958323ce9c40a9c9c" +dependencies = [ + "indexmap", + "toml_datetime", + "toml_parser", + "winnow", +] + +[[package]] +name = "toml_parser" +version = "1.1.5+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baa693a8032d7e1cada7d0041e96126df243179ff061456783ac7f12bda4744c" +dependencies = [ + "winnow", +] + +[[package]] +name = "twox-hash" +version = "2.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86a801b3cea342a06d468c8710662aa29e5e05e4f5c0d62f00bbb7f2ad7941c2" + +[[package]] +name = "unicode-ident" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563" + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "wasip2" +version = "1.0.4+wasi-0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasmtime-internal-core" +version = "44.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aedd3947487d0afdd37accb981466fcd60571e898004c8955111f88686581dfc" +dependencies = [ + "hashbrown 0.16.1", + "libm", +] + +[[package]] +name = "wasmtime-internal-jit-icache-coherence" +version = "44.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10005b038e662775ac002f233e429447a58892e89918580fa67ce8cdd9192d0a" +dependencies = [ + "cfg-if", + "libc", + "wasmtime-internal-core", + "windows-sys 0.61.2", +] + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", + "windows_i686_gnullvm", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "winnow" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81" +dependencies = [ + "memchr", +] + +[[package]] +name = "wit-bindgen" +version = "0.57.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" + +[[package]] +name = "xezim" +version = "0.11.3" +dependencies = [ + "ahash", + "bincode", + "cc", + "corosensei", + "cranelift", + "cranelift-jit", + "cranelift-module", + "cranelift-native", + "fst-reader", + "fst-writer", + "libc", + "libffi", + "libloading", + "miniz_oxide 0.8.9", + "once_cell", + "rand", + "serde", + "sv-parser", + "xezim-core", + "zstd", +] + +[[package]] +name = "xezim-core" +version = "0.11.3" +source = "git+https://github.com/aionhw/xezim-core.git?rev=48820a89e113df68687a10831e7051fbeb97340e#48820a89e113df68687a10831e7051fbeb97340e" +dependencies = [ + "ahash", + "bincode", + "mimalloc", + "rand", + "serde", + "sv-parser", + "zstd", +] + +[[package]] +name = "zerocopy" +version = "0.8.63" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5fe1f8f1b06191a00962174c61aa5005e0bb391a6d80d07e24d115c01a92ed8" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.63" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "863ad3ac83293fb4d740aedbfdc9240dd8d1a50c1099acd76ce80ce7c7230c7f" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "zmij" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" + +[[package]] +name = "zstd" +version = "0.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e91ee311a569c327171651566e07972200e76fcfe2242a4fa446149a3881c08a" +dependencies = [ + "zstd-safe", +] + +[[package]] +name = "zstd-safe" +version = "7.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64d80649ab6db9d9f6f9c80a40becd948eda4714a0a5ac8c4d157a32231c7882" +dependencies = [ + "zstd-sys", +] + +[[package]] +name = "zstd-sys" +version = "2.1.2+zstd.1.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "481ada9c543b2323cbb7bbdbb5249177fbf0188ed959ed2c15e4b22421c84ed3" +dependencies = [ + "cc", + "pkg-config", +] diff --git a/nix/xezim/default.nix b/nix/xezim/default.nix new file mode 100644 index 00000000000..b7247265559 --- /dev/null +++ b/nix/xezim/default.nix @@ -0,0 +1,45 @@ +# xezim, an IEEE 1800 simulator, as an external reference for the shared test +# suite. `src` is the `xezim` flake input, pinned by revision and updated by +# Renovate. Upstream does not commit a Cargo.lock; the one here resolves that +# revision, and `update-lock.sh` regenerates it after an update. Its git +# dependency xezim-core is fetched at the revision the lockfile records. +{ + lib, + rustPlatform, + src, +}: +rustPlatform.buildRustPackage { + pname = "xezim"; + version = (lib.importTOML "${src}/Cargo.toml").package.version; + inherit src; + + cargoLock = { + lockFile = ./Cargo.lock; + allowBuiltinFetchGit = true; + }; + postPatch = '' + cp ${./Cargo.lock} Cargo.lock + ''; + cargoBuildFlags = [ + "--bin" + "xezim" + ]; + # The suite's adapter tests exercise the binary; upstream's own test suite + # needs network access and other simulators. + doCheck = false; + # update-lock.sh resolves the lockfile with the toolchain that builds it, + # so the rust-version-aware resolver picks versions this rustc accepts. + passthru = { + inherit (rustPlatform.rust) cargo rustc; + }; + + meta = { + description = "SystemVerilog simulator (IEEE 1800-2023)"; + homepage = "https://github.com/aionhw/xezim"; + license = with lib.licenses; [ + mit + asl20 + ]; + mainProgram = "xezim"; + }; +} diff --git a/nix/xezim/update-lock.sh b/nix/xezim/update-lock.sh new file mode 100755 index 00000000000..3ddaa7cde4f --- /dev/null +++ b/nix/xezim/update-lock.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash +# Regenerate Cargo.lock for the xezim revision pinned in flake.lock. Run from +# the repository root in the development shell after updating that input. +set -euo pipefail +here=$(dirname "$0") +src=$(nix eval --raw --no-update-lock-file .#xezim.src) +work=$(mktemp -d) +trap 'rm -rf "$work"' EXIT +cp -r "$src"/. "$work" +chmod -R u+w "$work" +# Resolve with nixpkgs' cargo and rustc, which build the package, rather than +# the development shell's toolchain. +mapfile -t toolchain < <(nix build --no-link --print-out-paths --no-update-lock-file .#xezim.cargo .#xezim.rustc) +PATH="$(printf '%s/bin:' "${toolchain[@]}")$PATH" +cargo --version +rustc --version +cargo generate-lockfile --manifest-path "$work/Cargo.toml" +cp "$work/Cargo.lock" "$here/Cargo.lock" diff --git a/renovate.json b/renovate.json index 512edcd8863..757e0957a40 100644 --- a/renovate.json +++ b/renovate.json @@ -37,7 +37,8 @@ "nix" ], "matchDepNames": [ - "!rust-overlay" + "!rust-overlay", + "!xezim" ], "enabled": false }, @@ -205,6 +206,21 @@ ], "minimumReleaseAge": "0 days" }, + { + "description": "xezim is a reference simulator of the shared test suite. Upstream commits no Cargo.lock: regenerate nix/xezim/Cargo.lock with nix/xezim/update-lock.sh. An update can change its results, so it also waits for a fresh external-suite run and a review of the retained xezim reports.", + "matchManagers": [ + "nix" + ], + "matchDepNames": [ + "xezim" + ], + "semanticCommitType": "test", + "semanticCommitScope": "xezim", + "automerge": false, + "labels": [ + "dependencies" + ] + }, { "description": "The Veryl conformance analyzer probe matches the Veryl metadata vendored at the pinned upstream revision in lydite/conformance/veryl/run_ci.sh; update it together with that revision.", "matchFileNames": [ diff --git a/scripts/check-external-suite-report.mjs b/scripts/check-external-suite-report.mjs index 02a9c8d2f94..3fc47beedd9 100644 --- a/scripts/check-external-suite-report.mjs +++ b/scripts/check-external-suite-report.mjs @@ -86,7 +86,7 @@ export function checkExternalSuiteReport( const rows = validateReport(current, "current report"); const previous = validateReport(baseline, "baseline report"); assert.ok( - ["verilator", "icarus"].includes(current.tool), + ["verilator", "icarus", "xezim"].includes(current.tool), "unknown simulator", ); assert.equal( diff --git a/scripts/check-external-suite-report.test.mjs b/scripts/check-external-suite-report.test.mjs index 036b9780064..67ff649f21c 100644 --- a/scripts/check-external-suite-report.test.mjs +++ b/scripts/check-external-suite-report.test.mjs @@ -237,9 +237,9 @@ test("truncated, cached, corrupt and incorrectly classified reports fail closed" } }); -test("all four retained baselines accept only their existing failures", () => { +test("every retained baseline accepts only its existing failures", () => { for (const suite of ["veryl", "sv"]) { - for (const tool of ["verilator", "icarus"]) { + for (const tool of ["verilator", "icarus", "xezim"]) { const file = `../crates/celox-test-suite/verification/${suite === "sv" ? "sv/" : ""}${tool}.json`; const baseline = readVerificationReport(new URL(file, import.meta.url)); const current = { @@ -271,7 +271,16 @@ test("all four retained baselines accept only their existing failures", () => { exitStatus, suite, ); - if (suite === "sv") { + if (tool === "xezim") { + // xezim retains its reviewed failures instead of excluding them. + const failures = current.cases.filter( + (row) => + !["passed", "rejected", "unsupported", "ignored"].includes( + row.status, + ), + ).length; + assert.equal(result.accepted_failures.length, failures); + } else if (suite === "sv") { assert.deepEqual( result.accepted_failures, tool === "icarus" diff --git a/scripts/ci-rust-scope.mjs b/scripts/ci-rust-scope.mjs index 7f4c60bdd12..d7d1e2a18a0 100644 --- a/scripts/ci-rust-scope.mjs +++ b/scripts/ci-rust-scope.mjs @@ -10,6 +10,7 @@ export const CI_FEATURES = Object.freeze([ "celox/systemverilog", "celox-test-suite/verilator", "celox-test-suite/icarus", + "celox-test-suite/xezim", ]); // Suffixes of the tests that `all_backends!` and `sv_backends!` generate for diff --git a/scripts/ci-workflow.test.mjs b/scripts/ci-workflow.test.mjs index c42e6506de0..15a6855c28e 100644 --- a/scripts/ci-workflow.test.mjs +++ b/scripts/ci-workflow.test.mjs @@ -198,7 +198,13 @@ test("scheduled and manual validation run all paths and external suites", () => assert.match(job("changes"), /QUEUE_VALIDATION: .*startsWith\(github\.head_ref, 'mergify\/merge-queue\/'\)/); assert.match(external, /fail-fast: false/); assert.match(external, /suite: \[veryl, sv\]/); - assert.match(external, /tool: \[verilator, icarus\]/); + assert.match(external, /tool: \[verilator, icarus, xezim\]/); + // Only the xezim jobs build xezim, through its own development shell. + assert.match( + external, + /VERIFY_SHELL: \$\{\{ matrix\.tool == 'xezim' && '\.#xezim' \|\| '\.' \}\}/, + ); + assert.doesNotMatch(external, /nix develop --no-update-lock-file/); assert.match(external, /--test oracles -- --ignored/); // The check reads the complete results, with run counts and reuse flags; // a retained --report copy omits them. diff --git a/scripts/run-ci-cocotb.mjs b/scripts/run-ci-cocotb.mjs index 30765f798c0..f3356338cc9 100644 --- a/scripts/run-ci-cocotb.mjs +++ b/scripts/run-ci-cocotb.mjs @@ -11,7 +11,7 @@ export function cocotbCommands(full, builds) { if (full !== "false") return [[ "nextest", "run", "--locked", "--workspace", "--exclude", "lydite*", "--profile", "ci", - "--features", "celox/systemverilog,celox-test-suite/verilator,celox-test-suite/icarus,celox-test-suite/runtime-cases", + "--features", "celox/systemverilog,celox-test-suite/verilator,celox-test-suite/icarus,celox-test-suite/xezim,celox-test-suite/runtime-cases", "--run-ignored", "only", "-E", cocotbFilter, ]]; // Validate all plans first, including ones we do not need to execute.