origen_sim 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/shared_commands.rb +6 -0
- data/config/version.rb +1 -1
- data/lib/origen_sim/simulator.rb +13 -2
- data/templates/probe.tcl.erb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3d9900584dd6370a9bcc96c61d79731dd3f54c0
|
4
|
+
data.tar.gz: 79287986f985475310c43f51fc220d30430685c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6db91532f5e684b77b82b2eebba479fe0ede7abc242ecd1f3566621e090f71103a378ab1f89987edd67bed8ec78ccf671b34c6281f410a0ac7a29658dc387de
|
7
|
+
data.tar.gz: dbc381f99807bb2781ac7421b9b169e64f276eb03084256906c18ce3e11ad02aef44a4a568469a4c8b83cca935a48f1b153ebe7230ed1d312358690785b04927
|
data/config/shared_commands.rb
CHANGED
@@ -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
data/lib/origen_sim/simulator.rb
CHANGED
@@ -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
|
data/templates/probe.tcl.erb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
database -open waves -into <%= options[:dir] %> -default -event
|
2
|
-
probe -create -shm origen -depth
|
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
|
+
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
|
+
date: 2017-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: origen
|