rggen-vhdl 0.2.0 → 0.2.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: e152dbacccc9958c0062f2c904e83f467d5d5c1e424954b14074d1bce04d20d7
4
- data.tar.gz: fac552a7d2706f89903fdcd8e7c16c9a50927ad9925b5c1a024d38f18383ec47
3
+ metadata.gz: c74cc68ef729bcf49af9fbfb49184006e2f145408fa67d77adf96cd85ab07510
4
+ data.tar.gz: e113dc0c84be1b6646ae0d876e4f0cb920680c0bba12d71d434fbd6d168e6f42
5
5
  SHA512:
6
- metadata.gz: f749e47e3758bbabdb8992710d5192e0c0a33620c1fd8e929249f13a188f92776d6ef57828b60ce73146e4003ec707bca572173bf09d09516e6f4b50837e1be9
7
- data.tar.gz: b1df3e81e394b417505150dc6757be37b643dba6e42406245983d08819abcaf7202f94f09bc596aa14cd86b4b356c291a59670e306bde791d8573dfe0df94e2d
6
+ metadata.gz: fc44aaaafada6892281fc6f608af510e051bfb46aa00331dd4f1ac727c551d49d27dff01fd5f775cf5dc998c552553b1d30c682764e730696306c4ccf6ee2901
7
+ data.tar.gz: d378636891636a4609d1a40a4878ffd4a2edde73c5c30335d9e2a45265203de768db5f34d42a2dbbc8cea9b46e6b2f82416d9f43d2d185dc5d7c9d9204f7513b
@@ -0,0 +1,6 @@
1
+ \g_tie_off\: for \__i\ in 0 to <%= width - 1 %> generate
2
+ g: if (bit_slice(<%= valid_bits %>, \__i\) = '0') generate
3
+ <%= bit_field_read_data %>(\__i\) <= '0';
4
+ <%= bit_field_value %>(\__i\) <= '0';
5
+ end generate;
6
+ end generate;
@@ -6,7 +6,6 @@ u_register: entity work.rggen_default_register
6
6
  OFFSET_ADDRESS => <%= offset_address %>,
7
7
  BUS_WIDTH => <%= bus_width %>,
8
8
  DATA_WIDTH => <%= width %>,
9
- VALID_BITS => <%= valid_bits %>,
10
9
  REGISTER_INDEX => <%= register_index %>
11
10
  )
12
11
  port map (
@@ -9,7 +9,6 @@ u_register: entity work.rggen_indirect_register
9
9
  OFFSET_ADDRESS => <%= offset_address %>,
10
10
  BUS_WIDTH => <%= bus_width %>,
11
11
  DATA_WIDTH => <%= width %>,
12
- VALID_BITS => <%= valid_bits %>,
13
12
  INDIRECT_MATCH_WIDTH => <%= match_width %>
14
13
  )
15
14
  port map (
@@ -5,6 +5,11 @@ RgGen.define_list_feature(:register, :type) do
5
5
  base_feature do
6
6
  include RgGen::SystemVerilog::RTL::RegisterType
7
7
 
8
+ pre_code :register do |code|
9
+ register.bit_fields.empty? ||
10
+ (code << process_template(File.join(__dir__, 'tie_off_unused_signals.erb')))
11
+ end
12
+
8
13
  private
9
14
 
10
15
  def readable?
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RgGen
4
4
  module VHDL
5
- VERSION = '0.2.0'
5
+ VERSION = '0.2.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rggen-vhdl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.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: 2022-03-25 00:00:00.000000000 Z
11
+ date: 2022-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rggen-systemverilog
@@ -82,7 +82,7 @@ files:
82
82
  - lib/rggen/vhdl/component.rb
83
83
  - lib/rggen/vhdl/factories.rb
84
84
  - lib/rggen/vhdl/feature.rb
85
- - lib/rggen/vhdl/register/default.erb
85
+ - lib/rggen/vhdl/register/tie_off_unused_signals.erb
86
86
  - lib/rggen/vhdl/register/type.rb
87
87
  - lib/rggen/vhdl/register/type/default.erb
88
88
  - lib/rggen/vhdl/register/type/external.erb
@@ -133,5 +133,5 @@ requirements: []
133
133
  rubygems_version: 3.3.3
134
134
  signing_key:
135
135
  specification_version: 4
136
- summary: rggen-vhdl-0.2.0
136
+ summary: rggen-vhdl-0.2.1
137
137
  test_files: []
@@ -1,29 +0,0 @@
1
- rggen_default_register #(
2
- .READABLE (<%= readable %>),
3
- .WRITABLE (<%= writable %>),
4
- .ADDRESS_WIDTH (<%= address_width %>),
5
- .OFFSET_ADDRESS (<%= offset_address %>),
6
- .BUS_WIDTH (<%= bus_width %>),
7
- .DATA_WIDTH (<%= width %>),
8
- .VALID_BITS (<%= valid_bits %>),
9
- .REGISTER_INDEX (<%= register_index %>)
10
- ) u_register (
11
- .i_clk (<%= clock %>),
12
- .i_rst_n (<%= reset %>),
13
- .i_register_valid (<%= register_valid %>),
14
- .i_register_access (<%= register_access %>),
15
- .i_register_address (<%= register_address %>),
16
- .i_register_write_data (<%= register_write_data %>),
17
- .i_register_strobe (<%= register_strobe %>),
18
- .o_register_active (<%= register_active %>),
19
- .o_register_ready (<%= register_ready %>),
20
- .o_register_status (<%= register_status %>),
21
- .o_register_read_data (<%= register_read_data %>),
22
- .o_register_value (<%= register_value %>),
23
- .o_bit_field_valid (<%= bit_field_valid %>),
24
- .o_bit_field_read_mask (<%= bit_field_read_mask %>),
25
- .o_bit_field_write_mask (<%= bit_field_write_mask %>),
26
- .o_bit_field_write_data (<%= bit_field_write_data %>),
27
- .i_bit_field_read_data (<%= bit_field_read_data %>),
28
- .i_bit_field_value (<%= bit_field_value %>)
29
- );