Sha256: 5a937f167acb572ab193592117958359b220501c6d5fe09afd737547a0273125
Contents?: true
Size: 505 Bytes
Versions: 27
Compression:
Stored size: 505 Bytes
Contents
module <%= @namespace %> class <%= @options[:name] || 'TopLevel' %>Controller include Origen::Controller def startup(options) pp 'Enter test mode' do tester.set_timeset('func_25mhz', 40) # Where 40 is the period in ns pin(:tclk).drive!(1) pin(:resetb).drive!(1) tester.wait time_in_us: 100 end end def shutdown(options) pp 'Reset the device' do pin(:resetb).drive!(0) pin(:tclk).drive!(0) end end end end
Version data entries
27 entries across 27 versions & 2 rubygems