Sha256: 3dd8f846879671473430e157f3aa6ecd01b5d7d80c775ec41623e1603f5c2e23
Contents?: true
Size: 1.39 KB
Versions: 2
Compression:
Stored size: 1.39 KB
Contents
module OrigenLink module Test class TopLevel include Origen::TopLevel def initialize(options = {}) instantiate_pins(options) instantiate_registers(options) instantiate_sub_blocks(options) end def instantiate_pins(options = {}) options = { jtag_comm_config: false, invalid_pin_number_test: false, missing_pinmap_test: false }.merge(options) add_pin :tclk, meta: { link_io: 119 } add_pin :tdi, meta: { link_io: 116 } add_pin :tdo, meta: { link_io: 124 } add_pin :tms, meta: { link_io: 6 } add_pin :resetb add_pins :port_a, size: 8 pin_pattern_order :tclk, :tms, :tdi, :tdo, only: true if options[:jtag_comm_config] # if tester.link? #.to_s == 'OrigenLink::VectorBased' if tester.to_s == 'OrigenLink::VectorBased' if options[:invalid_pin_number_test] tester.pinmap = 'tclk,119,tms,1900,tdi,116,tdo,124' else tester.pinmap = 'tclk,119,tms,6,tdi,116,tdo,124' unless options[:missing_pinmap_test] end # tester.pinorder = 'tclk,tms,tdi,tdo' end end def instantiate_registers(options = {}) reg :testreg, 0 do |reg| reg.bits 31..0, :value end end def instantiate_sub_blocks(options = {}) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
origen_link-0.4.4 | lib/origen_link/test/top_level.rb |
origen_link-0.4.3 | lib/origen_link/test/top_level.rb |