origen 0.44.0 → 0.50.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. checksums.yaml +4 -4
  2. data/config/application.rb +2 -2
  3. data/config/boot.rb +0 -7
  4. data/config/commands.rb +3 -74
  5. data/config/rubocop/easy_disabled.yml +4 -0
  6. data/config/rubocop/easy_enabled.yml +0 -4
  7. data/config/rubocop/strict_disabled.yml +4 -0
  8. data/config/rubocop/strict_enabled.yml +0 -4
  9. data/config/version.rb +1 -2
  10. data/lib/origen/application/deployer.rb +3 -1
  11. data/lib/origen/application/release.rb +2 -2
  12. data/lib/origen/application/runner.rb +9 -2
  13. data/lib/origen/application.rb +91 -2
  14. data/lib/origen/boot/app.rb +0 -4
  15. data/lib/origen/boot.rb +2 -1
  16. data/lib/origen/code_generators/actions.rb +244 -34
  17. data/lib/origen/code_generators/base.rb +9 -2
  18. data/lib/origen/code_generators/block.rb +203 -0
  19. data/lib/origen/code_generators/block_common.rb +100 -0
  20. data/lib/origen/code_generators/dut.rb +62 -0
  21. data/lib/origen/code_generators/feature.rb +50 -0
  22. data/lib/origen/code_generators/klass.rb +41 -0
  23. data/lib/origen/code_generators/model.rb +60 -0
  24. data/lib/origen/code_generators/module.rb +92 -0
  25. data/lib/origen/code_generators.rb +30 -10
  26. data/lib/origen/commands/lint.rb +6 -1
  27. data/lib/origen/commands/new.rb +1 -1
  28. data/lib/origen/commands/new_resource.rb +41 -0
  29. data/lib/origen/commands/web.rb +11 -6
  30. data/lib/origen/commands.rb +18 -0
  31. data/lib/{option_parser → origen/core_ext/option_parser}/optparse.rb +0 -0
  32. data/lib/origen/dependencies.rb +0 -0
  33. data/lib/origen/file_handler.rb +8 -4
  34. data/lib/origen/generator/pattern_finder.rb +3 -3
  35. data/lib/origen/loader.rb +377 -0
  36. data/lib/origen/model.rb +22 -1
  37. data/lib/origen/model_initializer.rb +5 -1
  38. data/lib/origen/parameters/set.rb +2 -1
  39. data/lib/origen/parameters.rb +95 -3
  40. data/lib/origen/sub_blocks.rb +21 -7
  41. data/lib/origen/top_level.rb +11 -0
  42. data/lib/origen.rb +3 -1
  43. data/origen_app_generators/Gemfile +6 -2
  44. data/origen_app_generators/Gemfile.lock +83 -72
  45. data/origen_app_generators/bin/boot.rb +4 -2
  46. data/origen_app_generators/config/commands.rb +3 -3
  47. data/origen_app_generators/config/shared_commands.rb +11 -6
  48. data/origen_app_generators/lbin/bundle +105 -0
  49. data/origen_app_generators/lbin/byebug +29 -0
  50. data/origen_app_generators/lbin/coderay +29 -0
  51. data/origen_app_generators/lbin/htmldiff +29 -0
  52. data/origen_app_generators/lbin/httparty +29 -0
  53. data/origen_app_generators/lbin/httpclient +29 -0
  54. data/origen_app_generators/lbin/kramdown +29 -0
  55. data/origen_app_generators/lbin/ldiff +29 -0
  56. data/origen_app_generators/lbin/nanoc +29 -0
  57. data/origen_app_generators/lbin/nokogiri +29 -0
  58. data/origen_app_generators/lbin/origen +62 -0
  59. data/origen_app_generators/lbin/pry +29 -0
  60. data/origen_app_generators/lbin/rackup +29 -0
  61. data/origen_app_generators/lbin/rake +29 -0
  62. data/origen_app_generators/lbin/rspec +29 -0
  63. data/origen_app_generators/lbin/rubocop +29 -0
  64. data/origen_app_generators/lbin/ruby-parse +29 -0
  65. data/origen_app_generators/lbin/ruby-rewrite +29 -0
  66. data/origen_app_generators/lbin/thor +29 -0
  67. data/origen_app_generators/lbin/tilt +29 -0
  68. data/origen_app_generators/lbin/yard +29 -0
  69. data/origen_app_generators/lbin/yardoc +29 -0
  70. data/origen_app_generators/lbin/yri +29 -0
  71. data/origen_app_generators/lib/origen_app_generators/application.rb +12 -12
  72. data/origen_app_generators/lib/origen_app_generators/base.rb +34 -8
  73. data/origen_app_generators/lib/origen_app_generators/new.rb +17 -9
  74. data/origen_app_generators/lib/{tasks/new_app_tests.rake → origen_app_generators/new_app_tests.rb} +1 -5
  75. data/origen_app_generators/lib/origen_app_generators/origen_infrastructure/app_generator_plugin.rb +6 -8
  76. data/origen_app_generators/lib/origen_app_generators/plugin.rb +4 -7
  77. data/origen_app_generators/lib/origen_app_generators/test_engineering/common.rb +29 -0
  78. data/origen_app_generators/lib/origen_app_generators/test_engineering/stand_alone_application.rb +9 -181
  79. data/origen_app_generators/lib/origen_app_generators/test_engineering/test_block.rb +4 -105
  80. data/origen_app_generators/lib/origen_app_generators.rb +6 -4
  81. data/origen_app_generators/origen_app_generators.gemspec +7 -7
  82. data/origen_app_generators/templates/app_generators/application/Gemfile +14 -3
  83. data/origen_app_generators/templates/app_generators/application/{lib → app/blocks}/top_level.rb +1 -1
  84. data/origen_app_generators/templates/app_generators/application/app/lib/module.rb +6 -0
  85. data/origen_app_generators/templates/app_generators/application/{templates → app/templates}/web/index.md.erb +0 -0
  86. data/origen_app_generators/templates/app_generators/application/{templates → app/templates}/web/layouts/_basic.html.erb +0 -0
  87. data/origen_app_generators/templates/app_generators/application/{templates → app/templates}/web/partials/_navbar.html.erb +0 -0
  88. data/origen_app_generators/templates/app_generators/application/{templates → app/templates}/web/release_notes.md.erb +0 -0
  89. data/origen_app_generators/templates/app_generators/application/config/application.rb +51 -55
  90. data/origen_app_generators/templates/app_generators/application/{spec → test/spec}/spec_helper.rb +0 -0
  91. data/origen_app_generators/templates/app_generators/origen_infrastructure/app_generator_plugin/{lib → app/lib}/application.rb +0 -0
  92. data/origen_app_generators/templates/app_generators/origen_infrastructure/app_generator_plugin/{lib → app/lib}/base.rb +0 -0
  93. data/origen_app_generators/templates/app_generators/origen_infrastructure/app_generator_plugin/{lib → app/lib}/module.rb +0 -0
  94. data/origen_app_generators/templates/app_generators/origen_infrastructure/app_generator_plugin/{lib → app/lib}/plugin.rb +0 -0
  95. data/origen_app_generators/templates/app_generators/origen_infrastructure/app_generator_plugin/config/load_generators.rb +1 -1
  96. data/origen_app_generators/templates/app_generators/plugin/Gemfile +5 -2
  97. data/origen_app_generators/templates/app_generators/plugin/{templates → app/templates}/web/index.md.erb +0 -0
  98. data/origen_app_generators/templates/app_generators/plugin/{templates → app/templates}/web/partials/_navbar_external.html.erb +0 -0
  99. data/origen_app_generators/templates/app_generators/plugin/{templates → app/templates}/web/partials/_navbar_internal.html.erb +0 -0
  100. data/origen_app_generators/templates/app_generators/plugin/gemspec.rb +4 -3
  101. data/origen_app_generators/templates/app_generators/test_engineering/{stand_alone_application/environment → environment}/j750.rb +0 -0
  102. data/origen_app_generators/templates/app_generators/test_engineering/{stand_alone_application/environment → environment}/uflex.rb +0 -0
  103. data/origen_app_generators/templates/app_generators/test_engineering/{stand_alone_application/environment → environment}/v93k.rb +0 -0
  104. data/origen_site_config.yml +0 -7
  105. data/templates/code_generators/attributes.rb +20 -0
  106. data/templates/code_generators/class.rb +9 -0
  107. data/templates/code_generators/controller.rb +87 -0
  108. data/templates/code_generators/model.rb +21 -0
  109. data/templates/code_generators/module.rb +4 -0
  110. data/templates/code_generators/parameters.rb +19 -0
  111. data/templates/code_generators/pins.rb +28 -0
  112. data/templates/code_generators/registers.rb +20 -0
  113. data/templates/code_generators/sub_blocks.rb +24 -0
  114. data/templates/code_generators/timesets.rb +24 -0
  115. data/templates/code_generators/version.rb +0 -1
  116. metadata +66 -77
  117. data/lib/c99/ate_interface.rb +0 -77
  118. data/lib/c99/nvm.rb +0 -110
  119. data/lib/c99/target/mock2.rb +0 -1
  120. data/lib/c99/target/subdir/mock3.rb +0 -1
  121. data/lib/origen/code_generators/bundler.rb +0 -17
  122. data/lib/origen/code_generators/gem_setup.rb +0 -49
  123. data/lib/origen/code_generators/rake.rb +0 -13
  124. data/lib/origen/code_generators/rspec.rb +0 -12
  125. data/lib/origen/commands/add.rb +0 -12
  126. data/lib/tasks/private/build.rake +0 -8
  127. data/origen_app_generators/bin/fix_my_workspace +0 -100
  128. data/origen_app_generators/lib/origen_app_generators/sub_block_parser.rb +0 -81
  129. data/origen_app_generators/lib/tasks/app_generators.rake +0 -6
  130. data/origen_app_generators/spec/sub_block_spec.rb +0 -36
  131. data/origen_app_generators/templates/app_generators/application/lib/app.rake +0 -6
  132. data/origen_app_generators/templates/app_generators/application/lib/module.rb +0 -22
  133. data/origen_app_generators/templates/app_generators/plugin/lib/README +0 -4
  134. data/origen_app_generators/templates/app_generators/plugin/lib_dev/README +0 -5
  135. data/origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/Gemfile +0 -23
  136. data/origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/environment/jlink.rb +0 -1
  137. data/origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/lib/ip_block.rb +0 -23
  138. data/origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/lib/ip_block_controller.rb +0 -5
  139. data/origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/lib/top_level.rb +0 -33
  140. data/origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb +0 -21
  141. data/origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/pattern/example.rb +0 -4
  142. data/origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/target/top_level.rb +0 -4
  143. data/origen_app_generators/templates/app_generators/test_engineering/test_block/environment/j750.rb +0 -2
  144. data/origen_app_generators/templates/app_generators/test_engineering/test_block/environment/ultraflex.rb +0 -2
  145. data/origen_app_generators/templates/app_generators/test_engineering/test_block/environment/v93k.rb +0 -2
  146. data/origen_app_generators/templates/app_generators/test_engineering/test_block/lib/controller.rb +0 -12
  147. data/origen_app_generators/templates/app_generators/test_engineering/test_block/lib/interface.rb +0 -21
  148. data/origen_app_generators/templates/app_generators/test_engineering/test_block/lib/model.rb +0 -18
  149. data/origen_app_generators/templates/app_generators/test_engineering/test_block/lib_dev/dut.rb +0 -27
  150. data/origen_app_generators/templates/app_generators/test_engineering/test_block/lib_dev/dut_controller.rb +0 -26
  151. data/origen_app_generators/templates/app_generators/test_engineering/test_block/pattern/example.rb +0 -5
  152. data/origen_app_generators/templates/app_generators/test_engineering/test_block/program/prb1.rb +0 -11
  153. data/origen_app_generators/templates/app_generators/test_engineering/test_block/target/default.rb +0 -2
  154. data/templates/code_generators/gemfile_app.rb +0 -4
  155. data/templates/code_generators/gemfile_plugin.rb +0 -6
  156. data/templates/code_generators/gemspec.rb +0 -33
  157. data/templates/code_generators/rakefile.rb +0 -10
  158. data/templates/code_generators/spec_helper.rb +0 -49
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: origen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.44.0
4
+ version: 0.50.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen McGinty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-16 00:00:00.000000000 Z
11
+ date: 2019-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -360,20 +360,6 @@ dependencies:
360
360
  - - "~>"
361
361
  - !ruby/object:Gem::Version
362
362
  version: 2.10.0
363
- - !ruby/object:Gem::Dependency
364
- name: bootsnap
365
- requirement: !ruby/object:Gem::Requirement
366
- requirements:
367
- - - ">="
368
- - !ruby/object:Gem::Version
369
- version: 1.3.2
370
- type: :runtime
371
- prerelease: false
372
- version_requirements: !ruby/object:Gem::Requirement
373
- requirements:
374
- - - ">="
375
- - !ruby/object:Gem::Version
376
- version: 1.3.2
377
363
  - !ruby/object:Gem::Dependency
378
364
  name: concurrent-ruby
379
365
  requirement: !ruby/object:Gem::Requirement
@@ -409,11 +395,6 @@ files:
409
395
  - config/version.rb
410
396
  - helpers/guides.rb
411
397
  - helpers/url.rb
412
- - lib/c99/ate_interface.rb
413
- - lib/c99/nvm.rb
414
- - lib/c99/target/mock2.rb
415
- - lib/c99/target/subdir/mock3.rb
416
- - lib/option_parser/optparse.rb
417
398
  - lib/origen.rb
418
399
  - lib/origen/acronyms.rb
419
400
  - lib/origen/application.rb
@@ -451,14 +432,16 @@ files:
451
432
  - lib/origen/code_generators.rb
452
433
  - lib/origen/code_generators/actions.rb
453
434
  - lib/origen/code_generators/base.rb
454
- - lib/origen/code_generators/bundler.rb
455
- - lib/origen/code_generators/gem_setup.rb
456
- - lib/origen/code_generators/rake.rb
457
- - lib/origen/code_generators/rspec.rb
435
+ - lib/origen/code_generators/block.rb
436
+ - lib/origen/code_generators/block_common.rb
437
+ - lib/origen/code_generators/dut.rb
438
+ - lib/origen/code_generators/feature.rb
439
+ - lib/origen/code_generators/klass.rb
440
+ - lib/origen/code_generators/model.rb
441
+ - lib/origen/code_generators/module.rb
458
442
  - lib/origen/code_generators/semver.rb
459
443
  - lib/origen/code_generators/timever.rb
460
444
  - lib/origen/commands.rb
461
- - lib/origen/commands/add.rb
462
445
  - lib/origen/commands/archive.rb
463
446
  - lib/origen/commands/compile.rb
464
447
  - lib/origen/commands/environment.rb
@@ -471,6 +454,7 @@ files:
471
454
  - lib/origen/commands/lsf.rb
472
455
  - lib/origen/commands/mode.rb
473
456
  - lib/origen/commands/new.rb
457
+ - lib/origen/commands/new_resource.rb
474
458
  - lib/origen/commands/plugin.rb
475
459
  - lib/origen/commands/program.rb
476
460
  - lib/origen/commands/rc.rb
@@ -492,6 +476,7 @@ files:
492
476
  - lib/origen/core_ext/module.rb
493
477
  - lib/origen/core_ext/numeric.rb
494
478
  - lib/origen/core_ext/object.rb
479
+ - lib/origen/core_ext/option_parser/optparse.rb
495
480
  - lib/origen/core_ext/range.rb
496
481
  - lib/origen/core_ext/regexp.rb
497
482
  - lib/origen/core_ext/string.rb
@@ -499,6 +484,7 @@ files:
499
484
  - lib/origen/database.rb
500
485
  - lib/origen/database/key_value_store.rb
501
486
  - lib/origen/database/key_value_stores.rb
487
+ - lib/origen/dependencies.rb
502
488
  - lib/origen/encodings.rb
503
489
  - lib/origen/errata.rb
504
490
  - lib/origen/errata/hw_erratum.rb
@@ -527,6 +513,7 @@ files:
527
513
  - lib/origen/limits.rb
528
514
  - lib/origen/limits/limit.rb
529
515
  - lib/origen/limits/limit_set.rb
516
+ - lib/origen/loader.rb
530
517
  - lib/origen/location.rb
531
518
  - lib/origen/location/base.rb
532
519
  - lib/origen/location/map.rb
@@ -627,41 +614,66 @@ files:
627
614
  - lib/origen/value/hex_str_val.rb
628
615
  - lib/origen/version_string.rb
629
616
  - lib/tasks/gem.rake
630
- - lib/tasks/private/build.rake
631
617
  - origen_app_generators/Gemfile
632
618
  - origen_app_generators/Gemfile.lock
633
619
  - origen_app_generators/LICENSE
634
620
  - origen_app_generators/README.md
635
621
  - origen_app_generators/Rakefile
636
622
  - origen_app_generators/bin/boot.rb
637
- - origen_app_generators/bin/fix_my_workspace
638
623
  - origen_app_generators/config/application.rb
639
624
  - origen_app_generators/config/boot.rb
640
625
  - origen_app_generators/config/commands.rb
641
626
  - origen_app_generators/config/shared_commands.rb
642
627
  - origen_app_generators/config/version.rb
643
628
  - origen_app_generators/doc/history
629
+ - origen_app_generators/lbin/bundle
630
+ - origen_app_generators/lbin/byebug
631
+ - origen_app_generators/lbin/coderay
632
+ - origen_app_generators/lbin/htmldiff
633
+ - origen_app_generators/lbin/httparty
634
+ - origen_app_generators/lbin/httpclient
635
+ - origen_app_generators/lbin/kramdown
636
+ - origen_app_generators/lbin/ldiff
637
+ - origen_app_generators/lbin/nanoc
638
+ - origen_app_generators/lbin/nokogiri
639
+ - origen_app_generators/lbin/origen
640
+ - origen_app_generators/lbin/pry
641
+ - origen_app_generators/lbin/rackup
642
+ - origen_app_generators/lbin/rake
643
+ - origen_app_generators/lbin/rspec
644
+ - origen_app_generators/lbin/rubocop
645
+ - origen_app_generators/lbin/ruby-parse
646
+ - origen_app_generators/lbin/ruby-rewrite
647
+ - origen_app_generators/lbin/thor
648
+ - origen_app_generators/lbin/tilt
649
+ - origen_app_generators/lbin/yard
650
+ - origen_app_generators/lbin/yardoc
651
+ - origen_app_generators/lbin/yri
644
652
  - origen_app_generators/lib/origen_app_generators.rb
645
653
  - origen_app_generators/lib/origen_app_generators/application.rb
646
654
  - origen_app_generators/lib/origen_app_generators/base.rb
647
655
  - origen_app_generators/lib/origen_app_generators/empty_application.rb
648
656
  - origen_app_generators/lib/origen_app_generators/empty_plugin.rb
649
657
  - origen_app_generators/lib/origen_app_generators/new.rb
658
+ - origen_app_generators/lib/origen_app_generators/new_app_tests.rb
650
659
  - origen_app_generators/lib/origen_app_generators/origen_infrastructure/app_generator_plugin.rb
651
660
  - origen_app_generators/lib/origen_app_generators/plugin.rb
652
- - origen_app_generators/lib/origen_app_generators/sub_block_parser.rb
661
+ - origen_app_generators/lib/origen_app_generators/test_engineering/common.rb
653
662
  - origen_app_generators/lib/origen_app_generators/test_engineering/stand_alone_application.rb
654
663
  - origen_app_generators/lib/origen_app_generators/test_engineering/test_block.rb
655
- - origen_app_generators/lib/tasks/app_generators.rake
656
- - origen_app_generators/lib/tasks/new_app_tests.rake
657
664
  - origen_app_generators/origen_app_generators.gemspec
658
665
  - origen_app_generators/spec/spec_helper.rb
659
- - origen_app_generators/spec/sub_block_spec.rb
660
666
  - origen_app_generators/target/debug.rb
661
667
  - origen_app_generators/target/default.rb
662
668
  - origen_app_generators/target/production.rb
663
669
  - origen_app_generators/templates/app_generators/application/Gemfile
664
670
  - origen_app_generators/templates/app_generators/application/Rakefile
671
+ - origen_app_generators/templates/app_generators/application/app/blocks/top_level.rb
672
+ - origen_app_generators/templates/app_generators/application/app/lib/module.rb
673
+ - origen_app_generators/templates/app_generators/application/app/templates/web/index.md.erb
674
+ - origen_app_generators/templates/app_generators/application/app/templates/web/layouts/_basic.html.erb
675
+ - origen_app_generators/templates/app_generators/application/app/templates/web/partials/_navbar.html.erb
676
+ - origen_app_generators/templates/app_generators/application/app/templates/web/release_notes.md.erb
665
677
  - origen_app_generators/templates/app_generators/application/config/application.rb
666
678
  - origen_app_generators/templates/app_generators/application/config/boot.rb
667
679
  - origen_app_generators/templates/app_generators/application/config/commands.rb
@@ -670,64 +682,41 @@ files:
670
682
  - origen_app_generators/templates/app_generators/application/config/version.rb
671
683
  - origen_app_generators/templates/app_generators/application/doc/history
672
684
  - origen_app_generators/templates/app_generators/application/dot_keep
673
- - origen_app_generators/templates/app_generators/application/lib/app.rake
674
- - origen_app_generators/templates/app_generators/application/lib/module.rb
675
- - origen_app_generators/templates/app_generators/application/lib/top_level.rb
676
685
  - origen_app_generators/templates/app_generators/application/origen_core_session
677
- - origen_app_generators/templates/app_generators/application/spec/spec_helper.rb
678
686
  - origen_app_generators/templates/app_generators/application/target/debug.rb
679
687
  - origen_app_generators/templates/app_generators/application/target/default.rb
680
688
  - origen_app_generators/templates/app_generators/application/target/production.rb
681
- - origen_app_generators/templates/app_generators/application/templates/web/index.md.erb
682
- - origen_app_generators/templates/app_generators/application/templates/web/layouts/_basic.html.erb
683
- - origen_app_generators/templates/app_generators/application/templates/web/partials/_navbar.html.erb
684
- - origen_app_generators/templates/app_generators/application/templates/web/release_notes.md.erb
689
+ - origen_app_generators/templates/app_generators/application/test/spec/spec_helper.rb
685
690
  - origen_app_generators/templates/app_generators/new/generator.rb
686
691
  - origen_app_generators/templates/app_generators/new/info.md.erb
692
+ - origen_app_generators/templates/app_generators/origen_infrastructure/app_generator_plugin/app/lib/application.rb
693
+ - origen_app_generators/templates/app_generators/origen_infrastructure/app_generator_plugin/app/lib/base.rb
694
+ - origen_app_generators/templates/app_generators/origen_infrastructure/app_generator_plugin/app/lib/module.rb
695
+ - origen_app_generators/templates/app_generators/origen_infrastructure/app_generator_plugin/app/lib/plugin.rb
687
696
  - origen_app_generators/templates/app_generators/origen_infrastructure/app_generator_plugin/config/load_generators.rb
688
- - origen_app_generators/templates/app_generators/origen_infrastructure/app_generator_plugin/lib/application.rb
689
- - origen_app_generators/templates/app_generators/origen_infrastructure/app_generator_plugin/lib/base.rb
690
- - origen_app_generators/templates/app_generators/origen_infrastructure/app_generator_plugin/lib/module.rb
691
- - origen_app_generators/templates/app_generators/origen_infrastructure/app_generator_plugin/lib/plugin.rb
692
697
  - origen_app_generators/templates/app_generators/plugin/Gemfile
693
698
  - origen_app_generators/templates/app_generators/plugin/Rakefile
699
+ - origen_app_generators/templates/app_generators/plugin/app/templates/web/index.md.erb
700
+ - origen_app_generators/templates/app_generators/plugin/app/templates/web/partials/_navbar_external.html.erb
701
+ - origen_app_generators/templates/app_generators/plugin/app/templates/web/partials/_navbar_internal.html.erb
694
702
  - origen_app_generators/templates/app_generators/plugin/config/boot.rb
695
703
  - origen_app_generators/templates/app_generators/plugin/gemspec.rb
696
- - origen_app_generators/templates/app_generators/plugin/lib/README
697
- - origen_app_generators/templates/app_generators/plugin/lib_dev/README
698
- - origen_app_generators/templates/app_generators/plugin/templates/web/index.md.erb
699
- - origen_app_generators/templates/app_generators/plugin/templates/web/partials/_navbar_external.html.erb
700
- - origen_app_generators/templates/app_generators/plugin/templates/web/partials/_navbar_internal.html.erb
701
- - origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/Gemfile
702
- - origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/environment/j750.rb
703
- - origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/environment/jlink.rb
704
- - origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/environment/uflex.rb
705
- - origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/environment/v93k.rb
706
- - origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/lib/ip_block.rb
707
- - origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/lib/ip_block_controller.rb
708
- - origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/lib/top_level.rb
709
- - origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb
710
- - origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/pattern/example.rb
711
- - origen_app_generators/templates/app_generators/test_engineering/stand_alone_application/target/top_level.rb
712
- - origen_app_generators/templates/app_generators/test_engineering/test_block/environment/j750.rb
713
- - origen_app_generators/templates/app_generators/test_engineering/test_block/environment/ultraflex.rb
714
- - origen_app_generators/templates/app_generators/test_engineering/test_block/environment/v93k.rb
715
- - origen_app_generators/templates/app_generators/test_engineering/test_block/lib/controller.rb
716
- - origen_app_generators/templates/app_generators/test_engineering/test_block/lib/interface.rb
717
- - origen_app_generators/templates/app_generators/test_engineering/test_block/lib/model.rb
718
- - origen_app_generators/templates/app_generators/test_engineering/test_block/lib_dev/dut.rb
719
- - origen_app_generators/templates/app_generators/test_engineering/test_block/lib_dev/dut_controller.rb
720
- - origen_app_generators/templates/app_generators/test_engineering/test_block/pattern/example.rb
721
- - origen_app_generators/templates/app_generators/test_engineering/test_block/program/prb1.rb
722
- - origen_app_generators/templates/app_generators/test_engineering/test_block/target/default.rb
704
+ - origen_app_generators/templates/app_generators/test_engineering/environment/j750.rb
705
+ - origen_app_generators/templates/app_generators/test_engineering/environment/uflex.rb
706
+ - origen_app_generators/templates/app_generators/test_engineering/environment/v93k.rb
723
707
  - origen_site_config.yml
724
708
  - source_setup
725
709
  - spec/format/origen_formatter.rb
726
- - templates/code_generators/gemfile_app.rb
727
- - templates/code_generators/gemfile_plugin.rb
728
- - templates/code_generators/gemspec.rb
729
- - templates/code_generators/rakefile.rb
730
- - templates/code_generators/spec_helper.rb
710
+ - templates/code_generators/attributes.rb
711
+ - templates/code_generators/class.rb
712
+ - templates/code_generators/controller.rb
713
+ - templates/code_generators/model.rb
714
+ - templates/code_generators/module.rb
715
+ - templates/code_generators/parameters.rb
716
+ - templates/code_generators/pins.rb
717
+ - templates/code_generators/registers.rb
718
+ - templates/code_generators/sub_blocks.rb
719
+ - templates/code_generators/timesets.rb
731
720
  - templates/code_generators/version.rb
732
721
  - templates/code_generators/version_time.rb
733
722
  - templates/git/gitignore.erb
@@ -769,7 +758,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
769
758
  version: 1.8.11
770
759
  requirements: []
771
760
  rubyforge_project:
772
- rubygems_version: 2.7.6
761
+ rubygems_version: 2.7.7
773
762
  signing_key:
774
763
  specification_version: 4
775
764
  summary: The Semiconductor Developer's Kit
@@ -1,77 +0,0 @@
1
- module C99
2
- class ATEInterface
3
- include OrigenTesters::ProgramGenerators
4
-
5
- # Options passed to Flow.create and Library.create will be passed in here, use as
6
- # desired to configure your interface
7
- def initialize(_options = {})
8
- end
9
-
10
- def log(msg)
11
- flow.logprint(msg)
12
- end
13
-
14
- def func(name, options = {})
15
- options = {
16
- duration: :static
17
- }.merge(options)
18
-
19
- block_loop(name, options) do |_block, i, group|
20
- ins = test_instances.functional(name)
21
- ins.set_wait_flags(:a) if options[:duration] == :dynamic
22
- ins.pin_levels = options.delete(:pin_levels) if options[:pin_levels]
23
- if group
24
- pname = "#{name}_b#{i}_pset"
25
- patsets.add(pname, [{ pattern: "#{name}_b#{i}.PAT" },
26
- { pattern: 'nvm_global_subs.PAT', start_label: 'subr' }])
27
- ins.pattern = pname
28
- flow.test(group, options) if i == 0
29
- else
30
- pname = "#{name}_pset"
31
- patsets.add(pname, [{ pattern: "#{name}.PAT" },
32
- { pattern: 'nvm_global_subs.PAT', start_label: 'subr' }])
33
- ins.pattern = pname
34
- if options[:cz_setup]
35
- flow.cz(ins, options[:cz_setup], options)
36
- else
37
- flow.test(ins, options)
38
- end
39
- end
40
- end
41
- end
42
-
43
- def block_loop(name, options)
44
- if options[:by_block]
45
- test_instances.group do |group|
46
- group.name = name
47
- $nvm.blocks.each_with_index do |block, i|
48
- yield block, i, group
49
- end
50
- end
51
- else
52
- yield
53
- end
54
- end
55
-
56
- def por(options = {})
57
- options = {
58
- instance_not_available: true
59
- }.merge(options)
60
- flow.test('por_ins', options)
61
- end
62
-
63
- def para(name, options = {})
64
- options = {
65
- high_voltage: false
66
- }.merge(options)
67
- if options.delete(:high_voltage)
68
- ins = test_instances.bpmu(name)
69
- else
70
- ins = test_instances.ppmu(name)
71
- end
72
- ins.dc_category = 'NVM_PARA'
73
- flow.test(ins, options)
74
- patsets.add("#{name}_pset", pattern: "#{name}.PAT")
75
- end
76
- end
77
- end
data/lib/c99/nvm.rb DELETED
@@ -1,110 +0,0 @@
1
- module C99
2
- # Most of the definition for this lives in core_support
3
- class NVM
4
- attr_accessor :attribute_x
5
-
6
- def override_method
7
- :overridden
8
- end
9
-
10
- def added_method
11
- :added
12
- end
13
-
14
- def add_multi_split_reg
15
- reg :multi_group, 0x0070, size: 16 do |reg|
16
- reg.bits 15, :mike, reset: 1
17
- reg.bits 14, :bill, reset: 0
18
- reg.bits 13, :robert, reset: 1
19
- reg.bits 12, :james, reset: 0
20
- reg.bits 11, :james, reset: 1
21
- reg.bits 10, :james, reset: 0
22
- reg.bits 9, :paul, reset: 1
23
- reg.bits 8, :peter, reset: 0
24
- reg.bits 7, :mike, reset: 1
25
- reg.bits 6, :mike, reset: 0
26
- reg.bits 5, :paul, reset: 1
27
- reg.bits 4, :paul, reset: 0
28
- reg.bits 3, :mike, reset: 1
29
- reg.bits 2, :robert, reset: 0
30
- reg.bits 1, :bill, reset: 0
31
- reg.bits 0, :ian, reset: 1
32
- end
33
- end
34
-
35
- def add_proth_reg
36
- reg :proth, 0x0024, size: 32 do |reg|
37
- reg.bits 31..24, :fprot7, reset: 0xFF
38
- reg.bits 23..16, :fprot6, reset: 0xEE
39
- reg.bits 15..8, :fprot5, reset: 0xDD
40
- reg.bits 7..0, :fprot4, reset: 0x11
41
- end
42
- end
43
-
44
- def add_non_byte_aligned_regs
45
- add_reg :non_aligned_small, 0x1000, size: 4
46
- add_reg :non_aligned_big, 0x1010, size: 10
47
- add_reg :non_aligned_small_msb0, 0x2000, size: 4, bit_order: :msb0
48
- add_reg :non_aligned_big_msb0, 0x2010, size: 10, bit_order: :msb0
49
- end
50
-
51
- def add_msb0_regs
52
- reg :SIUL2_MIDR1, 0x4, bit_order: :msb0 do |reg|
53
- bit 0..15, :PARTNUM, res: 0b0101011101110111
54
- bit 16, :ED
55
- bit 17..21, :PKG
56
- bit 24..27, :MAJOR_MASK
57
- bit 28..31, :MINOR_MASK
58
- end
59
- end
60
- end
61
-
62
- class NVMSub < NVM
63
- def redefine_data_reg
64
- add_reg :data, 0x40, 16, d: { pos: 0, bits: 16 }
65
- end
66
-
67
- # Tests that the block format for defining registers works
68
- def add_reg_with_block_format
69
- # ** Data Register 3 **
70
- # This is dreg
71
- add_reg :dreg, 0x1000, size: 16 do |reg|
72
- # This is dreg bit 15
73
- reg.bit 15, :bit15, reset: 1
74
- # **Bit 14** - This does something cool
75
- #
76
- # 0 | Coolness is disabled
77
- # 1 | Coolness is enabled
78
- reg.bits 14, :bit14
79
- # This is dreg bit upper
80
- reg.bits 13..8, :upper
81
- # This is dreg bit lower
82
- # This is dreg bit lower line 2
83
- reg.bit 7..0, :lower, writable: false, reset: 0x55
84
- end
85
-
86
- # This is dreg2
87
- reg :dreg2, 0x1000, size: 16 do
88
- # This is dreg2 bit 15
89
- bit 15, :bit15, reset: 1
90
- # This is dreg2 bit upper
91
- bits 14..8, :upper
92
- # This is dreg2 bit lower
93
- # This is dreg2 bit lower line 2
94
- bit 7..0, :lower, writable: false, reset: 0x55
95
- end
96
-
97
- # Finally a test that descriptions can be supplied via the API
98
- reg :dreg3, 0x1000, size: 16, description: "** Data Register 3 **\nThis is dreg3" do
99
- bit 15, :bit15, reset: 1, description: 'This is dreg3 bit 15'
100
- bit 14, :bit14, description: "**Bit 14** - This does something cool\n\n0 | Coolness is disabled\n1 | Coolness is enabled"
101
- bits 13..8, :upper, description: 'This is dreg3 bit upper'
102
- bit 7..0, :lower, writable: false, reset: 0x55, description: "This is dreg3 bit lower\nThis is dreg3 bit lower line 2"
103
- end
104
-
105
- reg :dreg4, 0x1000, size: 8, description: "** Data Register 4 **\nThis is dreg4" do
106
- bit 7..0, :busy, reset: 0x55, description: "**Busy Bits** - These do something super cool\n\n0 | Job0\n1 | Job1\n10 | Job2\n11 | Job3\n100 | Job4\n101 | Job5\n110 | Job6\n111 | Job7\n1000 | Job8\n1001 | Job9\n1010 | Job10\n1011 | Job11\n1100 | Job12\n1101 | Job13\n1110 | Job14\n1111 | Job15\n10000 | Job16\n10001 | Job17\n10010 | Job18"
107
- end
108
- end
109
- end
110
- end
@@ -1 +0,0 @@
1
- $tester = 'found in symlinked subdir'
@@ -1 +0,0 @@
1
- $tester = 'found in subdir of a symlinked subdir!'
@@ -1,17 +0,0 @@
1
- module Origen
2
- module CodeGenerators
3
- class Bundler < Origen::CodeGenerators::Base
4
- desc <<-END
5
- This generator will add the necessary files to convert the app to use bundler for gem
6
- mangement (including Origen plugins).
7
- END
8
- def create_gemspec_file
9
- if config[:type] == :application
10
- template 'templates/code_generators/gemfile_app.rb', File.join(Origen.root, 'Gemfile')
11
- else
12
- template 'templates/code_generators/gemfile_plugin.rb', File.join(Origen.root, 'Gemfile')
13
- end
14
- end
15
- end
16
- end
17
- end
@@ -1,49 +0,0 @@
1
- module Origen
2
- module CodeGenerators
3
- class GemSetup < Origen::CodeGenerators::Base
4
- desc <<-END
5
- This generator creates a gemspec file in the top-level directory to allow it
6
- to be packed up and distributed as a gem.
7
- END
8
- def create_gemspec_file
9
- @summary = ask 'Describe your plugin in a few words:'
10
- template 'templates/code_generators/gemspec.rb', File.join(Origen.root, "#{Origen.app.name}.gemspec")
11
- end
12
-
13
- def create_master_require_file
14
- file = "#{Origen.root}/lib/#{Origen.app.name}.rb"
15
- if File.exist?(file)
16
- prepend_to_file file, <<-END
17
- require "origen"
18
- require_relative "../config/application.rb"
19
- require_relative "../config/environment.rb"
20
-
21
- END
22
- else
23
- create_file file do
24
- <<-END
25
- require "origen"
26
- require_relative "../config/application.rb"
27
- require_relative "../config/environment.rb"
28
- END
29
- end
30
- end
31
- end
32
-
33
- def verify_semver
34
- unless Origen.app.version.semantic?
35
- puts <<-END
36
-
37
- Warning, you application is not currently using semantic (1.2.3) versioning, this must be used if
38
- you want to publish your plugin as a gem.
39
-
40
- To upgrade your application to semantic versioning run the following command:
41
-
42
- origen add semver
43
-
44
- END
45
- end
46
- end
47
- end
48
- end
49
- end
@@ -1,13 +0,0 @@
1
- module Origen
2
- module CodeGenerators
3
- class Rake < Origen::CodeGenerators::Base
4
- desc <<-END
5
- This generator will add the necessary files to convert the app to use rake for general
6
- build commands.
7
- END
8
- def create_rake_file
9
- template 'templates/code_generators/rakefile.rb', File.join(Origen.root, 'Rakefile')
10
- end
11
- end
12
- end
13
- end
@@ -1,12 +0,0 @@
1
- module Origen
2
- module CodeGenerators
3
- class RSpec < Origen::CodeGenerators::Base
4
- desc <<-END
5
- This generator will add the necessary files to use rspec for unit tests.
6
- END
7
- def create_spec_helper_file
8
- template 'templates/code_generators/spec_helper.rb', File.join(Origen.root, 'spec', 'spec_helper.rb')
9
- end
10
- end
11
- end
12
- end
@@ -1,12 +0,0 @@
1
- require 'origen/code_generators'
2
-
3
- # if no argument/-h/--help is passed to origen add command, then
4
- # it generates the help associated.
5
- if [nil, '-h', '--help'].include?(ARGV.first)
6
- Origen::CodeGenerators.help 'add'
7
- exit
8
- end
9
-
10
- name = ARGV.shift
11
-
12
- Origen::CodeGenerators.invoke name, ARGV # , behavior: :invoke, destination_root: Origen.root
@@ -1,8 +0,0 @@
1
- # namespace 'build' do
2
- # desc 'Hello'
3
- # task :test do
4
- # puts "hello world"
5
- # end
6
- # end
7
- #
8
- # task :default => ["build:test"]