Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ gem "origen_sim", git: "https://github.com/Origen-SDK/origen_sim.git"

# Required to run the concurrent test case patterns from OrigenSim
gem 'origen_jtag'
gem 'origen_llm', "~>0.1.4"

# Pull in the latest and greatest app generator templates so that they can be
# packaged into Origen releases
Expand Down
98 changes: 52 additions & 46 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ GIT

GIT
remote: https://github.com/Origen-SDK/origen_sim.git
revision: a3fb3e32bad2873a8234d1517f604c21f30fa31d
revision: dc0e5fccbfeeb4197565a3fbfe310f389b4f9cd0
specs:
origen_sim (0.20.7)
origen_sim (0.21.0)
origen (>= 0.44.0)
origen_testers (>= 0.21.0)
origen_verilog (>= 0.6.2)
origen_verilog (>= 0.6.3)

GIT
remote: https://github.com/Origen-SDK/origen_testers.git
revision: f0c1be3a5cb605be505cc39b09a8eb28f4eacde8
revision: 9b395246f183749db32c1e29e2f2b6e9d7c37037
specs:
origen_testers (0.52.5)
origen_testers (0.52.15)
ast (~> 2)
atp (~> 1.1, >= 1.1.3)
dentaku (~> 3)
Expand All @@ -44,6 +44,7 @@ PATH
specs:
origen (0.60.20)
activesupport (~> 4.1)
base64 (~> 0)
bundler (> 1.7)
coderay (~> 1.1)
colored (~> 1.2)
Expand All @@ -57,6 +58,7 @@ PATH
nanoc (~> 3.7.0)
net-ldap (~> 0.13)
nokogiri (>= 1.11.0)
origen_llm (~> 0.1.4)
pry (~> 0.10)
rake (~> 10)
rspec (~> 3)
Expand All @@ -65,7 +67,7 @@ PATH
scrub_rb (~> 1.0)
simplecov (~> 0.17)
simplecov-html (~> 0.10)
thor (~> 0.19)
thor (~> 1)
yard (~> 0.8)

GEM
Expand All @@ -76,52 +78,56 @@ GEM
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
ast (2.4.2)
ast (2.4.3)
atp (1.1.3)
ast (~> 2)
origen (>= 0.2.3)
sexpistol (~> 0.0)
bigdecimal (3.1.8)
base64 (0.3.0)
bigdecimal (4.0.1)
builder (3.3.0)
byebug (11.1.3)
coderay (1.1.3)
colored (1.2)
colorize (0.8.1)
concurrent-ruby (1.3.3)
concurrent-ruby (1.3.6)
coveralls (0.7.1)
multi_json (~> 1.3)
rest-client
simplecov (>= 0.7)
term-ansicolor
thor
cri (2.15.12)
dentaku (3.5.3)
dentaku (3.5.7)
bigdecimal
concurrent-ruby
diff-lcs (1.5.1)
docile (1.4.0)
diff-lcs (1.6.2)
docile (1.4.1)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
gems (0.8.3)
highline (1.7.10)
http-accept (1.7.0)
http-cookie (1.0.6)
http-cookie (1.1.0)
domain_name (~> 0.5)
httparty (0.21.0)
mini_mime (>= 1.0.0)
multi_xml (>= 0.5.2)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
json (2.7.2)
kramdown (2.4.0)
rexml
io-console (0.8.2)
json (2.7.6)
kramdown (2.5.2)
rexml (>= 3.4.4)
loco (0.0.7)
logger (1.7.0)
method_source (1.1.0)
mime-types (3.5.2)
mime-types-data (~> 3.2015)
mime-types-data (3.2024.0702)
mime-types (3.7.0)
logger
mime-types-data (~> 3.2025, >= 3.2025.0507)
mime-types-data (3.2026.0203)
mini_mime (1.1.5)
minitest (5.24.1)
mize (0.5.0)
minitest (5.25.4)
multi_json (1.15.0)
multi_xml (0.6.0)
nanoc (3.7.5)
Expand All @@ -138,6 +144,7 @@ GEM
origen_jtag (0.22.3)
origen (~> 0.7, >= 0.7.35)
origen_testers (>= 0.13.2)
origen_llm (0.1.4)
origen_stil (0.3.0)
ast (~> 2)
origen (>= 0.33.3)
Expand All @@ -147,44 +154,46 @@ GEM
origen (>= 0.41.0)
treetop
parallel (1.24.0)
parser (3.3.4.0)
parser (3.3.10.2)
ast (~> 2.4.1)
racc
polyglot (0.3.5)
pry (0.14.2)
pry (0.16.0)
coderay (~> 1.1)
method_source (~> 1.0)
racc (1.8.0)
reline (>= 0.6.0)
racc (1.8.1)
rainbow (3.1.1)
rake (10.5.0)
regexp_parser (2.9.2)
regexp_parser (2.11.3)
reline (0.6.3)
io-console (~> 0.5)
require_all (1.5.0)
rest-client (2.1.0)
http-accept (>= 1.7.0, < 2.0)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
rexml (3.3.2)
strscan
rexml (3.4.4)
ripper-tags (1.0.2)
rodf (1.2.0)
builder (>= 3.0)
rubyzip (>= 1.0)
rspec (3.13.0)
rspec (3.13.2)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.0)
rspec-core (3.13.6)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.1)
rspec-expectations (3.13.5)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-legacy_formatters (1.0.2)
rspec (~> 3.0)
rspec-mocks (3.13.1)
rspec-mocks (3.13.7)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.1)
rspec-support (3.13.7)
rubocop (1.28.0)
parallel (~> 1.10)
parser (>= 3.1.0.0)
Expand All @@ -197,33 +206,29 @@ GEM
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
ruby-progressbar (1.13.0)
rubyzip (2.3.2)
rubyzip (2.4.1)
scrub_rb (1.0.1)
sexpistol (0.0.7)
simplecov (0.17.1)
docile (~> 1.1)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
strscan (3.1.0)
sync (0.5.0)
term-ansicolor (1.10.4)
mize (~> 0.5)
tins (~> 1.0)
thor (0.20.3)
term-ansicolor (1.11.3)
tins (~> 1)
thor (1.5.0)
thread_safe (0.3.6)
tins (1.33.0)
tins (1.43.0)
bigdecimal
sync
treetop (1.6.12)
treetop (1.6.18)
polyglot (~> 0.3)
tzinfo (1.2.11)
thread_safe (~> 0.1)
unf (0.1.4)
unf_ext
unf_ext (0.0.9.1)
unicode-display_width (2.5.0)
yard (0.9.36)
unf (0.2.0)
unicode-display_width (2.6.0)
yard (0.9.38)

PLATFORMS
x86_64-linux
Expand All @@ -239,9 +244,10 @@ DEPENDENCIES
origen_debuggers (~> 0)
origen_doc_helpers
origen_jtag
origen_llm (~> 0.1.4)
origen_sim!
origen_testers!
ripper-tags

BUNDLED WITH
2.4.22
2.2.3
1 change: 1 addition & 0 deletions lib/origen/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class Application

attr_writer :name # attr_accessor leads to a duplicate method
attr_writer :namespace # attr_accessor leads to a duplicate method
attr_accessor :error_assistant_enable

class << self
def inherited(base)
Expand Down
22 changes: 21 additions & 1 deletion lib/origen/boot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ class OrigenBootError < StandardError
else
puts
if Origen.app_loaded?
require 'origen/error_assistant'

puts 'COMPLETE CALL STACK'
puts '-------------------'
puts e.message unless e.is_a?(SystemExit)
Expand All @@ -277,16 +279,34 @@ class OrigenBootError < StandardError
puts e.message unless e.is_a?(SystemExit)
# Only print out the application stack trace by default, if verbose logging is
# enabled then output the full thing
application_stack_lines = []
e.backtrace.each do |line|
path = Pathname.new(line)
if path.absolute?
if line =~ /^#{Origen.root}/ && line !~ /^#{Origen.root}\/lbin/
application_stack_lines << line
puts line
end
else
puts line unless line =~ /^.\/lbin/
unless line =~ /^.\/lbin/
application_stack_lines << line
puts line
end
end
end

assistant_suggestion = Origen::ErrorAssistant.analyze(
exception_message: e.message.to_s,
app_stack: application_stack_lines,
app_root: Origen.root
)

if assistant_suggestion
puts
puts "POTENTIAL SOLUTION (#{Origen::ErrorAssistant.display_name})"
puts '-------------------------------'
puts assistant_suggestion
end
else
puts 'COMPLETE CALL STACK'
puts '-------------------'
Expand Down
Loading