@@ -11,8 +11,8 @@ the QEMU binary.
11
11
## Usage
12
12
13
13
```` text
14
- usage: cfggen.py [-h] [-o CFG] [-T TOP ] [-c SV] [-l SV] [-t HJSON] [-s SOCID ]
15
- [-C COUNT] [-v] [-d]
14
+ usage: cfggen.py [-h] -T {Darjeeling,EarlGrey} [-o CFG ] [-c SV] [-l SV]
15
+ [-t HJSON] [-s SOCID] [- C COUNT] [-v] [-d]
16
16
TOPDIR
17
17
18
18
OpenTitan QEMU configuration file generator.
@@ -22,26 +22,22 @@ options:
22
22
23
23
Files:
24
24
TOPDIR OpenTitan top directory
25
- -o CFG, --out CFG Filename of the config file to generate
26
- -T TOP, --top TOP OpenTitan Top name (default: darjeeling)
27
- -c SV, --otpconst SV OTP Constant SV file (default: auto)
28
- -l SV, --lifecycle SV
29
- LifeCycle SV file (default: auto)
30
- -t HJSON, --topcfg HJSON
31
- OpenTitan top HJSON config file (default: auto)
25
+ -T, --top {Darjeeling,EarlGrey}
26
+ OpenTitan top name
27
+ -o, --out CFG Filename of the config file to generate
28
+ -c, --otpconst SV OTP Constant SV file (default: auto)
29
+ -l, --lifecycle SV LifeCycle SV file (default: auto)
30
+ -t, --topcfg HJSON OpenTitan top HJSON config file (default: auto)
32
31
33
32
Modifiers:
34
- -s SOCID, --socid SOCID
35
- SoC identifier, if any
36
- -C COUNT, --count COUNT
37
- SoC count (default: 1)
33
+ -s, --socid SOCID SoC identifier, if any
34
+ -C, --count COUNT SoC count (default: 1)
38
35
39
36
Extras:
40
37
-v, --verbose increase verbosity
41
38
-d, --debug enable debug mode
42
39
````
43
40
44
-
45
41
### Arguments
46
42
47
43
` TOPDIR ` is a required positional argument which should point to the top-level directory of the
@@ -62,7 +58,7 @@ parse, each of which can be overidden with options `-c`, `-l` and `-t`.
62
58
* ` -s ` specify a SoC identifier for OT platforms with mulitple SoCs
63
59
64
60
* ` -T ` specify the OpenTitan _ top_ name, such as ` Darjeeling ` , ` EarlGrey ` , ... This option is
65
- case-insensitive .
61
+ mandatory .
66
62
67
63
* ` -t ` alternative path to the ` top_<top>.gen.hjson ` file
68
64
@@ -72,5 +68,5 @@ parse, each of which can be overidden with options `-c`, `-l` and `-t`.
72
68
### Examples
73
69
74
70
```` sh
75
- ./scripts/opentitan/cfggen.py ../opentitan-integrated -o opentitan.cfg
71
+ ./scripts/opentitan/cfggen.py ../opentitan -T EarlGrey -o opentitan.cfg
76
72
````
0 commit comments