Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
cycle simulation is faster than event,
represents the operation of the real hardware,
is best when representing synchronous designs, complex combinational circuitry, and no signal strength resolution.
but for asynchronous even simulation is best.
1. Simulation based on cycle is faster than simulation based on event.
2. It is suitable to the regression test.
3. It is suitable to the 2-value logic.
Cycle simulators:
Preprocess the design into a symbolic representation
— Levelized Compiled Code (LCC)
— Binary Decision Diagrams (BDD)
— Boolean and arithmetic operations
Update all circuit states simultaneously when triggered
— Using lookup tables and computational methods
— Typically on an externally defined clock edge
— The software counterpart of a hardware model
Event simulation typically traces every signal transition as it propagates through the
circuit, and continues to do so until the circuit reaches a stable state. The illustration
displays part of an event trace produced by the Verilog-XL simulator. Note that the
simulator may need to calculate the state ofa component several times during the same
simulation time instant.
Cycle simulation typically re-evaluates the state of the circuit as a whole, once upon
each external trigger, usually without evaluating any intermediate node states. Cycle
simulation can implement combinational control logic as an optimized lookup table.
Cycle simulation can map vector functions, data flow, and arithmetic calculations into
native machine instructions. For example, it may implement a multiply operation in
machine instructions, rather than as a lookup table.
for this topci, you can read some books such as "writing testbenches" Functional Verification of HDL modles.
Generally speaking, Cycle-based simulation is faster than event-driven simulation since it only executes the sampled values instead of all the occured events of signals. However this benefits will sacrify some observability of the design since some events of the signals during the clock cycle is hidden, so at first, you many simulate your design using cycle-based simulation to check whether some errors exist. If does, then the event simulation shall be followed to find out the exat errors.
During the regression phase, the cycle-based simulation is always used so as to enhance the performance of the simulator since at that time mainly the integration errors are the major causes causing the system to malfuction.
currently, the SystemVErilog provide the Clocking block to enhance such capability when constructing your testbench.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.