












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!













We’re^ going^ to^ focus^ on^ Verification,^ but^ the^ two^ are^ obviously^ related
but^ the^ two are^ obviously^ related it correctly?
it^ correctly?
etc.,^ usually^ worry^ about
i^ F^ h?
to^ in^ French?
the^ correct^ thing? Validation:^ Are^ you^ building
the^ correct^ thing?
etc.,^ usually^ worry^ about
unit^ in^ their^ CPU? What^ language^ did^ the^ Army^ specify
self destruct^ codewords in?
self‐destruct^ codewords^ in?
and/or properties^ of^ operation • Feed^ implementation^ and^ model(s)
to^ a^ model^ checker
‐solvers,^ constraint^ solvers^ and^ other automated techniques: typically either^ proves^ correctness,^ or id t l ( )provides counter‐example(s)
32 ‐bit^ inputs^ =^64 ‐bit^ test^ vector) (^64 4) – Brute force: 2 =^ 18 446 744 073 709 551 616Brute force: 2 =^ 18,446,744,073,709,551,616• That’s 18+ Quintillion^ input possibilities• Assuming you can test 1 Billion^ inputs^ per^ second,^ this^ would
still t k^8 t^ iftake^ you^ over^584 years^ to^ verify– Let’s^ say^ you^ only^ have^6 months
to^ verify^ the^ adder…
of^ the^ possible^ inputsy y p^ p
With^ a^ little for full verificationb dd h h more^ than 116,000 processors, you can get it done^ in^ time
ha^ ha can^ get^ it^ done^ in^ time^5
Grey‐Box^ Testingl
built^ them^ in^ the^ first^ place
X 6 inputs,^ so^64 B^ possible^ input^ vectors^ D
Y Idea:^ make^ sure^ every^ signal^ (wire)^ is^ tested^ (wire)^ is^ tested^ E F 7 internal^ signals,^ test^ both^ high test^ both^ highStill^ black‐box^ and^ low^
‐like;^ apply^ input,^ observe output
X p B q t u D
Y
-^ Verilog:^ need^ to^ change
interface^ to^ export^ internal
signals (can^ see^ in^ graphical^ timing
viewer) (can^ see^ in^ graphical^ timing
viewer)
-^ Hardware:^ very^ expensive
0
we^ start^ in^ state^0 Input^ sequence^ of:0,^ 1,^ 0,^1 would visit all^ states^ and^ all^ edges 1 1
Partity Detector^ FSM0, 1, 0, 1 0,^ 1,^
1,^0 FSM Implemented^ Correctly?p^ y 0 0
For^ this^0 *^ *^ *^1 00^ implementation 1 110 11
: no(two edges not^ This^ implementation^ justexercised by thehappens^ to^ correctly^ output 11 test^100 For^ this^0
sequence;the^ first^ fourand^ they’reincorrect^ in this^ case)
bits^11 implementation :^1 yes^
t )
the^ system^ wants^ to), invoke^ the^ BIST^ to^ verify^ the
correct^ operation^ of^ the system – Older^ systems^ would^ display
memory^ checks^ at^ boot‐up (Power‐On^ Self^ Test^ or^ POST)C^ t^ t^ till^ d^ thi
th^ j^ t^ d^ ’t^ di^ l^ thi• Current systems still do this,^ they^ just^ don’t^ display^ everything anymore
E^ i^ l ti^ th^ d
illi^ f^ t^ t^ t
or^ millions^ of^ test^ vectors
slower^ than^ real^ HW
k^ th^ dd^ f^
“l
make^ the^ adder^ perform^
“long addition”• M^ *^ N^ =^ M^ +^ M^ +^ M^ +^ …^ +^ M
(N^ times)
the^ input^ generator,^ rather
use known^ inputs• Or^ use^ the^ PRNG^ with^ a^ known
seed^ so^ that^ you^ still^ know^ what Or^ use^ the^ PRNG^ with^ a^ known
seed^ so^ that^ you^ still^ know^ what test^ sequences^ it^ will^ generate– Keep^ a^ table^ of^ expected^ outputs
LEDs b t^ di^ tl^ i^ ifi
i^ l^ t^ th^ t^ t
signals^ to^ these^ outputs
observing^ a^ lot^ of^ information• e.g., all of the state inside the^ processor^ (could^ be^ many^ kilobytesg , p^ (^ y^
y of^ registers,^ flip‐flops,^ etc.)
To^ Next^ Scan^ Register^ in^ Chain 0 NormalInput^
Normal 0 1
NormalOutput Variant^ #1:^ Partial^ Scan ScanMode
Variant^ #1:^ Partial^ Scan(not^ all^ registers^ are connected^ into^ the^ chain) From^ Previous^ ScanRegister^ in^ Chain^
Variant^ #2:^ Parallel^ Scan(more^ than^ one^ set^ of^ pins^ Æ^ faster^ reading)^19
know^ what^ the^ bits^ correspond
to Not^ useful^ unless^ you^ know^
what^ the^ bits^ correspond^ to • E.g., in theory you could try to^ hack^ a^ real^ chip’s^ scan^ chain^ interface and read out its internal data,^ but^ without^ knowing^ the^ actual
internal structure^ (implementation)^ and^ the^ order^ in^ which^ the^ registers^ are^ f hooked^ up^ in^ the^ scan^ chain,^ it’ll^
just^ be^ a^ lot^ of^ meaningless^ bits
(put^ values^ on^ scan‐in^ pin^ and
clock^ as needed)needed) – Deassert scan^ mode– Apply^ one^ clock – Scan^ out^ state^ and^ see^ if^ it’s
what^ you^ expected