ovm test environment setting : hdl module vs interface

Status
Not open for further replies.

im&u

Newbie level 4
Joined
Jan 21, 2011
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,349
Hi!
I am a new user of ovm (I used to work with vhdl/verilog based verification methodology)
I am trying to develop a verification environment for a design that communicates with an external adc( spi protocol: cs, sclk etc)

I have some questions:

As I need a model to emulate the behaviour of the adc,

  • should I design it as a systemverilog module ?
  • or as an interface with tasks that drive/receive data from/to the dut?
  • or I must create an ADC transaction, ADC sequence, ADC sequencer, ADC driver and an ADC interface ?

In this cas the test does not control when to generate a transaction on the adc interface, instead it shall wait for the dut to make a request (cs_n goes low).
In which class shall I put the condition "wait (!cs_n)" ? in the test ? transaction? driver ?

Thank you.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…