Sha256: 2312b67acdc9bdba2db9844b2436e1b0a298af35a50df89b8052f2bd6faad240
Contents?: true
Size: 920 Bytes
Versions: 1
Compression:
Stored size: 920 Bytes
Contents
module OrigenSWD # This is a dummy DUT model which is used # to instantiate and test the SWD locally # during development. # # It is not included when this library is imported. class DUT include OrigenSWD include Origen::Callbacks include Origen::Registers include Origen::Pins # Initializes simple dut model with test register and required swd pins # options - any miscellaneous custom arguments # Returns nothing. # # Examples # # $dut = OrigenSWD::DUT.new # def initialize(options = {}) add_reg :test, 0x0, 32, data: { pos: 0, bits: 32 }, bit: { pos: 0 } add_pin :swd_clk add_pin :swd_dio end # Add any custom startup business here. # options - any miscellaneous custom arguments # Returns nothing. def startup(options = {}) $tester.set_timeset('swd', 40) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
origen_swd-0.4.0 | lib/origen_swd/dut.rb |