• Guides
  • Videos
  • Publications
  • API
  • Github
  • Community
  • Release Notes
  • Plugins
  • 1 - A Pattern in 20 Minutes
  • 2 - Model Data Import
  • 3 - The Compiler
  • 4 - Creating a Header File
  • 5 - Create Test Program Flow
  • 6 - Create Test Program Tests

Videos

Model Data Import and Documentation


Learn how to import register data in IP-XACT format into a model and then generate a documentation view of it.

  • Code
  • Comments

References

  • Full source code on Github
  • Cross Origen plugin
  • Documentation Helpers plugin
  • Example Model Documentation
  • Callbacks

Code

Application Integration
# lib/atd_test/atd.rb
module ATDTest
  class ATD
    include Origen::Model
    include CrossOrigen
  		  
    def initialize(options = {})
      cr_import(path: "#{Origen.root}/ipxact/atd.xml")
    end
  end
end
# config/application.rb
def after_web_site_compile(options)
  # Build the model documentation
  OrigenDocHelpers.generate_model_docs layout: "#{Origen.root}/templates/web/layouts/_basic.html.erb", tab: :model do |d|
    d.page model: $dut
  end
end

Comments

Generated with the Origen Semiconductor Developer's Kit

Origen is released under the terms of the MIT license