rggen 0.30.1 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +46 -16
- data/lib/rggen/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be852aa5d1ddb6e535365f74ef362aaccf3d40fa99af54ae685f218e48cfcb07
|
4
|
+
data.tar.gz: 0430eed7cefbb6c4a71ba3792de6e40b13757b8701a7d0c84376e5242971bb4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
120
|
-
* https://github.com/rggen/rggen-sample/blob/master/
|
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
|
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
|
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/
|
136
|
-
* https://github.com/rggen/rggen-sample/blob/master/
|
137
|
-
|
138
|
-
* https://github.com/rggen/rggen-sample/blob/master/
|
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/
|
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/
|
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/
|
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
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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
|