Next Article in Journal
Enhancement of Fault Ride-Through Capability in Wind Turbine Based on a Permanent Magnet Synchronous Generator Using Machine Learning
Previous Article in Journal
Power Normalized and Fractional Power Normalized Least Mean Square Adaptive Beamforming Algorithm
Previous Article in Special Issue
Reactive Load Balancing for Sentient Spaces in Absence of Cloud and Fog
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A BFS-Based DEVS Simulation Kernel for HDL-Compatible Simulation

1
Department of Computer Engineering, Inha University, 100 Inha-ro, Michuhol-gu, Incheon 22212, Republic of Korea
2
Frontier College, Inha University, 100 Inha-ro, Michuhol-gu, Incheon 22212, Republic of Korea
*
Author to whom correspondence should be addressed.
Electronics 2026, 15(1), 48; https://doi.org/10.3390/electronics15010048
Submission received: 22 October 2025 / Revised: 18 December 2025 / Accepted: 20 December 2025 / Published: 23 December 2025
(This article belongs to the Special Issue New Advances in Embedded Software and Applications)

Abstract

The Discrete Event System Specification (DEVS) formalism provides a mathematical foundation for modeling hierarchical discrete-event systems. However, the Depth-First Search (DFS) scheduling used in the classical DEVS abstract simulator conflicts with the concurrency semantics of Hardware Description Language (HDL) simulators such as Verilog or VHDL. This mismatch induces timing distortions, including pipeline skew and zero-time feedback loops. To address these limitations, this study proposes a new DEVS simulation kernel that adopts Breadth-First Search (BFS) scheduling, integrating the delta-round concept. This approach employs an event-parking mechanism that separates event computation from application, structurally aligning with HDL’s Active–NBA–Reactive phases and enabling semantically simultaneous updates without introducing additional ε-time. Case studies demonstrate that the proposed BFS-based DEVS kernel eliminates timing discrepancies in pipeline and feedback-loop structures and establishes a formal foundation for semantic alignment between DEVS and HDL simulators.

1. Introduction

In recent decades, the Discrete Event System Specification (DEVS) formalism has served as a foundational framework for modeling discrete-event systems due to its modularity, hierarchical composition, and formally defined semantics [1,2,3]. Notably, its Closure under coupling property allows multiple interconnected submodels to behave equivalently to a single atomic model, enabling scalable hierarchical construction of complex systems [4,5,6,7,8,9,10]. From a hardware standpoint, atomic DEVS models resemble fundamental logic elements, and their hierarchical composition reflects the structural organization of digital circuits.
Building on this hierarchical capability, DEVS models can be recursively composed into higher-level structures while preserving consistent external behavior [11,12,13,14,15]. This hierarchical capability has enabled DEVS to model a wide range of real-world discrete-event systems [16,17,18,19]. Recent studies have also explored applying DEVS to hardware verification, particularly in timing-critical multi-clock environments, where explicit time representation is advantageous. Although RTL structures can be mapped onto DEVS models [20,21], structural correspondence alone is insufficient to guarantee behavioral equivalence.

1.1. Motivation

Despite the structural similarity between DEVS hierarchies and digital circuits, classical DEVS fails to reproduce the concurrency semantics required in hardware simulation. This limitation arises from the depth-first, sequential event-processing mechanism of the DEVS abstract simulator, which contrasts with the concurrency model enforced in HDL environments [20,22]. While HDL simulators utilize delta-cycles for deterministic concurrent evaluation [23,24], the sequential nature of the classical DEVS kernel creates a semantic gap that motivates the present study.
Verilog and SystemVerilog use a hierarchical event scheduling model called the stratified event queue, which provides simulation semantics equivalent to the delta-cycle mechanism in VHDL [25,26]. As illustrated in Figure 1, this scheduling model organizes events into multiple ordered regions within a single simulation time slot.
An HDL simulator divides each simulation time slot into several phases that are processed in order, typically the Active phase, the non-blocking assignment (NBA) phase, and the Reactive phase. In the Active phase, combinational logic and blocking assignments are executed, and the right-hand sides of non-blocking assignments are evaluated for later use. In the NBA phase, these deferred updates are applied simultaneously, and the Reactive phase then processes operations triggered by the updated signals.
By performing these fine-grained steps within a single simulation time unit, HDL simulators clearly separate the computation and application of zero-delay events. This structure ensures atomic and deterministic signal updates, preventing race conditions and accurately reflecting concurrent hardware behavior [27].
In contrast, the classical DEVS simulation kernel processes events sequentially, which conflicts with the delta-cycle semantics of HDL simulators. As illustrated in Figure 2, the kernel selects only one imminent model at a time based on a user-defined priority, and the selected model immediately propagates its output to connected components. This sequential propagation can cause timing distortions such as pipeline skew and zero-time feedback loops. When multiple events occur simultaneously, the SELECT function determines the execution order according to its priority rule, introducing additional ordering effects that do not exist in hardware [28].
The classical DEVS kernel follows a Depth-First Search (DFS)-like event propagation, where the output of a model is immediately delivered to connected models as soon as its event is processed. This sequential chain of reactions prevents simultaneous updates that should occur in hardware, breaking the concurrency semantics guaranteed by HDL simulators. As a result, signals that should be updated on the same clock edge may instead propagate one step earlier or later, causing pipeline distortions and timing mismatches. Furthermore, when models repeatedly execute zero-time transitions, DEVS may enter an infinite loop in which internal events circulate without advancing simulation time. Such behavior makes it difficult for the DFS-based kernel to satisfy HDL-like delta-cycle semantics, which require deterministic and simultaneous updates within a single simulation time unit.

1.2. Related Works

Various extensions of DEVS have been proposed to mitigate these limitations. As illustrated in Figure 3, Parallel DEVS (P-DEVS) introduces the confluent transition function, which enables simultaneous handling of internal and external events and reduces the dependence on user-defined priority ordering [29,30]. Although this improves determinism compared to the classical DEVS kernel, it still does not fully resolve the mismatch with HDL-style concurrency.
Although P-DEVS introduces confluent transitions, the model designer must still explicitly define these functions, and their computational cost increases rapidly with the size of the input set. To address these issues, Revised Parallel DEVS (RP-DEVS) was proposed to provide immediate reactions to input events and reduce sequential delays [31]. However, RP-DEVS continues to rely on a λ-iteration process in which outputs are produced only after repeated evaluations until all internal signals converge, leaving concurrency limitations unresolved [32].
Another extension, RTL-DEVS, demonstrated that sequential RTL behavior can be approximated by assigning three states, namely Wait, RHS Operation, and LHS Operation, to a single DEVS atomic model [21]. The modified model specification used in RTL-DEVS is illustrated in Figure 4, showing how internal registers, event queues, and zero-time transitions are organized to emulate HDL behavior.
However, because the entire system operates in lockstep with the testbench clock, RTL-DEVS cannot guarantee complete signal synchronization in combinational circuits containing multiple submodules unless additional helper modules are introduced. Consequently, existing DEVS derivatives such as P-DEVS, RP-DEVS, and RTL-DEVS remain fundamentally constrained by the sequential nature of DFS scheduling and cannot fully reproduce the concurrency semantics required in HDL simulations.

1.3. Research Contributions

In this paper, we propose a BFS-based DEVS kernel combined with a delta-round scheduling algorithm to fundamentally overcome these limitations. The core idea of the proposed method is to replace the Depth-First event propagation in the traditional DEVS simulator with a breadth-first scheduling strategy and to introduce an event parking mechanism that emulates the evaluation–update separation principle of non-blocking assignments in HDL simulators. In each simulation time slot, all events that occur are collected and processed simultaneously within a single round. The resulting output events are then parked in a separate queue and applied collectively in the following delta-round, effectively replicating the behavior of the Active–NBA–Reactive phases in HDL simulation semantics.
Through this BFS + delta-round structure, the proposed method reproduces HDL-equivalent semantics at the DEVS simulation kernel under the assumptions of acyclic zero-delay combinational loops and pipeline configurations, without introducing additional micro-time delays. It also maintains structural equivalence between DEVS models and their Verilog counterparts, enabling cross-verification and co-simulation between DEVS-based and HDL-based systems.
The remainder of this paper is organized as follows: Section 2 presents the theoretical background and examines the limitations of classical DEVS semantics in reproducing HDL-style concurrency. Section 3 introduces the proposed BFS-based DEVS kernel and delta-round scheduling mechanism and describes how event parking is employed to model simultaneous signal updates. Section 4 provides comprehensive verification results using representative pipeline and combinational logic scenarios. Section 5 discusses the integration of the proposed kernel into existing DEVS modeling environments and highlights its broader applicability to hardware verification workflows. Finally, Section 6 concludes the paper and outlines potential directions for further enhancing DEVS–HDL semantic alignment.

2. Background

The structural mismatch between HDL concurrency semantics and the sequential scheduling of DEVS does not stem from shortcomings of DEVS-based model designers. It arises from the architecture of the classical DEVS abstract simulator itself. The aim of this section is to review the core operating principles of the classical DEVS formalism and its abstract simulator, with a focus on how the DFS-based scheduling framework determines event-processing order through the SELECT method. We then summarize the event-scheduling scheme of HDL to examine its concurrency execution mechanism comprising the Active, NBA, and Reactive phases. Finally, we provide a brief comparison between HDL simulation and event processing in P-DEVS.

2.1. Classical DEVS Formalism and Abstract Simulator

The DEVS formalism provides a mathematically rigorous framework for describing discrete-event systems in a modular and hierarchical manner. Each system component is modeled as an atomic model, which specifies its input behavior, internal state dynamics, and output generation within a well-defined temporal structure [2].

2.1.1. Classical DEVS Atomic Model

In the classical DEVS framework, an atomic model is represented as:
DEVS   Model   AM :   < X , S , Y , δ i n t , δ e x t , λ , t a >
where
  • X: set of possible inputs
  • Y: set of possible outputs
  • S: set of sequential states
  • Ta: S → R 0 +   { } —time advance function
  • Q ∈ {(s,e) | s ∈ S, 0 ≤ e ≤ ta(s)}: the total state set, e is the time elapsed since last transition
  • δ ext: Q × X → S: external transition function,
  • δ int: S → S: internal transition function.
  • λ: S → Y: output function.
From this definition, the core structure of a DEVS model consists of the sets of inputs, states, outputs, the time-advance function, and the transition functions. DEVS composes these atomic models to form higher-level coupled models. A coupled model defines the overall system structure by wiring the outputs of multiple submodels to the inputs of others, and it may contain both atomic and coupled submodels.

2.1.2. Classical DEVS Coupled Model

A coupled DEVS model is formally defined as below:
DEVS   Coupled   Model   N :   < X , Y , D , M d , I d , Z i , d , S e l e c t   >
where:
  • X: set of possible inputs
  • Y: set of possible outputs
  • D: set of references to the DEVS submodules in { M d } , each d D refers to an atomic (or coupled) model (e.g., D = { M 1 , M 2 , M 3 } ).
  • d D N : I d D N , d   I d : influencing model set for each model and the coupled model
  • d D ,   i I d   : Z i , d : an i-to-d output translation with Z i , d : X X d if i = N and Z i , d : Y i Y if d = N and Z i , d and Z i , d : Y i X d otherwise
  • Select: 2 D D —tie-breaking function
In this formulation, I d denotes the set of models that can provide inputs to model d , and the condition d I d   prevents self-referential coupling. The mapping Z i , d   defines the coupling relation that converts the output of one model into a valid input of another. Depending on the endpoints, couplings are categorized as external–internal, internal–external, or internal–internal.
A key property of the coupled DEVS defined above is closure under coupling: even when a model contains multiple submodels, its overall input–output behavior can still be represented in the same DEVS form. Although a coupled model may consist of multiple atomic or coupled submodels, the externally observable behavior reduces to one coherent set of input, state, and output variables together with time-advance and transition functions. From this perspective, a coupled model can be regarded as a higher-level atomic model that encapsulates its own state space and event scheduler. Because a coupled DEVS model determines the system-level input–output behavior through the interconnections among its components, the entire structure can be replaced by an equivalent atomic DEVS model.
In DEVS formalism, the states and event timings of lower-level submodels are composed at the higher level to define the global system state and time-advance function, so the externally observable input and output remain representable in the same form as a single atomic DEVS. Consequently, a coupled model becomes behaviorally equivalent to a flattened atomic DEVS within the simulator, which is the essence of closure under coupling [7,8].
This concept is established with mathematical rigor by formalism. As stated by Zeigler, any coupled DEVS model admits a mathematically constructed resultant atomic DEVS that exhibits the same externally observable behavior.
Because of these mathematical guarantees, DEVS supports hierarchical design while preserving formally predictable and consistent system behavior. Even for systems with deeply nested hierarchies, the entire model can be flattened into a single atomic model. This property is directly tied to how a DEVS simulator recursively schedules events across the hierarchy. The abstract simulator integrates events from all submodels so that the coupled DEVS behaves as a single atomic model.
Formally, as defined in Zeigler et al. [2], the global state S of a coupled model is defined as the Cartesian product of the total states of all submodels:
S =   × i D Q i
The next event time t a s   of a coupled model is determined by the minimum of the next event times σ i reported by its internal components. The system therefore synchronizes to the earliest impending event, as expressed by the following equation:
t a ( s ) =   m i n { σ i | i D }
Once the most imminent submodel is selected, that component performs its internal state transition and produces an output, and the output triggers external state transitions in the connected components. The entire cascade constitutes a single internal state transition of the coupled model.
In this way, a coupled model defines its state, time advance, and state transitions by aggregating information from its internal models, and the simulator guarantees consistent execution. This theoretical closure and simulation architecture have provided the foundation for subsequent DEVS extensions, including Parallel DEVS and Cell-DEVS [33].

2.2. Event Scheduling Method in HDL

Hardware description languages such as Verilog and SystemVerilog define event scheduling semantics to systematically handle concurrent events that occur at the same simulation instant. An HDL simulator divides simulation time into discrete time slots and processes a sequence of event queues within each slot in a defined order.
According to the IEEE 1800-2017 standard [26], execution proceeds through three principal regions:
  • Active phase: All blocking assignments (=) and combinational evaluations execute immediately. For non-blocking assignments (<=), only the right-hand side (RHS) is evaluated, and the left-hand side (LHS) update is deferred.
  • NBA phase: The non-blocking assignments scheduled in the Active phase are applied in a single batch, causing all related signals to update simultaneously. This mechanism realizes the concurrent-update semantics of hardware.
  • Reactive phase: Processes that observe or verify the newly updated signals are executed in this phase, including monitors, assertions, and output display tasks such as the Verilog/SystemVerilog system task $display.
All three phases are executed within a single simulation time slot, and additional delta cycles may repeat when necessary. A delta cycle is an internal iteration in which the simulator propagates logical effects while physical time remains fixed, and all iterations share the same timestamp. The Active–NBA–Reactive loop repeats until it stabilizes. This procedure performs evaluation followed by commit within the same physical time and enables the HDL simulator to model zero-delay signal propagation while producing deterministic results.
Figure 5 illustrates two flip-flops exchanging values on the same clock edge. In the Active phase, the current values of b and a are evaluated and placed in the NBA queue. In the NBA phase, the queued updates are applied to the left-hand sides simultaneously, so both signals update at the same time. Without this separation of evaluation and commitment, the first statement executed could overwrite the input of the other, resulting in a non-deterministic outcome.
An attempt to implement a similar evaluation-commit separation within DEVS was presented in the RTL-DEVS framework. To emulate the Active and NBA phases of Verilog, RTL-DEVS introduced two event queues inside the simulator, an Active queue and a non-blocking queue. Under a synchronized clock condition, the Active queue performs the computations, and the non-blocking queue applies the results collectively afterward. This approach demonstrated the feasibility of reproducing the deterministic concurrency semantics of HDL within a DEVS environment [21].

2.3. Parallel-DEVS (P-DEVS)

In classical DEVS, the Select function assigns a priority when multiple internal events occur at the same simulation time and determines which submodel is executed first. As noted earlier, when several submodels within a coupled DEVS become imminent at the same simulation instant, the simulator resolves priority using the following selection procedure [2]:
2 D D
The select function chooses one model from the set of imminent submodels:
I = { i D t i = t * }
Even when multiple models belong to I , the select function chooses exactly one according to a fixed priority rule, typically specified by the model designer, and that model executes its internal transition first. This mechanism preserves determinism at the level of the coupled model, yet the tie-breaking converts inherently parallel behavior into a sequential order and forces logical concurrency to follow an artificial sequence. As a result, classical DEVS retains closure under coupling in theory, but events that should be processed in parallel still propagate in a depth-first manner, introducing a structural limitation.
This sequential handling yields deterministic simulation results but fails to fully reflect the semantics of truly concurrent systems. P-DEVS was introduced to address this limitation. Although P-DEVS remains structurally similar to classical DEVS, it enables parallel scheduling and simultaneous event handling by defining the internal, external, and confluent transitions as follows:
M =   < X , Y , S , δ i n t , δ e x t , δ c o n f , λ , t a >
In this formulation, δ c o n f is invoked when an internal event and an external input occur at the same simulation time [29]. The presence of δ c o n f is the principal distinction from classical DEVS. It enables the model designer to explicitly encode priority for the scenarios under consideration.
In the parallel scheduling of P-DEVS, at simulation time t∗, the next internal event time reported by each component i is given by the following equation [29]:
t i = t + t a ( s i )
These components, the subset that attains the minimum is defined as follows:
I = { i t i = min j D t j }
In P-DEVS, unlike classical DEVS where Select chooses only a single imminent model, the entire set I is processed simultaneously. Every i I evaluates its output function λ ( s i ) at the same simulation instant, and the resulting outputs are routed to their recipients according to the coupling relations. Because multiple senders may deliver inputs concurrently, each input port stores arrivals in a bag structure, and the external transition consumes this bag as its argument to merge and process the inputs. Accordingly, the external transition function is redefined as follows:
δ e x t :   S × R 0 × B ( X ) S    
In this equation, S denotes the state space of the model, and B X represents a bag data structure that holds input events arriving at the same instant without ordering. This design allows the simulator to merge and process many inputs in a single step, even when multiple senders deliver messages at the same time. A core element of P-DEVS is the use of the confluent transition function when external inputs arrive exactly at an internal transition time. In that situation, the function provides a mechanism to evaluate multiple simultaneous events in parallel and to resolve conflicts in a consistent and deterministic manner.

2.4. HDL and P-DEVS

In P-DEVS, even when multiple models become imminent at the same simulation instant, all of them execute their output functions simultaneously. Each model then receives its input in a bag structure and processes the corresponding external transitions concurrently. This behavior is conceptually analogous to the Active phase in HDL simulation, where multiple logical events within a single time slot are evaluated concurrently.
However, HDL and P-DEVS differ in their semantics for propagating and committing outputs. HDL employs a delta-cycle structure divided into the Active, NBA, and Reactive phases, which strictly separates evaluation from update. Even though all computations are performed during the Active phase, actual signal updates occur collectively in the NBA phase, preventing mutual interference among signals within the same slot. This structure ensures hardware-level concurrency at the simulator level and maintains determinism at the slot level.
In contrast, in P-DEVS the output produced by an internal transition δ i n t can be immediately delivered as an input to another model at the same simulation time. These outputs may then propagate in a cascade within the same time step. As a result, events occurring at the same instant can directly reference each other’s outcomes, and full state synchronization within a single delta-cycle, as achieved in HDL, cannot be guaranteed.
This difference can lead to semantic mismatches in synchronization for feedback loops or pipelined structures. For example, in HDL, all flip-flops are updated simultaneously during the NBA phase of the delta-cycle, maintaining the behavior of a one-cycle delay for a given clock. In contrast, in P-DEVS, the output of one model may be immediately delivered to another model as input within the same simulation time, which can distort the temporal ordering of events inside the simulator. As a result, incorrect signal propagation that would never occur in real hardware may appear, causing pipeline skew or timing mismatches.
Although the confluent transition in P-DEVS is designed to merge simultaneous internal and external events within the same function, it resolves event-ordering conflicts only locally, not globally. It does not ensure slot-level concurrency across the entire system. While P-DEVS can determine which event to process first when multiple events occur at the same time, it cannot reproduce the NBA-phase semantics of HDL, in which all evaluated updates are applied collectively after computation. Consequently, the parallelism in P-DEVS remains limited to local merging, and global slot-level synchronization is not guaranteed. This may cause simultaneous events to unintentionally affect one another’s results or lead to order-dependent nondeterministic behavior. These differences are summarized in Table 1.

3. Problem Statement

There is a fundamental structural difference between HDL and DEVS simulators. In particular, the slot-based execution mechanism of HDLs such as Verilog, which support delta-cycles, is incompatible with the traditional event-driven sequential processing of the DEVS abstract simulator. HDL simulators guarantee phase-based parallel execution, where multiple signal changes occurring at the same simulation time are evaluated concurrently and committed collectively. In contrast, DEVS simulators do not process all scheduled events at a given simulation time simultaneously; instead, they select a single model and propagate events sequentially in a depth-first manner. Consequently, DEVS cannot reproduce the concurrency semantics inherent in HDL simulation. The following two representative cases illustrate how the DFS-based DEVS simulation kernel fails to maintain compatibility with HDL simulation and the resulting issues.

3.1. Pipeline Skew

The first problem is the timing distortion that occurs in pipeline stages, as illustrated in Figure 6a. This issue arises when a pipeline register chain composed of multiple flip-flops fails to reproduce HDL-equivalent behavior under a DEVS simulator. Each flip-flop latches its previous input, and new outputs are committed only after the NBA phase, preventing interference within the same cycle.
In contrast, the classical DEVS kernel processes these concurrent triggers sequentially. If FF1 and FF2 are both scheduled at the same time, the simulator selects one model first, updates its output, and immediately propagates the new value to the next stage. This causes FF2 to read an updated signal within the same cycle, advancing the pipeline by one step and creating pipeline skew.
Such distortion arises not from model defects but from the kernel’s depth-first event handling. Since the selection priority is arbitrary, the simulation may also produce non-deterministic results. This timing skew, which never appears in HDL simulators, undermines the reliability of DEVS-based hardware simulation.

3.2. Infinity Loop

The fundamental limitation of classical DEVS simulation becomes most apparent in self-feedback structures such as the SR latch, which is illustrated in Figure 6b. Consider the typical SR latch composed of two cross-coupled NOR gates, NOR1 and NOR2, each referencing the output of the other as its input. If the propagation delay of these gates is modeled as zero ( t a = 0 ), an infinite exchange of output events may occur in simulation time.
For instance, starting from an initial state where both NOR1 and NOR2 outputs are LOW, NOR1 receives inputs S = 0 and Q = 0 , changes its output Q to HIGH, and transmits this to NOR2. NOR2 then reacts to inputs R = 0 and Q = 1 , switches its output Q , and sends it back to NOR1. When this process repeats without any time advancement, the two gates continuously trigger each other, forming a feedback loop that generates new output events with zero-time intervals. From the DEVS simulator’s perspective, as soon as NOR1 produces an output, it is immediately delivered to NOR2 as an external event, which then produces its own output that is fed back to NOR1. This results in an unbounded chain of events occurring without any progression in simulation time.
In such a situation, the simulation becomes deadlocked, endlessly processing events within the same simulation time without progressing to the next step. In real hardware, the outputs under these conditions may enter a metastable state or eventually resolve to a stable value through analog physical effects. However, in an ideal discrete-event model, no such physical resolution mechanism exists, causing the simulator to loop indefinitely. The inability to handle zero-time infinite loops therefore originates from a structural limitation of the DEVS kernel itself.
The traditional DEVS simulator does not fundamentally resolve the two problems and has typically relied on the ε-time technique as a mitigation approach. This method introduces infinitesimal time offsets between logically simultaneous events, forcing them to be processed sequentially. Although this approach can alleviate infinite loops and race conditions in feedback paths, it distorts the simulation semantics by imposing an artificial temporal order.
Other practical methods, such as those employed in HDEVS, approximate a zero-valued time advance as a single hardware clock cycle. These methods sequentialize events that should occur simultaneously and assign additional clock steps to prevent infinite loops while preserving causal order [28]. However, they ultimately impose real execution order dependencies on transitions that should occur concurrently.
In conclusion, ε-time–based separation may temporarily mitigate pipeline skew and feedback-loop issues, but it cannot reproduce the strict separation between evaluation and commit that HDL simulators guarantee. As a result, slot-level determinism and structural equivalence are not preserved. The following section proposes a BFS-based simulation kernel that eliminates dependence on ε-time by evaluating all outputs occurring at the same simulation instant, parking them, and then performing a collective commitment.

4. BFS-Scheduled DEVS Simulation Kernel

A BFS-Scheduled DEVS Simulation Kernel is proposed, which preserves the classical DEVS definitions of atomic and coupled models and their original time-management scheme, while replacing the Select function and DFS-based event propagation with Level-Synchronous BFS scheduling, Event Parking, and Delta-round.
We first introduce Level-Synchronous BFS, which performs fully parallel evaluation along the levels of the coupling graph at the same t * . The Event Parking procedure is then defined in which computed outputs are temporarily stored in internal and external queues and applied collectively. Finally, the Delta-round method repeats evaluation and commitment within the same slot until a stable state is reached.

4.1. Level-Synchronous BFS

Level-Synchronous BFS evaluates all events occurring within the same simulation time slot according to the logical depth (level) of the coupling structure, without relying on the Select method of classical DEVS. All models at the same level are evaluated simultaneously, and the resulting outputs are stored temporarily in each model’s parking queue. Once one level has been fully evaluated, the next level is processed in the same manner. During this phase, only the computation functions λ and δ i n t are executed, whereas external transitions δ e x t are deferred. Each atomic model retains the standard DEVS interface consisting of X ,   Y ,   S ,   δ i n t ,   δ e x t ,   λ , and t a , based on the formalism defined in [2].
The DEVS simulator synchronizes all activities based on the most imminent event. Execution begins by retrieving the imminent event time and identifying the components scheduled to transition within that slot.
As shown in the equation below, among all components in the set D , the earliest transition time reported by each atomic model i which denoted as t N [ i ] is selected as the current simulation slot time t * :
t * =   min i D t N [ i ]    
Next, the set of components scheduled for transition within the current slot is obtained, as defined by the following equation:
L t * = { i D t N [ i ] = t * }  
The imminent set is partitioned according to the logical depth of the coupled input–output structure. A smaller level l indicates a higher position in the hierarchy, while a larger l corresponds to a lower-level model. This hierarchical division enables level-wise concurrent evaluation within the same simulation slot:
L t * , l = i L t * l e v e l i = l ,       L t * =   l = 0 l m a x L t * , l  
Then, for every imminent model i at level l , the output function λ i is evaluated simultaneously based on the model’s pre-state at the beginning of the current slot, s i :
y i = λ i ( s i )  
This step corresponds to the evaluate phase, which is analogous to the Active phase in HDL simulation. During this stage, each model computes its output independently without considering any new states or outputs from other models.
For each model i , the generated output y i is transformed according to the coupling relation and delivered to the corresponding destination models j . The transformed output is then appended to each model’s parking queue Q p a r k [ j ] as defined by the following equation:
j I i : Q p a r k j Q p a r k j Z i j ( y i )  
I i denotes the set of receivers connected to the output of model i , and Z ( i j ) represents the coupling transformation that maps the output of model i to the input format required by the receiving model j . The operator indicates accumulated into the target model’s parking queue.
Accordingly, all effects destined for each target model are accumulated and stored in its parking queue. After this aggregation, all imminent models at the same level simultaneously perform their internal transitions δ i n t . Once the internal transition is completed, each model updates its post-state s i + , the last transition time t L [ i ] , and the next scheduled transition time t N i according to the standard DEVS rules, as expressed below:
s i + = δ i i n t s i ,     t L i t * ,     t N i t L i + t a i s i +
When this procedure is completed, the next phase applies the external transitions δ e x t collectively to all models whose parking queues contain inputs accumulated during the previous evaluation step.

4.2. Event Parking

The purpose of the event parking queue is to define the rule by which all outputs parked for each target model during the Level-Synchronous BFS phase are applied collectively at the same simulation time t * . In the previous step, each Q p a r k j contains a merged collection of outputs from multiple sender models, aggregated by their target model. All inputs accumulated in each model’s parking queue are then applied simultaneously through the external transition function δ e x t , as defined by the following equation:
j : s j δ j e x t s j , e j ,   Q p a r k j ,     Q p a r k j
e j denotes the time elapsed since the last transition. At this point, all effects produced within the same slot are committed simultaneously, so the entire pipeline is updated at the same timing, and no further order dependence arises.
At this stage, all effects generated within the same slot are committed simultaneously, ensuring that the entire pipeline updates at the same timing and eliminating any order dependency. After this commit operation, each model j updates its last transition time and recalculates its next scheduled transition time according to the standard DEVS rule, as follows:
  t L j t * ,     t N [ j ] t L [ j ] + t a i ( s j )
The set of models that have newly scheduled transitions at the same simulation time t * is identified as follows:
L t * = { j t N [ j ] = t * }
If L t * is an empty set, the current simulation time slot is terminated, and the simulator advances to the next scheduled event time. If not, the models within this set are processed again within the same slot through the delta-round procedure described in the following section.

4.3. Delta-Round

A Delta-round is a process that repeats evaluation and commits operations within the same simulation time slot t * if there remain events requiring immediate re-evaluation. Conceptually, it is equivalent to the delta cycle in HDL simulation, ensuring convergence of zero-time feedback and pipeline propagation without using ε-time.
Each Delta-round follows four sequential stages: evaluate→parking→commit→time update which operate in the same manner as the Level-Synchronous BFS and Event parking procedures.
The repetition is triggered based on the set L t * , which contains models that still have pending transition events within the same time slot t * . If this set is empty, it indicates that no additional events remain to be processed at the current time slot. If the set is not empty, that is L t * , the Delta-round process begins.
We obtain the working set for this round from L t * and decompose it by the logical depth of the coupling structure:
L t * ( )     L t * ,     L t * , l ( ) = { i L t * l e v e l i = l } ,     L t * ( )   = l = 0 l m a x L t * , l ( )
L t * ( ) is the set of models to be handled in the current Delta-round, and L t * , l ( ) is its partition at level l . We obtain the working set for the current round, L t * ( ) from L t * and decompose it by the logical depth of the coupling structure to form L t * , l ( ) . This decomposition establishes a precedence within the same slot, which enables level-wise concurrent evaluation.
The subsequent operation repeats the proposed BFS procedure and event parking queue process. For each target model at every level, the output is computed and internal transitions are performed as follows:
y i ( ) = λ i s i ,     s i + = δ i i n t s i  
The computed outputs are not propagated immediately; instead, they are accumulated in each target model’s parking queue Q p a r k j using the same mechanism as the event parking step. The equation below describes how Q p a r k [ j ] is updated during the delta-round:
    j I i :   Q p a r k j   Q p a r k j Z i j ( y i )
In the commit phase, all accumulated events in the parking queues are applied collectively to their corresponding receiver models. For every model j , the external transition function δ e x t is invoked once, after which the parking queue Q p a r k j is cleared. The process is expressed as follows:
j : s j δ j e x t s j , 0 ,   Q p a r k j ,     Q p a r k j      
The elapsed time is set to 0 because all commits occur within the same simulation slot t * . And each model then updates its timing variables according to the standard DEVS rule, t L [ j ] t * and t N [ j ] t L [ j ] + t a j ( s j ) , for ensuring proper synchronization before the next slot begins.
Finally, we recompute the set of newly scheduled transitions at the same slot:
  L ( t * , Δ + 1 ) = k D t N k = t *
If L ( t * , Δ + 1 ) = , the current time slot terminates and the simulator advances to the next event time. Otherwise, the algorithm increments the delta-round index Δ Δ + 1 and repeats the Delta-round at the same time slot t * . This procedure repeats until all zero-time interactions within the same slot are stabilized, ensuring that the simulator achieves complete state convergence without any progression of physical time.
In exceptional cases, an infinite loop may occur due to improperly designed models. To prevent this, the simulator should define a maximum number of delta-rounds ( max Δ ), and when this limit is reached, a non-convergence error must be reported.
This mechanism ensures that the generation of outputs and the application of external transitions remain clearly separated within each simulation slot, thereby preserving causality and determinism. Even in the presence of 0-time feedback or combinational chains, the simulator produces deterministic results within the same slot without relying on ε-time. A detailed comparison with Verilog event regions is provided below Table 2.

4.4. Comparison of Classic DEVS Kernel and Proposed Kernel

This section analyzes the structural and operational differences between the classical DEVS kernel and the proposed BFS-based kernel. We focus on two key aspects: the event propagation mechanism and the consistency of state transitions under concurrent events.
In the classical DEVS transition flow, which is illustrated in Figure 7, an output event generated by an internal transition is immediately propagated to the connected models. This triggers an immediate external transition in the receiving model before other simultaneous atomic models have completed their execution. Consequently, the simulation proceeds in a depth-first manner, where a single event chain is fully resolved before the next simultaneous event is processed.
In contrast, the proposed BFS-DEVS transition flow adopts a synchronization approach using an event parking mechanism. When multiple atomic models are scheduled for the same simulation time   t a = 0 , their generated output events are not propagated immediately but are accumulated in the parking queue. The kernel checks if any imminent models remain t a = 0 . Figure 8 shows how propagation is managed in the proposed BFS-DEVS kernel.
Only when all simultaneous internal transitions are completed does the kernel pop the aggregated events from the queue and deliver them collectively to the target models. This ensures that all events generated within the same time slot are treated as a single logical batch, mirroring the concurrency semantics of hardware systems.
As illustrated in Figure 9, the classical DFS-based DEVS framework processes simultaneous events sequentially via the Select function. Consequently, the target model experiences a structural limitation where it fails to converge immediately to the final state X instead of updating through a transient intermediate state X . This mechanism imposes strict constraints on model designers to guarantee simulation determinism. Specifically, to ensure consistent results regardless of the input order, the model logic must satisfy the commutative property, and framework places excessive reliance on the design of the SELECT function to control the execution order among numerous models.
In contrast, when the target model simultaneously observes all concurrent events arriving at a given simulation time, it can execute a definitive state transition that maps the initial state directly to the final state based on the entire input set. Figure 10 illustrates the distinction between these two approaches from the perspective of state transition trajectories, demonstrating that the collective transition of the atomic model in the proposed method is structurally consistent with an ideal concurrent processing model. In this context, the proposed BFS-based kernel effectively eliminates the ambiguity caused by serialization, enabling rigorous state updates without requiring commutative model design or complex priority management.

4.5. Quantitative Analysis of Event Scheduling Complexity

In this section, to assess the relative scheduling overhead of different approaches for simulating synchronous registers, we approximate the number of DEVS transition events required to process N registers over C clock cycles. Although the exact runtime depends on additional factors such as queue management and coupling structure, we count only calls to the DEVS transition functions δ e x t and δ i n t , which dominate scheduling overhead in practical simulators. For clarity of exposition, we consider a representative case in which three synchronous register models, denoted as a, b, and c, perform a non-blocking assignment during every clock cycle.

4.5.1. Conventional Snapshot Method with a Clock Atomic Model

In a classical DEVS environment, non-blocking behavior is often emulated by adding a snapshot phase after the clock phase. A dedicated clock atomic model first broadcasts a clk event and, after an ε-delay, sends a snapshot message to all connected register models.
  • Clock phase (clk.int):
    a . e x t c l k b . i n t a . c u r r b . p r e v b . c u r r
    b . e x t c l k c . i n t b . c u r r c . p r e v c . c u r r
    c . e x t c l k a . i n t c . c u r r a . p r e v a . c u r r
  • Snapshot phase (clk.int after ε-delay):
    a . e x t s n a p s h o t   :   a . c u r r   a . p r e v ,   t a =  
    b . e x t s n a p s h o t   :   b . c u r r   b . p r e v ,   t a =  
    c . e x t s n a p s h o t   :   c . c u r r   c . p r e v ,   t a =  
Effectively, each register performs two external transitions per cycle: one for clk, one for snapshot. This doubles the logical work per cycle, and, in practice, the simulation time tends to grow to almost twice the clock period and increases linearly with the number of registers. Then, per-cycle scheduling cost is N   × C   × 2 δ e x t   2 N C .

4.5.2. Model-Level Emulation in RTL-DEVS

RTL-DEVS implements Verilog-like behavior by embedding a micro-state machine which has (wait, operation, out) inside each atomic model [21]. At each clock edge, the model works:
  • Receives the clock via an external transition and moves from wait to operation.
  • Performs RHS evaluation via an immediate internal transition, computing the next state and RHS values.
  • Commits the LHS update and produces output in another internal transition, moving to the out state and then back to wait.
Thus, each register incurs one δ e x t and two δ i n t per clock. Then, per-cycle scheduling cost is N   × C   × ( 1 δ e x t + 2 δ i n t )   3 N C .

4.5.3. Proposed BFS-Based Kernel with Event Parking

In the proposed kernel, non-blocking behavior is offloaded from the models to the scheduler. Each register model responds to the clock only once per cycle, and the commit is handled collectively by the kernel through the parking queue:
  • Evaluation:
    a . e x t c l k e n q u e u e   a . c u r r in p a r k . q u e u e [ a ]
    b . e x t c l k e n q u e u e   b . c u r r in p a r k . q u e u e [ b ]
    c . e x t c l k e n q u e u e   c . c u r r in p a r k . q u e u e [ c ]
  • Commit:
    When the slot terminates (sim.ta > 0), the kernel pops all parking queues once and invokes a single δ e x t per target model to apply the accumulated inputs. No additional snapshot messages or model-level micro-states are needed. Under the assumption of a stable synchronous pipeline, each register executes one external transition per cycle. Then, per-cycle scheduling cost is N   × C   × 1 δ e x t   N C .
Accordingly, the proposed BFS-based kernel reduces the number of scheduled transitions by approximately 50% relative to the snapshot method and by 66% relative to RTL-DEVS, while still preserving HDL-equivalent non-blocking behavior.

5. Case Studies and Discussions

5.1. Case of Pipeline Skew

In a DFS-based propagation, even within the same time slot, a cascade effect occurs because the state and output changes of a preceding stage are immediately reflected in the subsequent stage. In contrast, a BFS-based simulation initiates a collective event evaluation using the initial state of each model at that slot.
The following discussion explains, for an identical time slot t * , how the initial and final states of each model i   (denoted as s i and s i + ) differ in behavior between the DFS-based DEVS simulation and the BFS-based simulation combined with a parking queue, as illustrated in Figure 6 for a two-stage pipeline:
DFS-Based Propagation:
  • Flip-flop FF1 evaluates the input D in and immediately applies Q 1 f 1 D in   within the same time slot t *
  • The updated value of Q 1   is then propagated in the same slot as the input to FF2.
  • Consequently, FF2 performs its computation using the updated Q 1 +   instead of the original Q 1   that should have been observed at t * . As a result, the output of FF2 appears one slot earlier than expected, producing a pipeline skew effect.
Proposed BFS + Event Queue–Based Propagation:
  • In the time slot t * , both FF1 and FF2 compute their outputs by referring only to their initial states s i . Computations are defined as FF1: y 1 = λ 1 s 1   and FF2: y 2 = λ 2 ( s 2 )
  • The resulting outputs y 1   and y 2   are temporarily collected in target-specific parking queues.
  • When the current time slot t * concludes, these results are collectively applied to update the final states s i + . Because FF1 and FF2 do not reference each other’s updated values within the same slot t * , no skew occurs.
During simulation, in a model with a synchronized pipeline, the BFS-based approach first computes the outputs and then applies them simultaneously at the end of the time slot. As a result, each DEVS model produces its output independently of the preceding model’s updated output within the same slot, ensuring consistent results regardless of evaluation order.

5.2. Case of Infinity Loop

In the classical DEVS environment, the absence of infinitesimal time delays, known as ε-time, in zero-delay feedback loops often leads to infinite oscillations where events ping-pong endlessly between sub-models. To resolve this, explicit ε-time is traditionally introduced into the internal transition logic. For instance, in self-feedback circuits like an SR Latch, such artificial delays are required to ensure the model converges within a finite number of delta-cycles upon input changes.
However, the proposed BFS-based and delta-round technique incorporates an internal event parking queue, enabling the stable simulation of these structures without requiring explicit ε-time in the model. Functionally, ε-time serves as a heuristic mechanism to prevent the simultaneous overlap of input processing and consequent output generation within the same time slot. The proposed kernel structurally separates the evaluation of inputs from the commitment of the outputs through the introduction of the parking queue. This mechanism provides an equivalent effect to ε-time by enforcing a strict logical phase separation. Consequently, the kernel emulates the behavior of ε-time at the architectural level, guaranteeing convergence without imposing the burden of artificial delay management on the model designer.

5.3. Discussion

This study originates from the observation that the DFS-based event propagation in the classical DEVS abstract simulator structurally conflicts with the stratified event queue and delta-cycle mechanisms of HDL simulators. Such conflict leads to phenomena such as pipeline skew and zero-time feedback loops. To address these issues, we propose a DEVS simulation kernel that integrates level-synchronous BFS, event parking, and delta-round scheduling. Within a single simulation time slot, the proposed kernel performs evaluation, parking, and commit procedures, which formally correspond to the Active, NBA, and Reactive phases of industry-standard HDL simulators.
DEVS, with its rigorous time management, modularity, and hierarchical structure, provides precise control over complex and realistic systems, making it advantageous for co-simulation and dynamic scenario–based runtime analysis. Therefore, applying HDL design within the DEVS modeling space offers a complementary approach to systematically reproducing and analyzing design-level verification issues such as clock domain crossing (CDC) and metastability.
This can be facilitated through model-exchange and integration interfaces, reducing verification costs and the burden of repetitive compilation. However, existing approaches have primarily attempted to emulate HDL behavior or translate between HDLs by adding specialized functions to DEVS atomic or coupled models. As a result, a newly extended DEVS model had to be developed whenever a different HDL-related problem was addressed.
The BFS-scheduled DEVS simulation kernel proposed in this study aims to formally align the simulation kernel with the standard scheduling semantics of HDL simulators. This alignment reduces complexity during model conversion and provides a stronger foundation for achieving reliable and reproducible simulation outcomes. However, the proposed kernel is specifically designed to replicate HDL concurrency semantics with high fidelity within the DEVS environment.
Therefore, applying this approach uniformly to all general DEVS simulation domains may impose unnecessary constraints. For system models that do not require HDL-level concurrency guarantees, the classical DFS-based simulator can still serve as a more efficient and appropriate choice. Consequently, system designers intending to integrate the proposed method into general-purpose DEVS simulators should adopt a selective strategy that allows both the conventional DFS approach and the newly introduced BFS scheduling method to be applied as needed.
In conventional DEVS simulation, the DFS-based implementation offers the advantage that all models can be flattened into a directed acyclic graph (DAG) structure. In contrast, the proposed method requires tracking and managing the logical depth of the entire model. Before simulation begins, a static analysis must be performed to identify coupled models that contain self-feedback structures, which are then maintained in a dedicated reference table. This analysis stage is essential for detecting and managing coupled models that include zero-time feedback loops, such as SR latches. Because such coupled models are highly prone to oscillation during the delta-round process, additional safeguards may be required to mitigate computational complexity.

6. Conclusions and Future Work

The DFS-based event handling of classical DEVS fundamentally differs from the concurrency semantics of HDL simulators, which limits its scalability in hardware verification domains. This semantic inconsistency has been a major cause of timing distortion and output skew in DEVS-based modeling environments.
Early parallelization attempts, such as P-DEVS, primarily aimed to evaluate events occurring at the same simulation instant in parallel. However, DEVS simulations inherently allow computed outputs to be immediately propagated to other models within the same time slot, preventing them from faithfully reproducing the HDL principle of separating evaluation and commit in non-blocking assignments. The concurrency problem in HDL does not concern probabilistic convergence but rather deterministic state transitions that occur within a zero-time delta-cycle. Therefore, the classical DEVS formalism, in which outputs are propagated instantaneously, is inherently limited in addressing this limitation.
This work presents a conceptual design for a BFS-based simulation kernel inspired by the hierarchical event-queue mechanisms of HDL simulators. The proposed kernel ensures semantic equivalence with the Active, NBA, and Reactive phases of HDL through its event parking and delta-round mechanisms. As a methodological framework, the proposed approach has not yet been realized as a complete simulator. Future work will therefore focus on implementing the kernel and applying it to representative hardware design models to experimentally evaluate its correctness and performance. Ultimately, this study aims to narrow the semantic gap between DEVS and HDL, suggesting the potential of DEVS as a complementary framework for dynamic behavior analysis in complex digital systems.
The results of this study suggest that the semantic mismatch between DEVS and HDL simulators arises primarily from differences in their event-scheduling mechanisms rather than from limitations of the DEVS formalism itself. By adopting a BFS-based scheduling strategy with event parking and delta-round execution, the proposed kernel provides a practical means to align DEVS simulation behavior more closely with the concurrency semantics of standard HDL simulators.
Consequently, this approach mitigates timing inconsistencies, such as pipeline skew and zero-time feedback loops. It also suggests the utility of DEVS as a complementary framework for analyzing complex hardware behaviors that are challenging to capture through conventional HDL simulation alone.

Author Contributions

Conceptualization, Y.S.H.; methodology, J.S.L.; writing—original draft preparation, B.S.K.; writing—review and editing, B.S.K.; supervision, J.S.L.; funding acquisition, Y.S.H. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the National Research Foundation of Korea (NRF) grant funded by the Korea government (MSIT) (RS-2021-NR058027).

Data Availability Statement

The data presented in this study are available on request from the corresponding author. The data are not publicly available due to privacy.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Tavanpour, M.; Kazi, B.U.; Wainer, G. Discrete Event Systems Specifications Modelling and Simulation of Wireless Networking Applications. J. Simul. 2022, 16, 1–25. [Google Scholar] [CrossRef]
  2. Zeigler, B.P.; Praehofer, H.; Kim, T.G. Theory of Modeling and Simulation: Integrating Discrete Event and Continuous Complex Dynamic Systems, 2nd ed.; Academic Press: San Diego, CA, USA, 2000; pp. 37–75. ISBN 0-12-778455-1. [Google Scholar]
  3. Wainer, G.A.; Mosterman, P.J. (Eds.) Discrete-Event Modeling and Simulation: Theory and Applications; CRC Press: Boca Raton, FL, USA, 2011; pp. 3–73. ISBN 978-1-4200-7233-4. [Google Scholar]
  4. Risco-Martín, J.L.; Mittal, S.; Fabero Jiménez, J.C.; Zapater, M.; Hermida Correa, R. Reconsidering the Performance of DEVS Modeling and Simulation Environments Using the DEVStone Benchmark. Simulation 2017, 93, 459–476. [Google Scholar] [CrossRef]
  5. Capocchi, L.; Zeigler, B.P.; Santucci, J.-F. Simulation-Based Development of Internet of Cyber-Things Using DEVS. Computers 2025, 14, 258. [Google Scholar] [CrossRef]
  6. Concepcion, A.I.; Zeigler, B.P. DEVS Formalism: A Framework for Hierarchical Model Development. IEEE Trans. Softw. Eng. 1988, 14, 228–241. [Google Scholar] [CrossRef]
  7. Zeigler, B.; Wainer, G. DEVS Closure Under Coupling, Universality, and Uniqueness: Enabling Simulation and Software Interoperability from a System-Theoretic Foundation. Computers 2025, 14, 514. [Google Scholar] [CrossRef]
  8. Zeigler, B.P. Closure under Coupling: Concept, Proofs, DEVS Recent Examples (WIP). In Proceedings of the 4th ACM International Conference of Computing for Engineering and Sciences (ICCES’18), Kuala Lumpur, Malaysia, 14–16 July 2018; pp. 1–6. [Google Scholar] [CrossRef]
  9. Hamri, M.; Driouche, N. Modeling and Simulation of Logic Gates Using DEVS. In Proceedings of the 5th International Conference on Simulation and Modeling Methodologies, Technologies and Applications (SIMULTECH 2015), Colmar, France, 21–23 July 2015; SCITEPRESS—Science and Technology Publications: Setúbal, Portugal, 2015; pp. 194–200. [Google Scholar] [CrossRef]
  10. Chen, B.; Vangheluwe, H. Symbolic Flattening of DEVS Models. In Proceedings of the 2010 Summer Computer Simulation Conference (SCSC ’10), Ottawa, ON, Canada, 11–14 July 2010; Society for Computer Simulation International: San Diego, CA, USA, 2010; pp. 209–218. [Google Scholar]
  11. Santucci, J.-F.; Capocchi, L.; Zeigler, B.P. System Entity Structure Extension to Integrate Abstraction Hierarchies and Time Granularity into DEVS Modeling and Simulation. Simulation 2016, 92, 747–769. [Google Scholar] [CrossRef]
  12. Saghir, A.; Pearce, T.; Wainer, G. Modeling Computer Hardware Platforms Using DEVS and HLA Simulation. Simul. Ser. 2004, 36, 218. [Google Scholar]
  13. Lee, C.-H.; Bae, J.W.; Paik, E. GO-DEVS: Storage and Retrieval System for DEVS Models Using Graph and Ontology Representation. Sensors 2021, 21, 6771. [Google Scholar] [CrossRef]
  14. Van Tendeloo, Y.; Vangheluwe, H. Classic DEVS Modelling and Simulation. In Proceedings of the 2017 Winter Simulation Conference (WSC), Las Vegas, NV, USA, 3–6 December 2017; IEEE: Piscataway, NJ, USA, 2017; pp. 644–658. [Google Scholar] [CrossRef]
  15. Kwon, S.J.; Sung, C.; Song, H.S.; Kim, T.G. Integrated Hybrid Modeling Methodology and Simulation Engine Design Based on HDEVS Formalism. J. Korea Soc. Simul. 2013, 22, 21–30. [Google Scholar] [CrossRef]
  16. Wainer, G.; Govind, S. 100 Volumes of SIMULATION—20 Years of DEVS Research. Simulation 2024, 100, 1297–1318. [Google Scholar] [CrossRef]
  17. Ayadi, A.; Frydman, C.; Laddada, W.; Imbert, I.; Zanni-Merk, C.; Soualmia, L.F. Combining DEVS Simulation and Ontological Modeling for Hierarchical Analysis of the SARS-CoV-2 Replication. Simulation 2023, 99, 1011–1039. [Google Scholar] [CrossRef]
  18. Sung, J.-H.; Ju, S.-H.; Cho, S.-W.; Joo, H.-J.; Seo, K.-M.; Kang, B.-G. Modeling and Exploratory Analysis of Discrete Event Simulations for Optimizing Overhead Hoist Transport Systems and Logistics in Semiconductor Manufacturing. Mathematics 2025, 13, 1167. [Google Scholar] [CrossRef]
  19. Maatoug, A.; Belalem, G.; Mahmoudi, S. A Location-Based Fog Computing Optimization of Energy Management in Smart Buildings: DEVS Modeling and Design of Connected Objects. Front. Comput. Sci. 2023, 17, 172501. [Google Scholar] [CrossRef]
  20. Kwon, B.S.; Han, Y.S.; Lee, J.S. DEVS-Based CDC Synchronizer Design for Fast Debugging of Metastability. Electronics 2024, 13, 5048. [Google Scholar] [CrossRef]
  21. Kwon, B.-S.; Jung, S.-W.; Noh, Y.-D.; Lee, J.-S.; Han, Y.-S. RTL-DEVS: HDL Design and Simulation Methodology for DEVS Formalism-Based Simulation Tool. Telecom 2023, 4, 15–30. [Google Scholar] [CrossRef]
  22. Cárdenas, R.; Henares, K.; Arroba, P.; Wainer, G.; Risco-Martín, J.L. A DEVS Simulation Algorithm Based on Shared Memory for Enhancing Performance. In Proceedings of the 2020 Winter Simulation Conference (WSC), Orlando, FL, USA, 14–18 December 2020; IEEE: Piscataway, NJ, USA, 2020; pp. 2184–2195. [Google Scholar] [CrossRef]
  23. Ashenden, P.J. The Designer’s Guide to VHDL, 3rd ed.; Morgan Kaufmann: Burlington, MA, USA, 2008; pp. 559–583. [Google Scholar]
  24. Grötker, T.; Liao, S.; Martin, G.; Swan, S. SystemC: Methodologies and Applications; Springer: Boston, MA, USA, 2002. [Google Scholar]
  25. Thomas, D.E.; Moorby, P.R. The Verilog Hardware Description Language, 5th ed.; Springer: New York, NY, USA, 2008; pp. 109–142. [Google Scholar]
  26. IEEE Std 1800-2017 (Revision of IEEE Std 1800-2012); IEEE Standard for SystemVerilog—Unified Hardware Design, Specification, and Verification Language. IEEE: New York, NY, USA, 2018; pp. 1–1315.
  27. Cummings, C.E. Nonblocking Assignments in Verilog Synthesis, Coding Styles That Kill! In Proceedings of the SNUG (Synopsys Users Group) 2000, San Jose, CA, USA, 13 March 2000. [Google Scholar]
  28. Pifer, T.J. DEVS-Based Hardware Design, Synthesis, and Power Optimization Using Explicit Time Specifications and Deterministic Path-Based Latency. Master’s Thesis, University of Arizona, Tucson, AZ, USA, 2012. [Google Scholar]
  29. Chow, A.C.H.; Zeigler, B.P. Parallel DEVS: A Parallel, Hierarchical, Modular Modeling Formalism. In Proceedings of the Winter Simulation Conference (WSC), Lake Buena Vista, FL, USA, 11–14 December 1994; IEEE: Piscataway, NJ, USA, 1994; pp. 716–722. [Google Scholar] [CrossRef]
  30. Ewald, R. Simulation of Load Balancing Algorithms for Discrete Event Simulations. Ph.D. Thesis, University of Rostock, Rostock, Germany, 2006. [Google Scholar]
  31. Preyser, F.J.; Heinzl, B.; Kastner, W. RPDEVS: Revising the Parallel Discrete Event System Specification. In Proceedings of the 9th Vienna International Conference on Mathematical Modelling (MathMod 2018), Vienna, Austria, 21–23 February 2018; pp. 242–247. [Google Scholar]
  32. Junglas, P. NSA-DEVS: Combining Mealy Behaviour and Causality. Simul. Notes Eur. 2021, 31, 73–80. [Google Scholar] [CrossRef]
  33. Wainer, G.A. An Introduction to Cellular Automata Models with Cell-DEVS. In Proceedings of the 2019 Winter Simulation Conference (WSC), National Harbor, MD, USA, 8–11 December 2019; pp. 1534–1548. [Google Scholar]
Figure 1. Stratified event queue in Verilog, Conceptually Equivalent to VHDL Delta-Cycle.
Figure 1. Stratified event queue in Verilog, Conceptually Equivalent to VHDL Delta-Cycle.
Electronics 15 00048 g001
Figure 2. Imminent atomic model selects and traveling in the DEVS Hierarchy.
Figure 2. Imminent atomic model selects and traveling in the DEVS Hierarchy.
Electronics 15 00048 g002
Figure 3. Conceptual structure of the Parallel DEVS (P-DEVS) formalism.
Figure 3. Conceptual structure of the Parallel DEVS (P-DEVS) formalism.
Electronics 15 00048 g003
Figure 4. Modified model specification in RTL-DEVS; It shows 0-time transition for HDL capabilities.
Figure 4. Modified model specification in RTL-DEVS; It shows 0-time transition for HDL capabilities.
Electronics 15 00048 g004
Figure 5. Simple flip-flop model with Verilog event region.
Figure 5. Simple flip-flop model with Verilog event region.
Electronics 15 00048 g005
Figure 6. Two representative cases in DFS-based DEVS simulation kernel: (a) 2-stage flip-flop pipeline example; (b) SR Latch with a self-feedback structure in simulation.
Figure 6. Two representative cases in DFS-based DEVS simulation kernel: (a) 2-stage flip-flop pipeline example; (b) SR Latch with a self-feedback structure in simulation.
Electronics 15 00048 g006
Figure 7. Comparison of event propagation mechanisms between classical DEVS and the proposed BFS-DEVS.
Figure 7. Comparison of event propagation mechanisms between classical DEVS and the proposed BFS-DEVS.
Electronics 15 00048 g007
Figure 8. Execution flow comparison: direct propagation (classical) vs. event parking mechanism (proposed).
Figure 8. Execution flow comparison: direct propagation (classical) vs. event parking mechanism (proposed).
Electronics 15 00048 g008
Figure 9. State transition trajectories of classical DEVS kernel; the red arrow indicates the output transfer of each phase, and the state of Model D shows continuous changes.
Figure 9. State transition trajectories of classical DEVS kernel; the red arrow indicates the output transfer of each phase, and the state of Model D shows continuous changes.
Electronics 15 00048 g009
Figure 10. Commutative diagrams of the two kernels: (a) transient intermediate states in classical DEVS; (b) direct transition via collective event processing in the proposed kernel.
Figure 10. Commutative diagrams of the two kernels: (a) transient intermediate states in classical DEVS; (b) direct transition via collective event processing in the proposed kernel.
Electronics 15 00048 g010
Table 1. Structural Comparison of P-DEVS and HDL Simulation Frameworks.
Table 1. Structural Comparison of P-DEVS and HDL Simulation Frameworks.
AspectHDLP-DEVS
Event-processing schemeActive–NBA–Reactive
(delta-cycle)
Internal/External/Confluent transition
Separation of evaluation and commitClearly separated
(Evaluate→Commit)
Not separated
(Evaluate→Propagate)
Feedback handlingStableMay exhibit cyclic propagation
(0-time feedback possible)
Order dependencyNone
(slot-level deterministic)
Partially present
(confluent transition)
Simulation granularityTime-slot basedEvent based
Table 2. Formal mapping between Verilog event regions and the proposed BFS-based Kernel.
Table 2. Formal mapping between Verilog event regions and the proposed BFS-based Kernel.
Target Event Region (HDL)Proposed DEVS KernelKey Features
ActiveLevel-Synchronous BFS
(evaluate phase)
Prevents interference among models within the same slot by evaluating all outputs simultaneously without immediate propagation. Each result is stored only in the target-specific parking queue.
NBAEvent parking and
commit
Preserves concurrent inputs from multiple senders by holding RHS values in queues, then performs simultaneous LHS commits, mimicking the non-blocking assignment semantics of HDL.
ReactiveDelta-round detectionAfter commit, recalculates the new state and next event time for each model. Depending on slot conditions, either proceeds with another delta-cycle or terminates the slot and updates simulator outputs.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Kwon, B.S.; Han, Y.S.; Lee, J.S. A BFS-Based DEVS Simulation Kernel for HDL-Compatible Simulation. Electronics 2026, 15, 48. https://doi.org/10.3390/electronics15010048

AMA Style

Kwon BS, Han YS, Lee JS. A BFS-Based DEVS Simulation Kernel for HDL-Compatible Simulation. Electronics. 2026; 15(1):48. https://doi.org/10.3390/electronics15010048

Chicago/Turabian Style

Kwon, Bo Seung, Young Shin Han, and Jong Sik Lee. 2026. "A BFS-Based DEVS Simulation Kernel for HDL-Compatible Simulation" Electronics 15, no. 1: 48. https://doi.org/10.3390/electronics15010048

APA Style

Kwon, B. S., Han, Y. S., & Lee, J. S. (2026). A BFS-Based DEVS Simulation Kernel for HDL-Compatible Simulation. Electronics, 15(1), 48. https://doi.org/10.3390/electronics15010048

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Article metric data becomes available approximately 24 hours after publication online.
Back to TopTop