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-0.44.0 origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb
origen-0.43.0 origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb
origen-0.42.2 origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb
origen-0.42.1 origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb
origen-0.42.0 origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb
origen-0.41.2 origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb
origen-0.41.1 origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb
origen-0.41.0 origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb
origen-0.40.2 origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb
origen-0.40.1 origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb
origen-0.40.0 origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb
origen_app_generators-1.2.0 templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb
origen_app_generators-1.1.4 templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb
origen_app_generators-1.1.3 templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb
origen_app_generators-1.1.2 templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb
origen_app_generators-1.1.1 templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb
origen_app_generators-1.1.0 templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb
origen_app_generators-1.0.1 templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb
origen_app_generators-1.0.0 templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb
origen_app_generators-0.4.0 templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb