rggen-verilog 0.11.0 → 0.11.1

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: c51f12437d8fa2b759cdac993be71633df8d140687b0d12a566ca8d56ed14ecc
4
- data.tar.gz: 6e50f1af0dd65e009d53a9cf38778c99e3392fa4b0fc8ddf20ede72643e17664
3
+ metadata.gz: 5c3c718beffbd398b73e1783be15e50f6b9c3b103c122779b4d6baa848b9992f
4
+ data.tar.gz: 7efc7297a728743b96fb447f11e63ee59eb69840790970683a31506f8d4f8547
5
5
  SHA512:
6
- metadata.gz: 87cb9445bc512d778e6992eaee5a86d67edcb5740c4cd5cc1a6c3bc4bbb35db743f74246b20b4397a436c17bdb2e85fcc3e310c87a47f473904fe21b7b2fab26
7
- data.tar.gz: 03c553d8ce11624b400f3ebae46f18ea311bdfc71b4734ce1254d412b08815bdad4a21a33f87407b8da7aae15ffaa4e49fe8fb4d3a5ced553e87c1faa3617650
6
+ metadata.gz: 2035b9d4163eb93c20afcaa4edd5809fabb1338ae8e4b2c2cc6440cae7fde49bbf179cdc4bcb76f65ffb33c61e66c859b694948f98fc27a78556a0f8614c6373
7
+ data.tar.gz: c1112eb1588ea48f963177b235a55e1251b7b9c4fa3802e6907ba752a6de695077207fa0472b76c1e44bd34b990b71a46318a178224459de85f8549e7b6988be
@@ -5,8 +5,7 @@ rggen_indirect_register #(
5
5
  .OFFSET_ADDRESS (<%= offset_address %>),
6
6
  .BUS_WIDTH (<%= bus_width %>),
7
7
  .DATA_WIDTH (<%= width %>),
8
- .INDIRECT_INDEX_WIDTH (<%= index_width %>),
9
- .INDIRECT_INDEX_VALUE (<%= concat(index_values) %>)
8
+ .INDIRECT_MATCH_WIDTH (<%= index_match_width %>)
10
9
  ) u_register (
11
10
  .i_clk (<%= clock %>),
12
11
  .i_rst_n (<%= reset %>),
@@ -20,7 +19,7 @@ rggen_indirect_register #(
20
19
  .o_register_status (<%= register_status %>),
21
20
  .o_register_read_data (<%= register_read_data %>),
22
21
  .o_register_value (<%= register_value %>),
23
- .i_indirect_index (<%= indirect_index %>),
22
+ .i_indirect_match (<%= indirect_match %>),
24
23
  .o_bit_field_valid (<%= bit_field_valid %>),
25
24
  .o_bit_field_read_mask (<%= bit_field_read_mask %>),
26
25
  .o_bit_field_write_mask (<%= bit_field_write_mask %>),
@@ -5,14 +5,20 @@ RgGen.define_list_item_feature(:register, :type, :indirect) do
5
5
  include RgGen::SystemVerilog::RTL::IndirectIndex
6
6
 
7
7
  build do
8
- wire :indirect_index, {
9
- name: 'w_indirect_index', width: index_width
8
+ wire :indirect_match, {
9
+ name: 'w_indirect_match', width: index_match_width
10
10
  }
11
11
  end
12
12
 
13
13
  main_code :register do |code|
14
- code << indirect_index_assignment << nl
14
+ indirect_index_matches(code)
15
15
  code << process_template
16
16
  end
17
+
18
+ private
19
+
20
+ def array_index_value(value, width)
21
+ value[0, width]
22
+ end
17
23
  end
18
24
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RgGen
4
4
  module Verilog
5
- VERSION = '0.11.0'
5
+ VERSION = '0.11.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rggen-verilog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taichi Ishitani
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-22 00:00:00.000000000 Z
11
+ date: 2024-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rggen-systemverilog
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.33.0
19
+ version: 0.33.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.33.0
26
+ version: 0.33.1
27
27
  description: Verilog write plugin for RgGen
28
28
  email:
29
29
  - rggen@googlegroups.com
@@ -127,8 +127,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  - !ruby/object:Gem::Version
128
128
  version: '0'
129
129
  requirements: []
130
- rubygems_version: 3.5.3
130
+ rubygems_version: 3.5.16
131
131
  signing_key:
132
132
  specification_version: 4
133
- summary: rggen-verilog-0.11.0
133
+ summary: rggen-verilog-0.11.1
134
134
  test_files: []