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

Version Path
origen_app_generators-0.3.2 templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb
origen_app_generators-0.3.1 templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb
origen_app_generators-0.3.0 templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb
origen_app_generators-0.2.3 templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb
origen_app_generators-0.2.2 templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb
origen_app_generators-0.2.1 templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb
origen_app_generators-0.2.0 templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb