Sha256: 1b040459b4368f21cf0662a9882d9292591e82e693bd53b04d193a7183748d22

Contents?: true

Size: 1.39 KB

Versions: 4

Compression:

Stored size: 1.39 KB

Contents

# The requested command is passed in here as @command
case @command

when 'generate'
  $use_fast_probe_depth = false
  @application_options << ["--fast", "Fast simulation, minimum probe depth"]
  $use_fast_probe_depth = ARGV.include?('--fast')

  @application_options << ["--sim_capture", "Update sim captures (ignored when not running a simulation)"]
  Origen.app!.update_sim_captures = ARGV.include?('--sim_capture')

  @application_options << ["--flow NAME", "Simulate multiple patterns back-back within a single simulation with the given name", ->(options, name) { OrigenSim.flow = name }]

when "sim:ci", "origen_sim:ci"
  require "#{Origen.root!}/lib/origen_sim/commands/ci"
  exit 0

when "sim:co", "origen_sim:co"
  require "#{Origen.root!}/lib/origen_sim/commands/co"
  exit 0

when "sim:pack"
  require "#{Origen.root!}/lib/origen_sim/commands/pack"
  OrigenSim::Commands::Pack.pack
  exit 0

when "sim:unpack"
  require "#{Origen.root!}/lib/origen_sim/commands/pack"
  OrigenSim::Commands::Pack.unpack
  exit 0

#when "sim:list"
#  require "#{Origen.root!}/lib/origen_sim/commands/pack"
#  OrigenSim::Commands::Pack.list
#  exit 0

else
  @plugin_commands << <<-EOT
 sim:ci       Checkin a simulation snapshot
 sim:co       Checkout a simulation snapshot
 sim:pack     Packs the snapshot into a compressed directory
 sim:unpack   Unpacks a snapshot
 sim:list     List the available snapshot packs
  EOT

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
origen_sim-0.12.0 config/shared_commands.rb
origen_sim-0.11.1 config/shared_commands.rb
origen_sim-0.11.0 config/shared_commands.rb
origen_sim-0.10.0 config/shared_commands.rb