rggen 0.30.1 → 0.31.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +46 -16
  3. data/lib/rggen/version.rb +1 -1
  4. metadata +9 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d14eb79b4aa6568799c559bc45cf3436529455b24fc429e4ec189db34dc554c5
4
- data.tar.gz: ce4d8a598f6f9a4936805b0f4cbdb2db52c89d734215c773f7a1fdf68b553d05
3
+ metadata.gz: be852aa5d1ddb6e535365f74ef362aaccf3d40fa99af54ae685f218e48cfcb07
4
+ data.tar.gz: 0430eed7cefbb6c4a71ba3792de6e40b13757b8701a7d0c84376e5242971bb4f
5
5
  SHA512:
6
- metadata.gz: 1bada8f68a33fbeae389a2de39e66e2caa5155949e36e2f323f12570d0c8d51aec66ce9336e5306377e72554c7af54542a119a5f2b63efc8c111b57c8f3dc5dc
7
- data.tar.gz: b60c695a19ea44aebbacb1d0567ad2d4f8124e84ac79f4927f7f8b886826e35440e7213cc4a0aee1178af08326d097d625aeb219f470db81321fedfca1c29ec3
6
+ metadata.gz: e989301d1c40c7d6aff2db9f2076c30bc8ec8fd4f202c47062f4275d496e80d478036a694edf50b7a10d84a402f391728a7143be13b1b51ec2019be295b4e480
7
+ data.tar.gz: 04b09ca79adffa909adf0a0627b5d475d445b8fa33bed02655a771150081710fb7cd6819e86637bb932fbdf33c1c312b62828266f95afa1806ca1055423f4790
data/README.md CHANGED
@@ -82,6 +82,17 @@ ERROR: Error installing rggen:
82
82
  To resolve the above error, there are three solutions.
83
83
  See [this page](https://github.com/rggen/rggen/wiki/Resolve-Confliction-of-Installed-Executable)
84
84
 
85
+ ### Docker Image
86
+
87
+ The [rggen-docker](https://hub.docker.com/r/rggendev/rggen-docker) is a Docker image to simplify installation and use of RgGen.
88
+ You can also execute RgGen by using this image:
89
+
90
+ ```
91
+ $ docker run -ti --rm -v ${PWD}:/work --user $(id -u):$(id -g) rggendev/rggen-docker:latest -c config.yml -o out block_0.yml
92
+ ```
93
+
94
+ See the [rggen-docker repository](https://github.com/rggen/rggen-docker) for further details.
95
+
85
96
  ## Usage
86
97
 
87
98
  See [Wiki documents](https://github.com/rggen/rggen/wiki).
@@ -112,39 +123,57 @@ Following EDA tools can accept the generated source files.
112
123
 
113
124
  ## Example
114
125
 
115
- You can get an example configuration file and register map specifications listed below:
126
+ You can get sample configuration file and register map specification from the [rggen-sample](https://github.com/rggen/rggen-sample) repository.
127
+ This register map specification is for a UART IP.
116
128
 
117
129
  * Configuration file
118
130
  * https://github.com/rggen/rggen-sample/blob/master/config.yml
119
- * Register map specifications
120
- * https://github.com/rggen/rggen-sample/blob/master/block_0.yml
121
- * https://github.com/rggen/rggen-sample/blob/master/block_1.yml
131
+ * Register map specification
132
+ * https://github.com/rggen/rggen-sample/blob/master/uart_csr.yml
122
133
 
123
134
  You can try to use RgGen by uisng these example files. Hit command below:
124
135
 
125
136
  ```
126
- $ rggen -c config.yml -o out block_0.yml block_1.yml
137
+ $ rggen -c config.yml -o out uart_csr.yml
127
138
  ```
128
139
 
129
140
  * `-c`: Specify path to your configuration file
130
141
  * `-o`: Specify path to the directory where generated files will be written to
131
142
 
132
- Then, generated files listed below will be written to `out` directory.
143
+ Then, generated files will be written to the `out` directory.
144
+
145
+ If you want to generate Verilog RTL and/or VHDL RTL then you need to instll optional plugins listed below.
146
+
147
+ * Verilog writer plugin: [rggen-verilog](https://github.com/rggen/rggen-verilog)
148
+ * VHDL writer plugin: [rggen-vhdl](https://github.com/rggen/rggen-vhdl)
149
+
150
+ ```
151
+ $ gem install rggen-verilog
152
+ $ gem install rggen-vhdl
153
+ ```
154
+
155
+ In addition, you need to tell RgGen to use these plugins by using the `--plugin` option switch:
156
+
157
+ ```
158
+ rggen -c config.yml --plugin rggen-verilog --plugin rggen-vhdl uart_csr.yml
159
+ ```
160
+
161
+ RgGen will generate following source files from the [`uart_csr.yml`](https://github.com/rggen/rggen-sample/blob/master/uart_csr.yml) register map specification:
133
162
 
134
163
  * SystemVerilog RTL
135
- * https://github.com/rggen/rggen-sample/blob/master/block_0.sv
136
- * https://github.com/rggen/rggen-sample/blob/master/block_0_rtl_pkg.sv
137
- * https://github.com/rggen/rggen-sample/blob/master/block_1.sv
138
- * https://github.com/rggen/rggen-sample/blob/master/block_1_rtl_pkg.sv
164
+ * https://github.com/rggen/rggen-sample/blob/master/uart_csr.sv
165
+ * https://github.com/rggen/rggen-sample/blob/master/uart_csr_rtl_pkg.sv
166
+ * Verilog RTL
167
+ * https://github.com/rggen/rggen-sample/blob/master/uart_csr.v
168
+ * https://github.com/rggen/rggen-sample/blob/master/uart_csr.vh
169
+ * VHDL RTL
170
+ * https://github.com/rggen/rggen-sample/blob/master/uart_csr.vhd
139
171
  * UVM register model
140
- * https://github.com/rggen/rggen-sample/blob/master/block_0_ral_pkg.sv
141
- * https://github.com/rggen/rggen-sample/blob/master/block_1_ral_pkg.sv
172
+ * https://github.com/rggen/rggen-sample/blob/master/uart_csr_ral_pkg.sv
142
173
  * C header file
143
- * https://github.com/rggen/rggen-sample/blob/master/block_0.h
144
- * https://github.com/rggen/rggen-sample/blob/master/block_1.h
174
+ * https://github.com/rggen/rggen-sample/blob/master/uart_csr.h
145
175
  * Markdown document
146
- * https://github.com/rggen/rggen-sample/blob/master/block_0.md
147
- * https://github.com/rggen/rggen-sample/blob/master/block_1.md
176
+ * https://github.com/rggen/rggen-sample/blob/master/uart_csr.md
148
177
 
149
178
  ## Contributing
150
179
 
@@ -171,6 +200,7 @@ Feedbacks, bug reports, questions and etc. are wellcome! You can post them by us
171
200
  * https://github.com/rggen/rggen-duh
172
201
  * https://github.com/rggen/rggen-verilog
173
202
  * https://github.com/rggen/rggen-vhdl
203
+ * https://github.com/rggen/rggen-docker
174
204
 
175
205
  ## Copyright & License
176
206
 
data/lib/rggen/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RgGen
4
- VERSION = '0.30.1'
4
+ VERSION = '0.31.0'
5
5
  end
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.30.1
4
+ version: 0.31.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taichi Ishitani
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-09 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rggen-c-header
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.30.0
33
+ version: 0.31.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.30.0
40
+ version: 0.31.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rggen-default-register-map
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.30.0
47
+ version: 0.31.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.30.0
54
+ version: 0.31.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rggen-markdown
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.30.1
89
+ version: 0.31.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.30.1
96
+ version: 0.31.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: bundler
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
150
  - !ruby/object:Gem::Version
151
151
  version: '0'
152
152
  requirements: []
153
- rubygems_version: 3.4.10
153
+ rubygems_version: 3.4.17
154
154
  signing_key:
155
155
  specification_version: 4
156
156
  summary: Code generation tool for configuration and status registers