origen_sim 0.5.4 → 0.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c60c62df036a7a1a7c124f9408372f7f7394950
4
- data.tar.gz: da386e483f43703251a5c963b39ebfdbf257f160
3
+ metadata.gz: e3d9900584dd6370a9bcc96c61d79731dd3f54c0
4
+ data.tar.gz: 79287986f985475310c43f51fc220d30430685c2
5
5
  SHA512:
6
- metadata.gz: c2c477c36c977843a3d531aa8d722ad1b85da78ea1e53ea50783660817a9663adca034331ae8278bec177efbf5b5964fbd8e46d3b955c89fb40cf66ebf12ea83
7
- data.tar.gz: eefada0ebe02bd85e5c71d266bcdf7eba95e15339115e66c591b750b855e293683a8e60de867b2a9c64e5f0ebc352d7da542119d8f21960cefc4fda8e9293f8a
6
+ metadata.gz: e6db91532f5e684b77b82b2eebba479fe0ede7abc242ecd1f3566621e090f71103a378ab1f89987edd67bed8ec78ccf671b34c6281f410a0ac7a29658dc387de
7
+ data.tar.gz: dbc381f99807bb2781ac7421b9b169e64f276eb03084256906c18ce3e11ad02aef44a4a568469a4c8b83cca935a48f1b153ebe7230ed1d312358690785b04927
@@ -1,9 +1,15 @@
1
1
  # The requested command is passed in here as @command
2
2
  case @command
3
3
 
4
+ when 'generate'
5
+ $use_fast_probe_depth = false
6
+ @application_options << ["--fast", "Fast simulation, minimum probe depth"]
7
+ $use_fast_probe_depth = true if ARGV.include?('--fast')
8
+
4
9
  when "origen_sim:build", "sim:build"
5
10
  require "origen_sim/commands/build"
6
11
  exit 0
12
+
7
13
  else
8
14
  @plugin_commands << <<-EOT
9
15
  sim:build Build the simulation object for the current/given target
data/config/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module OrigenSim
2
2
  MAJOR = 0
3
3
  MINOR = 5
4
- BUGFIX = 4
4
+ BUGFIX = 5
5
5
  DEV = nil
6
6
 
7
7
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
@@ -129,15 +129,26 @@ module OrigenSim
129
129
  output: tmp_dir,
130
130
  check_for_changes: false,
131
131
  quiet: true,
132
- options: { dir: wave_dir, force: config[:force], setup: config[:setup] },
132
+ options: { dir: wave_dir, force: config[:force], setup: config[:setup], depth: :all },
133
133
  output_file_name: "#{id}.tcl"
134
134
  end
135
+ input_file_fast = "#{tmp_dir}/#{id}_fast.tcl"
136
+ if $use_fast_probe_depth
137
+ fast_probe_depth = config[:fast_probe_depth] || 1
138
+ Origen.app.runner.launch action: :compile,
139
+ files: "#{Origen.root!}/templates/probe.tcl.erb",
140
+ output: tmp_dir,
141
+ check_for_changes: false,
142
+ quiet: true,
143
+ options: { dir: wave_dir, force: config[:force], setup: config[:setup], depth: fast_probe_depth },
144
+ output_file_name: "#{id}_fast.tcl"
145
+ end
135
146
  wave_dir # Ensure this exists since it won't be referenced above if the
136
147
  # input file is already generated
137
148
 
138
149
  cmd = configuration[:irun] || 'irun'
139
150
  cmd += " -r origen -snapshot origen +socket+#{socket_id}"
140
- cmd += " -input #{input_file}"
151
+ cmd += $use_fast_probe_depth ? " -input #{input_file_fast}" : " -input #{input_file}"
141
152
  cmd += " -nclibdirpath #{compiled_dir}"
142
153
  end
143
154
  cmd
@@ -1,5 +1,5 @@
1
1
  database -open waves -into <%= options[:dir] %> -default -event
2
- probe -create -shm origen -depth all -database waves
2
+ probe -create -shm origen -depth <%= options[:depth] %> -database waves
3
3
  #probe -create -assertions -transaction origen -depth all -database waves
4
4
 
5
5
  % Hash(options[:force]).each do |net, value|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: origen_sim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen McGinty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-10 00:00:00.000000000 Z
11
+ date: 2017-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: origen