rggen 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2a8d729d006b9018f50cd1859191ba69eac8ffff986644c75b727606efe2cd9
|
4
|
+
data.tar.gz: f0f31ea88bc75e766a6aaba4205e1b38c172f80649b3641dc0923e242de37fb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: beb719d28bf108dd444a090d0a08d4b99bf486368aa45f9cdd9e2ce34637fdc4f593a34b15934be3bb15456bc73da22ef08edab49c6d2c5eeb8325403491e94b
|
7
|
+
data.tar.gz: 51f8948e0709eaf8468e860dc71c71937e398b03cc2b59b61a875dfef3ba31345f5433b35548ac3d22c95797492febee2ed665ef313f5d146a1c4ec02ccd8da7
|
@@ -3,8 +3,16 @@ list_item :bit_field, :type, :reserved do
|
|
3
3
|
reserved
|
4
4
|
end
|
5
5
|
|
6
|
+
rtl do
|
7
|
+
generate_code_from_template :bit_field
|
8
|
+
|
9
|
+
def default_value
|
10
|
+
hex(0, width)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
6
14
|
ral do
|
7
15
|
access :ro
|
8
|
-
hdl_path {
|
16
|
+
hdl_path { "g_#{bit_field.name}.u_bit_field.i_value" }
|
9
17
|
end
|
10
18
|
end
|
@@ -194,12 +194,8 @@ list_item :register, :type do
|
|
194
194
|
|
195
195
|
private
|
196
196
|
|
197
|
-
def actual_bit_fields
|
198
|
-
@non_reserved_bit_fields ||= register.bit_fields.reject(&:reserved?)
|
199
|
-
end
|
200
|
-
|
201
197
|
def total_bit_fields
|
202
|
-
|
198
|
+
register.bit_fields.size
|
203
199
|
end
|
204
200
|
|
205
201
|
def address_range
|
@@ -234,7 +230,7 @@ list_item :register, :type do
|
|
234
230
|
end
|
235
231
|
|
236
232
|
def valid_bits_value
|
237
|
-
|
233
|
+
register.bit_fields.inject(0) do |bits, bit_field|
|
238
234
|
bits | (((1 << bit_field.width) - 1) << bit_field.lsb)
|
239
235
|
end
|
240
236
|
end
|
data/lib/rggen/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rggen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taichi Ishitani
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: erubi
|
@@ -150,6 +150,7 @@ files:
|
|
150
150
|
- lib/rggen/builtins/bit_field/reference.rb
|
151
151
|
- lib/rggen/builtins/bit_field/rtl_top.rb
|
152
152
|
- lib/rggen/builtins/bit_field/type.rb
|
153
|
+
- lib/rggen/builtins/bit_field/types/reserved.erb
|
153
154
|
- lib/rggen/builtins/bit_field/types/reserved.rb
|
154
155
|
- lib/rggen/builtins/bit_field/types/ro.erb
|
155
156
|
- lib/rggen/builtins/bit_field/types/ro.rb
|