Class: OrigenJTAGDev::Serial

Inherits:
NewStyle show all
Defined in:
lib/origen_jtag_dev/serial.rb

Overview

This is a dummy DUT model which is used to instantiate and test the JTAG locally during development.

It is not included when this library is imported.

Instance Attribute Summary

Attributes inherited from NewStyle

#jtag_config

Instance Method Summary collapse

Methods inherited from NewStyle

#init_state, #initialize, #instantiate_registers, #startup, #tclk_format, #tclk_multiple, #tclk_vals, #tdo_store_cycle, #tdo_strobe, #update_jtag_config

Constructor Details

This class inherits a constructor from OrigenJTAGDev::NewStyle

Instance Method Details

#instantiate_pins(options = {}) ⇒ Object



8
9
10
11
# File 'lib/origen_jtag_dev/serial.rb', line 8

def instantiate_pins(options = {})
  add_pin :tck
  add_pin :tio
end

#jtag_cycle(actions, options = {}) ⇒ Object



13
14
15
16
17
18
19
20
21
22
# File 'lib/origen_jtag_dev/serial.rb', line 13

def jtag_cycle(actions, options = {})
  pin(:tck).drive(1)
  jtag.apply_action(pin(:tio), actions[:tdi])
  tester.cycle(options)
  jtag.apply_action(pin(:tio), actions[:tms])
  tester.cycle(options)
  jtag.apply_action(pin(:tio), actions[:tdo])
  tester.store_next_cycle(pin(:tio)) if actions[:store]
  tester.cycle(options)
end