origen 0.27.0 → 0.28.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/version.rb +1 -1
- data/lib/origen.rb +13 -0
- data/lib/origen/application/plugins.rb +3 -0
- data/lib/origen/commands.rb +1 -1
- data/lib/origen/commands/plugin.rb +240 -3
- data/lib/origen/core_ext.rb +1 -0
- data/lib/origen/core_ext/numeric.rb +6 -6
- data/lib/origen/core_ext/string.rb +24 -0
- data/lib/origen/core_ext/symbol.rb +5 -0
- data/lib/origen/model.rb +3 -0
- data/lib/origen/model/exporter.rb +238 -0
- data/lib/origen/parameters.rb +27 -6
- data/lib/origen/pins.rb +4 -0
- data/lib/origen/pins/pin.rb +26 -1
- data/lib/origen/power_domains/power_domain.rb +51 -11
- data/lib/origen/registers.rb +5 -4
- data/lib/origen/registers/bit_collection.rb +9 -4
- data/lib/origen/registers/reg.rb +66 -24
- data/lib/origen/site_config.rb +1 -1
- data/lib/origen/sub_blocks.rb +125 -38
- data/lib/origen/top_level.rb +6 -1
- data/lib/origen/users/user.rb +1 -1
- data/vendor/lib/models/origen/export1.rb +75 -0
- data/vendor/lib/models/origen/export1/block1.rb +13 -0
- data/vendor/lib/models/origen/export1/block1/x.rb +27 -0
- metadata +8 -3
data/lib/origen/users/user.rb
CHANGED
@@ -147,7 +147,7 @@ module Origen
|
|
147
147
|
end
|
148
148
|
end
|
149
149
|
|
150
|
-
def respond_to?(method)
|
150
|
+
def respond_to?(method, include_private = false)
|
151
151
|
super || begin
|
152
152
|
if Origen.ldap.available?
|
153
153
|
Origen.ldap.lookup(self) && Origen.ldap.lookup(self).attribute_names.include?(method.to_sym)
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# This file was generated by Origen, any hand edits will likely get overwritten
|
2
|
+
# rubocop:disable all
|
3
|
+
module Origen
|
4
|
+
module Export1
|
5
|
+
def self.extended(model)
|
6
|
+
model.add_package :bga
|
7
|
+
model.add_package :pcs
|
8
|
+
model.add_pin :pinx
|
9
|
+
model.add_pin :piny, reset: :drive_hi, direction: :output, meta: { a: '1', b: 2 }
|
10
|
+
model.add_pin :tdo, packages: { bga: { location: 'BF32', dib_assignment: [10104] }, pcs: { location: 'BF30', dib_assignment: [31808] } }
|
11
|
+
model.add_pin :porta31
|
12
|
+
model.add_pin :porta30
|
13
|
+
model.add_pin :porta29
|
14
|
+
model.add_pin :porta28
|
15
|
+
model.add_pin :porta27
|
16
|
+
model.add_pin :porta26
|
17
|
+
model.add_pin :porta25
|
18
|
+
model.add_pin :porta24
|
19
|
+
model.add_pin :porta23
|
20
|
+
model.add_pin :porta22
|
21
|
+
model.add_pin :porta21
|
22
|
+
model.add_pin :porta20
|
23
|
+
model.add_pin :porta19
|
24
|
+
model.add_pin :porta18
|
25
|
+
model.add_pin :porta17
|
26
|
+
model.add_pin :porta16
|
27
|
+
model.add_pin :porta15
|
28
|
+
model.add_pin :porta14
|
29
|
+
model.add_pin :porta13
|
30
|
+
model.add_pin :porta12
|
31
|
+
model.add_pin :porta11
|
32
|
+
model.add_pin :porta10
|
33
|
+
model.add_pin :porta9
|
34
|
+
model.add_pin :porta8
|
35
|
+
model.add_pin :porta7
|
36
|
+
model.add_pin :porta6
|
37
|
+
model.add_pin :porta5
|
38
|
+
model.add_pin :porta4
|
39
|
+
model.add_pin :porta3
|
40
|
+
model.add_pin :porta2
|
41
|
+
model.add_pin :porta1
|
42
|
+
model.add_pin :porta0
|
43
|
+
model.add_pin :portb0
|
44
|
+
model.add_pin :portb1
|
45
|
+
model.add_pin :portb2
|
46
|
+
model.add_pin :portb3
|
47
|
+
model.add_pin :portb4
|
48
|
+
model.add_pin :portb5
|
49
|
+
model.add_pin :portb6
|
50
|
+
model.add_pin :portb7
|
51
|
+
model.add_pin :portb8
|
52
|
+
model.add_pin :portb9
|
53
|
+
model.add_pin :portb10
|
54
|
+
model.add_pin :portb11
|
55
|
+
model.add_pin :portb12
|
56
|
+
model.add_pin :portb13
|
57
|
+
model.add_pin :portb14
|
58
|
+
model.add_pin :portb15
|
59
|
+
model.add_pin_group :porta, :porta31, :porta30, :porta29, :porta28, :porta27, :porta26, :porta25, :porta24, :porta23, :porta22, :porta21, :porta20, :porta19, :porta18, :porta17, :porta16, :porta15, :porta14, :porta13, :porta12, :porta11, :porta10, :porta9, :porta8, :porta7, :porta6, :porta5, :porta4, :porta3, :porta2, :porta1, :porta0
|
60
|
+
model.add_pin_group :portb, :portb15, :portb14, :portb13, :portb12, :portb11, :portb10, :portb9, :portb8, :portb7, :portb6, :portb5, :portb4, :portb3, :portb2, :portb1, :portb0
|
61
|
+
model.pins(:portb).endian = :little
|
62
|
+
model.add_power_pin :vdd1, voltage: 3, current_limit: 0.05, meta: { min_voltage: 1.5 }
|
63
|
+
model.add_power_pin :vdd2
|
64
|
+
model.add_power_pin_group :vdd, :vdd1, :vdd2
|
65
|
+
model.add_ground_pin :gnd1
|
66
|
+
model.add_ground_pin :gnd2
|
67
|
+
model.add_ground_pin :gnd3
|
68
|
+
model.add_ground_pin_group :gnd, :gnd1, :gnd2, :gnd3
|
69
|
+
|
70
|
+
model.sub_block :block1, file: 'origen/export1/block1.rb'
|
71
|
+
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
# rubocop:enable all
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# This file was generated by Origen, any hand edits will likely get overwritten
|
2
|
+
# rubocop:disable all
|
3
|
+
module Origen
|
4
|
+
module Export1
|
5
|
+
module Block1
|
6
|
+
def self.extended(model)
|
7
|
+
model.sub_block :x, file: 'origen/export1/block1/x.rb', base_address: 0x40000000
|
8
|
+
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
# rubocop:enable all
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# This file was generated by Origen, any hand edits will likely get overwritten
|
2
|
+
# rubocop:disable all
|
3
|
+
module Origen
|
4
|
+
module Export1
|
5
|
+
module Block1
|
6
|
+
module X
|
7
|
+
def self.extended(model)
|
8
|
+
# ** Some Control Register **
|
9
|
+
# Blah, blah,
|
10
|
+
# and some more blah
|
11
|
+
model.add_reg :ctrl, 0x24, size: 16 do |reg|
|
12
|
+
reg.bit 7, :coco, access: :ro
|
13
|
+
reg.bit 6, :aien
|
14
|
+
# **Some Diff Bit** - This is a...
|
15
|
+
# blah, blah
|
16
|
+
#
|
17
|
+
# 0 | It's off
|
18
|
+
# 1 | It's on
|
19
|
+
reg.bit 5, :diff
|
20
|
+
reg.bit 4..0, :adch, reset: 0x1F
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
# rubocop:enable all
|
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.
|
4
|
+
version: 0.28.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: 2017-
|
11
|
+
date: 2017-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -467,6 +467,7 @@ files:
|
|
467
467
|
- lib/origen/core_ext/range.rb
|
468
468
|
- lib/origen/core_ext/regexp.rb
|
469
469
|
- lib/origen/core_ext/string.rb
|
470
|
+
- lib/origen/core_ext/symbol.rb
|
470
471
|
- lib/origen/database.rb
|
471
472
|
- lib/origen/database/key_value_store.rb
|
472
473
|
- lib/origen/database/key_value_stores.rb
|
@@ -499,6 +500,7 @@ files:
|
|
499
500
|
- lib/origen/memory.rb
|
500
501
|
- lib/origen/mode.rb
|
501
502
|
- lib/origen/model.rb
|
503
|
+
- lib/origen/model/exporter.rb
|
502
504
|
- lib/origen/model_initializer.rb
|
503
505
|
- lib/origen/models.rb
|
504
506
|
- lib/origen/models/mux.rb
|
@@ -606,6 +608,9 @@ files:
|
|
606
608
|
- templates/shared/web/_logo.html
|
607
609
|
- templates/time/filter.rb.erb
|
608
610
|
- templates/time/rules.rb.erb
|
611
|
+
- vendor/lib/models/origen/export1.rb
|
612
|
+
- vendor/lib/models/origen/export1/block1.rb
|
613
|
+
- vendor/lib/models/origen/export1/block1/x.rb
|
609
614
|
homepage: http://origen-sdk.org
|
610
615
|
licenses:
|
611
616
|
- MIT
|
@@ -626,7 +631,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
626
631
|
version: 1.8.11
|
627
632
|
requirements: []
|
628
633
|
rubyforge_project:
|
629
|
-
rubygems_version: 2.
|
634
|
+
rubygems_version: 2.6.7
|
630
635
|
signing_key:
|
631
636
|
specification_version: 4
|
632
637
|
summary: The Semiconductor Developer's Kit
|