We already had a promising Vera+RVM+VIP one. ⢠Side goal: assert for RTL designer acceptance. â Or bootstrap a dedicated (proto)verification group.
• We need a framework / methodology – To let the simulator “push” an IP in any possible way – While retaining enough control on the “any” concept Constrained Random Generation
Tune constraints
Many runs w/ different seeds
Directed Testcase
Minimal Code Modifications
Functional Coverage Identify holes
3
Xavier Caron
(Smart quote) • Insight from a real code guru “Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.” -- Brian Kernighan
• One more challenge – Verifier & RTL coder are supposedly different persons
• How to accommodate for this neuronic deficit? – The brute-force way (~ target all possible combos) – The abstracted way (~ use a strict methodology)
4
Xavier Caron
Our VMM experiment • Main goal: pipe-clean a SVTB+VMM+VIP flow – We already had a promising Vera+RVM+VIP one
• Side goal: assert for RTL designer acceptance – Or bootstrap a dedicated (proto)verification group
• We picked up a not-too-complex IP – Our proprietary AHB-Lite “HMATRIX1” bus matrix Master 0 (AHB)
Slave 0 (AHB)
HM1 Master N (AHB)
Slave N' (AHB)
Config (APB)
5
Xavier Caron
Testbench at a glance • TB building blocks – DUT – Interfaces – Test program (within an “env” object)
• TB roles – – – –
test program ~ env
Ptest AHB bus interface
Im.
Is.
HM
TestBench
P I HM m. s.
: : : : :
Program Interface HMATRIX1 master slave
Define system clock Instance ad'hoc interfaces Instance DUT and connect its signals to interfaces Instance test program and connect it to interfaces
6
Xavier Caron
Interfaces • 3 kinds to be used (a bit of wishful thinking) – TB, clocked & reversed DUT-wise – DUT, unclocked & I/O as is – Monitor, unclocked & all-in
• Avoid the async. all-inout wiring scheme – Use clocking blocks / modports to constrain further
• Clocking blocks – For timing & synchronization requirements purposes
• Modports – To enforce correct I/O wiring
• Consistent glue to '95 style verilog IPs
7
Xavier Caron
Test program • Transactors – Xaction to “bus” transcoders
• Channels
test program ~ env
Gm.
transaction callback
Cm.
– P2P communication media
• Generators
interface
Xm.
SB
Ms.
Im.
HM
Is.v
– Object (~ xaction) factories
• Monitors – Bus spies
• Scoreboard – The focal point
Xs.
TestBench
P C X I M
: : : : :
Generator Channel Transactor Interface Monitor
SB : Scoreboard HM : HMATRIX1 m. : master s. : slave
8
Xavier Caron
Milestones: to transactors test program ~ env
Gm.
transaction callback
Cm.
interface
Xm.
?
SB
Ms.
Im.
HM
Is.v
TestBench
?
?
Xs.
9
Xavier Caron
Transactors • Mediators between 2 kinds of representations – Abstract, borne by xactions (queued class instances) – Physical, borne by wires (AHB “bus” pin wiggling)
• We needed 3 kinds of xactors – Namely master, slave and monitor (cf interfaces)
• Master – Transcodes instance properties into pin wiggling
• Slave – Reacts to pin wiggling and updates its own state
• Monitor – Spies pin wiggling to decipher xactions for the SB
10
Xavier Caron
Transactors (cont'd) • VIP was not usable with VCS 2005.06-SP1 – SystemVerilog / OpenVera interoperability is missing – Required VIPs are mainly coded in OpenVera
• We had to code our own makeshift xactors – With much less features than their VIP counterparts – We devised them as transient pieces of code anyway
• The hardest one is – by far – the monitor – Real-time on-the-fly xaction decoding is a tough job
• Our monitor has thus one big limitation – It only reports beat-wise xactions – Beat-to-burst aggregation delegated to SB instead
11
Xavier Caron
Milestones: to generators/channels
?
test program ~ env
Gm.
transaction
?
callback
Cm.
interface
Xm.
SB
Ms.
Im.
HM
Is.v
TestBench
Xs.
12
Xavier Caron
Constrained Random Testing paradigm • A generator is an instance factory
– Restlessly constructs, populates & queues xactions ahb_data class
ahb_data instance
properties + constraints
properties + constraints
Returns constrained random instance
Populates properties Constructs instance
Parses constraints
constraint-wise AMBA legal exhaustive
CONSTRAINT SOLVER
POSSIBILITIES SPACE Chooses randomly
13
Xavier Caron
Milestones: to scoreboard test program ~ env
Gm.
transaction callback
Cm.
interface
Xm.
SB
?
Ms.
Im.
HM
Is.v
TestBench
Xs.
14
Xavier Caron
Scoreboard • Performs a “mere” quantitative 1-to-1 match – A posteriori treatment (no RT feedback loop) – On aggregated (master) vs atomic (slave) xactions
• Still does a “first stage” check only – Beat-wise integrity (~ atomic) – Only reflects correct wiring implementation – Does not take “beat pertains to burst” into account
• Will eventually need a “second stage” check – Burst-wise consistency (~ aggregated) – Should reflect higher-level arbitration features – Like broken bursts, latency, etc.
Milestones: to functional coverage test program ~ env
Gm.
transaction callback
Cm.
interface
Xm.
SB
Ms.
Im.
HM
Is.v
TestBench
Xs.
17
Xavier Caron
18
Functional coverage • CRT paradigm is coverage-driven – To avoid “blind” tests – To close the “run-cover-tweak” verification loop
• Coverage is a qualitative study of xactions – Used as a metrics – Gives a statistical summary of a simulation run
• To actually augment functional coverage – – – –
Run longer simulation (if possible) Relax constraints (within allowed legal frame) Beware of potential memory issues! Since a posteriori SB processing implies accumulation
Xavier Caron
19
Current status • Yet to be done – Switch to VCS 2006.06-B (features SV/OV interop.) – Some changes needed but not structural ones: Replace our makeshift xactors by VIP instances Replace our own xaction by VIP one – Implement missing / gated features (INCR, etc.) – Use assertions to formalize assumptions SB relies on
• Eventually – Hand out the whole TB to a “lucky” RTL win^Hcoder – For usability review (cf “minimal code modifications”) – And... Acceptance!
Conclusions (albeit partial ones)
Xavier Caron
20
• VMM – Sensible, but has a very steep learning curve – You do not want to start by 1st reading VMM book – Use RVM tutorial & one day training instead
• VIP – Has desired aggregated xaction reporting features – But was not designed to handle P2P AHB connections – Yet works if HTRANS is gated by HSEL (workaround)
• SVTB – Support via VCS 2005.06-SP1 was more than decent – Rich enough, allows for not-so-inelegant workarounds
within Atmel design or protoverification groups. ..... endmodule. Unsurprisingly, a SystemVerilog testbench is not so different from its Verilog parent. It.
MD, 20742. Cynthia F. ... Systems Research, University of Maryland, College Park, MD, 20742. Jonathan Z. ...... Science, 300(5618), 498â502. Clifton, R. K. ...
some original proposals implicating Topic Detection, Lexical Tuning and Intelligent ... service systems, Information Extraction, Human-computer interaction.
email: {ichir,[email protected]}, web: {mahieddine.ichir,djafari}.free.fr. ABSTRACT. In this paper we address the problem of Bayesian blind source separation ...
PAPER Special Section on Discrete Mathematics and Its Applications. A Combinatorial Approach to ..... Operations Research from Cornell Uni- versity in 1992.
Mono and Bistatic SAR Imaging geometries and the Fourier domain data. ..... which gives the possibility of jointly segmenting and reconstruction [18, 19, 20, 21].
Statistical Sense Disambiguation with Relatively Small Corpora using. Dictionary Definitions. Proceedings of the 33rd Annual Meeting of the ACL. MUC-5 (1993) ...
Development of a substructuring approach to model the vibroacoustic behavior of submerged stiffened cylindrical shells coupled to non-axisymmetric internal ...
to who actually won the election. .... adjacent regions also exert area forces upon shared vertices, resulting in a tug of war, with the .... Cellular Automata Machine.
Keywords: target visibility, headlight, fog. 1 Introduction. This paper presents a conventional approach for assessing highway visibility at night in foggy weather, ...
remain problematic, e.g. the detection of overlapping speech and effective .... Since we have not implemented a music detector we assume that the few music ... TV show data is edited; shot selection is performed by a TV director who gen- ..... [9] P.
similarly concerned with the way the environment and tools support action but is additionally concerned with ... undergraduate textbook in experimental cognitive psychology. A stimulus ... 96. A. Monk / Cognition 68 (1998) 95â110 ..... actions allo
Vision, for instance, can influence and guide calibration of sound localization (Knudsen. & Knudsen, 1985 ..... corresponding to the higher density region are simply closer to each other (which would ... these animals' survival. The HRTFs of ...
1 of 4. 11/12/2007 21:07. Advertisement. A New Approach to Chronic Lyme Disease ... Dr. Fritz Schardt (FS): I was actually my first patient. I got lyme disea.
With the advent of transformational grammar and a model of language based on the premise of two levels of linguistic structures (deep and surface structure) ...
The process of approximating the behaviour of a continuum by 'finite ... initial strains and the constitutive properties of the material, will define the state ..... If only one external concentrated load R is present the strain energy bound imme-.
influential in this attack on one-shot cognitivism. A large part of this book is a study of two ..... Houghton-Mifflin, Boston, MA. Gray, W.D., John, B.E., Stuart, R., ...
it is intended as an introduction to the theory of the didactic transposition of knowledge, in ... has been the author's intent to make their proper meaning grow out of their .... variety of concrete cases to which the word âcurriculumâ is applie
Nov 14, 2017 - 1 Among my many debts, I will acknowledge here a special one to my colleague and, on occasion ... Yale Economic Essays, 4 (Fall, 1964), pp.
equation. Third, we define the approximate viability kernel associated to the function V ât by the under-level set Kϵ := {x â K, V ât(x) ⤠ϵ} with ϵ > 0 a given ...
Sep 19, 2014 - Incremental: the model is improved each time a new data point is received ..... The mapping can be learned incrementally from samples .... arms. In Proceedings of the Tenth International Conference on Simulation of Adaptive ...
Mar 4, 2015 - Simulation of coupled complex multiscale subsurface phenomena under Contract No. ... oil and gas worldwide production was from fractured wells and as of .... crack boundary âC where the interface law (7) is prescribed.
it can answer queries about concept satisfiability (whether P(e|CT) = 0), about con- cept overlapping (how close e is to a concept C as P(e|C,CT)), and about ...