Class: OrigenTesters::Test::ComplexTimingDUT

Inherits:
Object
  • Object
show all
Includes:
Origen::TopLevel
Defined in:
lib/origen_testers/test/complex_timing.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ ComplexTimingDUT

Returns a new instance of ComplexTimingDUT.


6
7
8
9
10
11
12
13
14
15
# File 'lib/origen_testers/test/complex_timing.rb', line 6

def initialize(options = {})
  add_timeset(:complex_timing)
  timeset(:complex_timing) do |t|
    t.period_in_ns = 1
    t.drive_wave(:tclk) do |w|
      w.drive(0, at: 0)
      w.drive(:data, at: 'period/2')
    end
  end
end

Instance Method Details

#startupObject


17
18
19
# File 'lib/origen_testers/test/complex_timing.rb', line 17

def startup
  tester.set_timeset(:complex_timing)
end