Docsity

Methods - Functional Verification - Lecture Slides, Slides of Computer Science

Partial preview of the text

Download Methods - Functional Verification - Lecture Slides and more Slides Computer Science in PDF only on Docsity!

Methods for checking

simulation correctness

How do you know if your

testcase passed or failed?

3 checking methods

 Predict and check

 Check as you go

 Trace and check later

Predict and check - cont'd

m 00000100 830445cd6673da
m 00000108 34539877c7c
m 00000110 cd565479802ad
i ld r4, (100)
i ld r8, (110)

i add r4, r8, r i add r3, r4, r i add r3, r3, r ... m 00000100 830445cd m 00000108 34539877c7c ... Docsity.com

Predict and check - cont'd

 Does not require run time

interaction with the model

 Reference model tends to be

highly reusable

 Quickly up and running and

producing bugs

 Bugs must propagate to a result  Bugs can be overwritten  Cascade affect can make it difficult to isolate the source of the problem  Results have to be predictable from the testcase alone  Input may have to be restricted to guarantee predictable results

Advantages Disadvantages

DUV

Driver A

Driver B

Driver C

IM A

IM B IM C

Check as you go - cont'd

Unit monitor

Global transaction monitor ("Scoreboard")

(IM = Interface Monitor)

Check as you go - cont'd

 Highly effective at finding all types of bugs  Stops the test as soon as the error is detected  Error messages can be very specific and are usually directly related to the problem  Environment can choose what to do next based upon observed events

 Environment code is greater than the VHDL  Environment may be created to match the implementation instead of the design intent  Takes time to make the environment effective  Requires run time iteraction with the model  Code is very design specific and not reusable

Advantages (^) Disadvantages

Trace and check later - cont'd

Memory Controller I/O Hub

L2 Cache

L1 Cache

Core L2 Cache

L1 Cache

Core

System Bus

I/O Behavior I/O Bus

Trace and check later - cont'd

 Don't spend simulation time checking results  Stimulus generation is not constrained  Allows correlation between distant parts of the design under verification  Tracers and checkers reusable for standard interfaces

 Bugs must propagate to an observed interface to be seen  Testcase will run to completion before any error checking is started (wasted cycles)  Requires run time interaction with the model

Advantages Disadvantages