• Tour
    • Basics
    • Test Engineers
    • Design Engineers
  • Guides
  • Videos
  • Publications
  • API
  • Github
  • Community
  • Release Notes
  • Plugins
Getting Started with Origen
  • Introduction
  • Core concepts
  • How to Install
  • How to Install (Windows)
  • Company Customization
  • Understanding Gems
  • Creating a New App
  • Invoking Considerations
  • The Initial Commit
  • Workspace Management
  • Application Architecture
Runtime Environment
  • Introduction
  • Mode
  • Environment
  • Target
  • Production Targets
  • Global Setup
  • Load Order
  • Programming
Models
  • Introduction
  • Naming
  • Definition & Hierarchy
  • Adding Attributes
  • Versioning
  • Bugs & Features
  • Package, Mode & Configuration
  • Registers
  • Pins
  • Power Domains
  • Hardware Attributes
  • Parameters
  • Specifications
  • Fuses
  • Generic Components
  • Creating Your Own Components
Compiler (Views)
  • Introduction
  • Creating Templates
  • Using Sub-Templates
  • Helpers
  • Running The Compiler
  • Inline Compiler
Controllers
  • Introduction
  • Shadow Controllers
  • Direct Controllers
Pattern Generator
  • Introduction
  • Creating Patterns
  • Pins
  • Timing and Waiting
  • Registers
  • Documenting Patterns
  • Generating by Name
  • Common API
  • J750 API
  • V93K API
  • UltraFlex API
  • Custom Testers
  • Running The PatGen
  • Concurrent Patterns
Test Program Generator
  • Introduction
  • Philosophy
  • Creating Flows
  • Managing Flow Control
  • Creating an Interface
  • Additional Resources
  • Dynamic Custom Code
  • J750 API
  • V93K API
  • UltraFLEX API
  • Documenting the Program
  • Creating Custom Testers
  • Running the ProgGen
Simulation
  • Introduction
  • How It Works
  • Compiling the DUT
  • Environment Setup
  • Application Setup
  • Simulating Patterns
  • Simulating Flows
  • Simulator Log Output
  • Artifacts
  • Debugging
Documentation Generator
  • Introduction
  • Markdown
  • Linking
  • Styling
  • Testing
  • API Generation
  • Deploying
Plugins
  • Introduction
  • Using a Plugin
  • Creating a Plugin
  • Current Plugin
  • Dev Environment
  • Dev Considerations
  • Paths & Origen.root
  • Config & Origen.app
  • Miscellaneous Topics
Miscellaneous
  • Revision Control
  • Origen Remotes
  • Lint Testing
  • Session Store
  • LSF API
  • Users, Emails & Maillists
  • Utilities & Helpers
  • Ruby Extensions
  • Logger
  • Adding Commands
  • Overriding Commands
  • Callbacks
  • Application Callbacks
Advanced Topics
  • Introduction
  • Invocation Customization
  • Custom App Generators

Getting Started with Origen

How to Install (Windows)


Origen can be installed on Linux or Windows, this guide refers to the Windows installation.

If you want to run on Linux then please see this guide instead: How to Install Origen on Linux

Last updated on 15th February 2017
The vast majority of Origen use in production is on Linux, and over time this Windows guide can become out of date and no one realizes. If you do experience any issues when following this guide, then please do let us know via the comments below and we will update it as required.

1. Install a Better Console

Download Console by following this link.

Move the .zip file to C:/Program Files, then right click it and select Extract All....

Open the unzipped folder and right click on Console.exe and select Send to > Desktop (create shortcut).

Open the console from your desktop and execute the following command, we recommend that you create all of your Origen application workspaces in C:\origen:

mkdir C:\origen

Select Edit > Settings from the console menu and enable the checkbox at the bottom of the settings called Save settings to user directory.

Execute the following command to get a sensible set settings to start off with:

@powershell New-Item -ItemType directory -Force -Path %appdata%\Console; (new-object System.Net.WebClient).DownloadFile('https://origen-sdk.org/files/console.xml','%appdata%\Console\console.xml')
Opening the Console
The rest of this guide requires you to open the console with administrator privileges and then execute the given commands, do this by right-clicking on the desktop shortcut you just created and selecting Run as administrator.
Some of the operations will require that you open a new console session in order for the previous operation to take effect. If any errors are encountered please start a new console session and try again before reporting it.

2. Install Pre-Requisites

Before starting this next section you should ensure that the following environment variables are set if your computer accesses the internet via a proxy (the proxy url here is an example and the real one will be specific to your company environment):

HTTP_PROXY  = https://proxy.my_company.com:8080
HTTPS_PROXY = https://proxy.my_company.com:8080

Here is a link to a 3rd party tutorial on How to Create an Environment Variable in Windows.

The next step is to install a package manager, please copy the text below into the console (running as administrator)

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
Now re-open the console (Run as administrator)

Install some required packages by running these commands from the console:

choco install git -y --force
choco install unxutils -y --force
choco install consoleZ -y --force
Now re-open the console (Run as administrator)

3. Install Ruby

3.1 Install the Ruby Executable

choco install ruby -y --version=2.3 --force
choco install ruby2.devkit -y --force
Now re-open the console (Run as administrator)

Execute the following command from the console:

3.2 Install RubyGems

@powershell (new-object System.Net.WebClient).DownloadFile('https://rubygems.org/downloads/rubygems-update-2.7.3.gem’,'C:\rubygems-update-2.7.3.gem') && gem install --local C:\rubygems-update-2.7.3.gem && update_rubygems --no-ri --no-rdoc && gem uninstall rubygems-update -x
The version of Ruby is just a recommendation from the Origen development team. Origen has proven to work on several versions of Ruby. However, changing the version of Ruby may also require you to reevaluate the version of RubyGems used. For example, we've found that Ruby 2.2.4, is not fully compatible RubyGems 2.6.7, for all gems (we run into issues with Symlinks on Windows that are resolved by updating RubyGems) but it works with RubyGems 2.2.3. Also, the version of RubyGems that ships with your installation of Ruby may be fine. See the RubyGems website for additional details.

The conclusion of this alert box is don't stress too much about the exact versions you're using and if you run into issues installing gems, consider possible incompatabilities between the versions of Ruby, RubyGems, or the gem that you are trying to install. You can also use RubyGems to manually install the gems yourself, to bypass any installation options Origen may try to set.

Open C:\tools\DevKit2\config.yml in your favorite editor and write this at the bottom:

- C:/tools/ruby23

Save it, and then execute the following commands from the console:

cd C:\tools\DevKit2\
ruby dk.rb install

Ensure that you see the following output when running the above command, if not review what you have added to C:\tools\DevKit2\config.yml:

[INFO] Installing 'C:/tools/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/default
[INFO] Installing 'C:/tools/ruby22/lib/ruby/site_ruby/devkit.rb'
Now re-open the console (Run as administrator)

4. Install Origen

Finally, run this command to install Origen:

gem install origen --no-ri --no-rdoc

This can take several minutes to finish without updating the screen, so please be patient.

You can then verify Origen availability by running origen -v at which point you should see something like this:

    Origen: 0.44.0

Congratulations, Origen is now installed!

Some users have reported an error at this point which complains about the HOME environment variable not being set.

If you see that, set it to something like this by following this 3rd party tutorial on How to Create an Environment Variable in Windows:

HOME = C:\Users\my_user_id

Note that the version of Origen that is installed to your Ruby installation does not need to be kept up to date with the latest version of Origen. You can now consider your Ruby environment to be frozen for the foreseeable future.

See the section on Understanding Gems for details on why that is.


Comments

Generated with the Origen Semiconductor Developer's Kit

Origen is released under the terms of the MIT license