origen_link 0.2.0.pre0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/start_link_server +66 -66
- data/config/application.rb +109 -109
- data/config/commands.rb +74 -74
- data/config/shared_commands.rb +40 -40
- data/config/version.rb +8 -8
- data/lib/origen_link.rb +4 -4
- data/lib/origen_link/callback_handlers.rb +13 -13
- data/lib/origen_link/capture_support.rb +94 -94
- data/lib/origen_link/configuration_commands.rb +84 -84
- data/lib/origen_link/listener.rb +78 -78
- data/lib/origen_link/server/jtag.rb +180 -180
- data/lib/origen_link/server/pin.rb +121 -121
- data/lib/origen_link/server/sequencer.rb +361 -361
- data/lib/origen_link/server_com.rb +150 -150
- data/lib/origen_link/test/top_level.rb +48 -48
- data/lib/origen_link/test/top_level_controller.rb +44 -44
- data/lib/origen_link/test/vector_based.rb +25 -25
- data/lib/origen_link/vector_based.rb +366 -365
- data/lib/tasks/origen_link.rake +6 -6
- data/pattern/example.rb +4 -4
- data/pattern/jtag_capture_id.rb +22 -22
- data/pattern/transaction_test.rb +18 -18
- data/templates/web/index.md.erb +25 -25
- data/templates/web/layouts/_basic.html.erb +13 -13
- data/templates/web/partials/_navbar.html.erb +20 -20
- data/templates/web/release_notes.md.erb +5 -5
- metadata +3 -4
data/lib/tasks/origen_link.rake
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
# You can define any Rake tasks to support your application here (or in any file
|
2
|
-
# ending in .rake in this directory).
|
3
|
-
#
|
4
|
-
# Rake (Ruby Make) is very useful for creating build scripts, see this short video
|
5
|
-
# for a quick introduction:
|
6
|
-
# http://railscasts.com/episodes/66-custom-rake-tasks
|
1
|
+
# You can define any Rake tasks to support your application here (or in any file
|
2
|
+
# ending in .rake in this directory).
|
3
|
+
#
|
4
|
+
# Rake (Ruby Make) is very useful for creating build scripts, see this short video
|
5
|
+
# for a quick introduction:
|
6
|
+
# http://railscasts.com/episodes/66-custom-rake-tasks
|
data/pattern/example.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Pattern.create do
|
2
|
-
# Call controller methods from here...
|
3
|
-
# $dut.atd.convert
|
4
|
-
end
|
1
|
+
Pattern.create do
|
2
|
+
# Call controller methods from here...
|
3
|
+
# $dut.atd.convert
|
4
|
+
end
|
data/pattern/jtag_capture_id.rb
CHANGED
@@ -1,23 +1,23 @@
|
|
1
|
-
Pattern.create(options={:name => "JTAG_CaptureID"})do
|
2
|
-
$dut.jtag.reset
|
3
|
-
$dut.jtag.idle
|
4
|
-
ss "reading default ID"
|
5
|
-
$dut.reg(:testreg).bits(31..0).store
|
6
|
-
default_id = tester.capture {$dut.jtag.read_dr $dut.reg(:testreg), size: 32 }
|
7
|
-
default_id_str = default_id[0].to_s(2)
|
8
|
-
default_id_str.reverse!
|
9
|
-
default_id = default_id_str.to_i(2)
|
10
|
-
puts '**************************************************'
|
11
|
-
puts 'Captured default ID through JTAG: 0x' + default_id.to_s(16)
|
12
|
-
puts '**************************************************'
|
13
|
-
$dut.jtag.write_ir 0, size: 4
|
14
|
-
ss "reading JTAG ID"
|
15
|
-
$dut.reg(:testreg).bits(31..0).store
|
16
|
-
jtag_id = tester.capture {$dut.jtag.read_dr $dut.reg(:testreg), size: 32 }
|
17
|
-
jtag_id_str = jtag_id[0].to_s(2)
|
18
|
-
jtag_id_str.reverse!
|
19
|
-
jtag_id = jtag_id_str.to_i(2)
|
20
|
-
puts '**************************************************'
|
21
|
-
puts 'Captured JTAG ID: 0x' + jtag_id.to_s(16)
|
22
|
-
puts '**************************************************'
|
1
|
+
Pattern.create(options={:name => "JTAG_CaptureID"})do
|
2
|
+
$dut.jtag.reset
|
3
|
+
$dut.jtag.idle
|
4
|
+
ss "reading default ID"
|
5
|
+
$dut.reg(:testreg).bits(31..0).store
|
6
|
+
default_id = tester.capture {$dut.jtag.read_dr $dut.reg(:testreg), size: 32 }
|
7
|
+
default_id_str = default_id[0].to_s(2)
|
8
|
+
default_id_str.reverse!
|
9
|
+
default_id = default_id_str.to_i(2)
|
10
|
+
puts '**************************************************'
|
11
|
+
puts 'Captured default ID through JTAG: 0x' + default_id.to_s(16)
|
12
|
+
puts '**************************************************'
|
13
|
+
$dut.jtag.write_ir 0, size: 4
|
14
|
+
ss "reading JTAG ID"
|
15
|
+
$dut.reg(:testreg).bits(31..0).store
|
16
|
+
jtag_id = tester.capture {$dut.jtag.read_dr $dut.reg(:testreg), size: 32 }
|
17
|
+
jtag_id_str = jtag_id[0].to_s(2)
|
18
|
+
jtag_id_str.reverse!
|
19
|
+
jtag_id = jtag_id_str.to_i(2)
|
20
|
+
puts '**************************************************'
|
21
|
+
puts 'Captured JTAG ID: 0x' + jtag_id.to_s(16)
|
22
|
+
puts '**************************************************'
|
23
23
|
end
|
data/pattern/transaction_test.rb
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
-
Pattern.create(options={:name => "transaction_test"})do
|
2
|
-
$dut.jtag.reset
|
3
|
-
$dut.jtag.idle
|
4
|
-
ss "reading Halo debugger ID - setting correct compare value"
|
5
|
-
result = tester.transaction do
|
6
|
-
$dut.reg(:testreg).read(0x5ba00477)
|
7
|
-
$dut.jtag.read_dr $dut.reg(:testreg), size: 32
|
8
|
-
end
|
9
|
-
result_comment = "transaction result: #{result}"
|
10
|
-
ss result_comment
|
11
|
-
|
12
|
-
ss "reading Halo debugger ID - setting wrong compare value"
|
13
|
-
result = tester.transaction do
|
14
|
-
$dut.reg(:testreg).read(0x5bd00477)
|
15
|
-
$dut.jtag.read_dr $dut.reg(:testreg), size: 32
|
16
|
-
end
|
17
|
-
result_comment = "transaction result: #{result}"
|
18
|
-
ss result_comment
|
1
|
+
Pattern.create(options={:name => "transaction_test"})do
|
2
|
+
$dut.jtag.reset
|
3
|
+
$dut.jtag.idle
|
4
|
+
ss "reading Halo debugger ID - setting correct compare value"
|
5
|
+
result = tester.transaction do
|
6
|
+
$dut.reg(:testreg).read(0x5ba00477)
|
7
|
+
$dut.jtag.read_dr $dut.reg(:testreg), size: 32
|
8
|
+
end
|
9
|
+
result_comment = "transaction result: #{result}"
|
10
|
+
ss result_comment
|
11
|
+
|
12
|
+
ss "reading Halo debugger ID - setting wrong compare value"
|
13
|
+
result = tester.transaction do
|
14
|
+
$dut.reg(:testreg).read(0x5bd00477)
|
15
|
+
$dut.jtag.read_dr $dut.reg(:testreg), size: 32
|
16
|
+
end
|
17
|
+
result_comment = "transaction result: #{result}"
|
18
|
+
ss result_comment
|
19
19
|
end
|
data/templates/web/index.md.erb
CHANGED
@@ -1,25 +1,25 @@
|
|
1
|
-
% render "layouts/basic.html" do
|
2
|
-
|
3
|
-
%# HTML tags can be embedded in mark down files if you want to do specific custom
|
4
|
-
%# formatting like this, but in most cases that is not required.
|
5
|
-
<h1><%= Origen.app.namespace %> <span style="font-size: 14px">(<%= Origen.app.version %>)</span></h1>
|
6
|
-
|
7
|
-
### Purpose
|
8
|
-
|
9
|
-
This is a plug-in for Origen that enables live silicon debug directly from origen source.
|
10
|
-
|
11
|
-
### How To Use
|
12
|
-
|
13
|
-
Add the following line to your application's GEMFILE:
|
14
|
-
|
15
|
-
* gem 'origen_link'
|
16
|
-
|
17
|
-
Add the following line to your application:
|
18
|
-
|
19
|
-
* require 'origen_link'
|
20
|
-
|
21
|
-
### How To Setup the Application Environment
|
22
|
-
|
23
|
-
Describe how a user would setup a new workspace for this application...
|
24
|
-
|
25
|
-
% end
|
1
|
+
% render "layouts/basic.html" do
|
2
|
+
|
3
|
+
%# HTML tags can be embedded in mark down files if you want to do specific custom
|
4
|
+
%# formatting like this, but in most cases that is not required.
|
5
|
+
<h1><%= Origen.app.namespace %> <span style="font-size: 14px">(<%= Origen.app.version %>)</span></h1>
|
6
|
+
|
7
|
+
### Purpose
|
8
|
+
|
9
|
+
This is a plug-in for Origen that enables live silicon debug directly from origen source.
|
10
|
+
|
11
|
+
### How To Use
|
12
|
+
|
13
|
+
Add the following line to your application's GEMFILE:
|
14
|
+
|
15
|
+
* gem 'origen_link'
|
16
|
+
|
17
|
+
Add the following line to your application:
|
18
|
+
|
19
|
+
* require 'origen_link'
|
20
|
+
|
21
|
+
### How To Setup the Application Environment
|
22
|
+
|
23
|
+
Describe how a user would setup a new workspace for this application...
|
24
|
+
|
25
|
+
% end
|
@@ -1,13 +1,13 @@
|
|
1
|
-
---
|
2
|
-
title: <%= options[:title] || Origen.config.name %>
|
3
|
-
---
|
4
|
-
<%= render "partials/navbar.html", tab: options[:tab] %>
|
5
|
-
|
6
|
-
<div class="row">
|
7
|
-
%# The markdown attribute is important if you are going to include content written
|
8
|
-
%# in markdown, without this is will be included verbatim
|
9
|
-
<div class="span12" markdown="1">
|
10
|
-
<%= yield %>
|
11
|
-
|
12
|
-
</div>
|
13
|
-
</div>
|
1
|
+
---
|
2
|
+
title: <%= options[:title] || Origen.config.name %>
|
3
|
+
---
|
4
|
+
<%= render "partials/navbar.html", tab: options[:tab] %>
|
5
|
+
|
6
|
+
<div class="row">
|
7
|
+
%# The markdown attribute is important if you are going to include content written
|
8
|
+
%# in markdown, without this is will be included verbatim
|
9
|
+
<div class="span12" markdown="1">
|
10
|
+
<%= yield %>
|
11
|
+
|
12
|
+
</div>
|
13
|
+
</div>
|
@@ -1,20 +1,20 @@
|
|
1
|
-
<nav class="navbar navbar-inverse navbar-fixed-top">
|
2
|
-
<div class="container">
|
3
|
-
<div class="navbar-header">
|
4
|
-
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
5
|
-
<span class="sr-only">Toggle navigation</span>
|
6
|
-
<span class="icon-bar"></span>
|
7
|
-
<span class="icon-bar"></span>
|
8
|
-
<span class="icon-bar"></span>
|
9
|
-
</button>
|
10
|
-
<a class="navbar-brand" href="<%= path "/" %>">Home</a>
|
11
|
-
</div>
|
12
|
-
<div id="navbar" class="collapse navbar-collapse">
|
13
|
-
<ul class="nav navbar-nav">
|
14
|
-
<li class="<%= options[:tab] == :api ? 'active' : '' %>"><a href="<%= path "/api/" %>">API</a></li>
|
15
|
-
<li class="<%= options[:tab] == :release ? 'active' : '' %>"><a href="<%= path "/release_notes" %>">Release Notes</a></li>
|
16
|
-
</ul>
|
17
|
-
<%= import "origen/web/logo.html" %>
|
18
|
-
</div><!--/.nav-collapse -->
|
19
|
-
</div>
|
20
|
-
</nav>
|
1
|
+
<nav class="navbar navbar-inverse navbar-fixed-top">
|
2
|
+
<div class="container">
|
3
|
+
<div class="navbar-header">
|
4
|
+
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
5
|
+
<span class="sr-only">Toggle navigation</span>
|
6
|
+
<span class="icon-bar"></span>
|
7
|
+
<span class="icon-bar"></span>
|
8
|
+
<span class="icon-bar"></span>
|
9
|
+
</button>
|
10
|
+
<a class="navbar-brand" href="<%= path "/" %>">Home</a>
|
11
|
+
</div>
|
12
|
+
<div id="navbar" class="collapse navbar-collapse">
|
13
|
+
<ul class="nav navbar-nav">
|
14
|
+
<li class="<%= options[:tab] == :api ? 'active' : '' %>"><a href="<%= path "/api/" %>">API</a></li>
|
15
|
+
<li class="<%= options[:tab] == :release ? 'active' : '' %>"><a href="<%= path "/release_notes" %>">Release Notes</a></li>
|
16
|
+
</ul>
|
17
|
+
<%= import "origen/web/logo.html" %>
|
18
|
+
</div><!--/.nav-collapse -->
|
19
|
+
</div>
|
20
|
+
</nav>
|
@@ -1,5 +1,5 @@
|
|
1
|
-
% render "layouts/basic.html", tab: :release do
|
2
|
-
|
3
|
-
<%= render "#{Origen.root}/doc/history" %>
|
4
|
-
|
5
|
-
% end
|
1
|
+
% render "layouts/basic.html", tab: :release do
|
2
|
+
|
3
|
+
<%= render "#{Origen.root}/doc/history" %>
|
4
|
+
|
5
|
+
% end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: origen_link
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.0
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Derouen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: origen
|
@@ -115,9 +115,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
115
|
version: 1.8.11
|
116
116
|
requirements: []
|
117
117
|
rubyforge_project:
|
118
|
-
rubygems_version: 2.2.
|
118
|
+
rubygems_version: 2.2.3
|
119
119
|
signing_key:
|
120
120
|
specification_version: 4
|
121
121
|
summary: Origen interface to a live DUT tester
|
122
122
|
test_files: []
|
123
|
-
has_rdoc:
|