You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31-11Lines changed: 31 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,13 +99,12 @@ To compatible with SoC test, All types of TreeCore have same memory map range:
99
99
#### Configuration
100
100
101
101
## Usage
102
-
adsfadfasdfasf
102
+
This section introduces how to set up development environment and runs unit test for your own riscv processor.
103
103
### Enviroment Setup
104
104
> NOTE: All of the components and tools are installed under linux operation system. To gurantee the compatibility and stability, I strongly recommend using `ubuntu 20.04 LTS`. `ubuntu 18.04` and `ubuntu 16.04` is not supported official.
105
105
106
106
First, you need to install verilator, mill and dependency libraries:
107
107
```bash
108
-
$ su -
109
108
$ cd rtl
110
109
$ chmod +x scripts/install.sh
111
110
$ make install
@@ -115,20 +114,20 @@ Then, download and configuare all components from the github and gitee:
115
114
$ chmod +x scripts/setup.sh
116
115
$ make setup
117
116
```
118
-
After that, you need to add the `NEMU_HOME` and `NOOP_HOME` environment variables in sh environment config file:
117
+
After that, you need to add the `NEMU_HOME` and `NOOP_HOME` environment variables to your shell environment config file:
119
118
```bash
120
119
$ echoexport NEMU_HOME=$(pwd)/dependency/NEMU >>~/.bashrc # according to shell type your system uses
Becuase running the isa test don't need 8G memory, so you need to config the simulation memory size to reduce memory usage. You need to type `make menuconfig` as follow:
124
+
Running the ISA test don't need 8G memory, so you can configure the `memory size` to reduce the simulation memory usage. Achieving that, you need to type `make menuconfig` as follow:
126
125
127
126
```bash
128
127
$ cd dependency/NEMU
129
128
$ make menuconfig
130
129
```
131
-
> NOTE: if you encount`Your display is too small to run Menuconfig!` error, you need to resize the terminal to match need as the console output: `It must be at least 19 lines by 80 columns`.
130
+
> NOTE: if you encounter`Your display is too small to run Menuconfig!` error, you need to resize the terminal to match need as the console output: `It must be at least 19 lines by 80 columns`.
First, Running unit test need to download `mill` from github. If you cannot access the github correctly, you need to type below commands to configure `mill` manually:
185
+
186
+
```bash
187
+
$ # download '0.9.9-assembly' from https://github.com/com-lihaoyi/mill/releases/download/0.9.9/0.9.9-assembly manually.
188
+
$ cp 0.9.9-assembly ~/.cache/mill/download
189
+
$ mv ~/.cache/mill/download/0.9.9-assembly ~/.cache/mill/download/0.9.9 # change name
0 commit comments