File tree Expand file tree Collapse file tree 2 files changed +27
-3
lines changed Expand file tree Collapse file tree 2 files changed +27
-3
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,35 @@ which supports SystemVerilog and UVM 1.2. This generator has been verified with
40
40
Synopsys VCS, Cadence Incisive/Xcelium, and Mentor Questa simulators. Please
41
41
make sure the EDA tool environment is properly setup before running the generator.
42
42
43
- Install RISCV-DV:
43
+ ### Install RISCV-DV
44
44
45
+ Getting the source
45
46
``` bash
46
47
git clone https://github.com/google/riscv-dv.git
47
- cd riscv-dv
48
- pip3 install -e .
48
+ ```
49
+
50
+ There are two ways that you can run scripts from riscv-dv. You can directly run
51
+ by ` python3 ` . Example:
52
+
53
+ ``` bash
54
+ pip3 install -r requirements.txt # install dependencies (only once)
55
+ python3 run.py --help
56
+ ```
57
+ Or you can run by installing the scripts of riscv-dv. For developer guide, developers
58
+ can test changes to scripts of riscv-dv by using "development mode" from python's
59
+ setuptools package. First, cd to the directory where riscv-dv is cloned and run:
60
+
61
+ ``` bash
62
+ pip3 install --user -e .
63
+ ```
64
+
65
+ This installs riscv-dv in a mode where any changes within the repo are immediately
66
+ available simply by running ` run ` /` cov ` . There is no need to repeatedly run ` pip install . `
67
+ after each change. Example for running:
68
+
69
+ ``` bash
70
+ run --help
71
+ cov --help
49
72
```
50
73
51
74
### Setup RISCV-GCC compiler toolchain
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ include_package_data = True
16
16
# Let pip install dependencies automatically.
17
17
install_requires = PyYAML
18
18
bitstring
19
+ python_requires = >=3
19
20
20
21
[options.entry_points]
21
22
# Set up an executable script that calls the main() function in riscv-dv
You can’t perform that action at this time.
0 commit comments