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
To compatible with SoC test, All types of TreeCore have same memory map range:
@@ -132,7 +139,7 @@ tools ->
132
139
```
133
140
134
141
### Enviroment Setup
135
-
> 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.
142
+
> 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.
136
143
137
144
If you're new to TreeCore project, we suggest you start with the install section. Remeber you **ONLY** need to install the below libraries once. Now all of operations(config, compile, test) have been automated by Makefile. You can visit [unit-test.yml](.github/workflows/unit-test.yml) to get more information.
138
145
> NOTE: In order to download and configure all libraries successful, you **NEED** to be able to visit github.com and gitee.com.
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:
166
+
Running the ISA test don't need 8G memory, so you can reconfigure the `memory size` to reduce the simulation memory usage. Achieving that, you need to type `make menuconfig` as follow:
160
167
161
168
```bash
162
169
$ cd dependency/NEMU
@@ -199,7 +206,7 @@ $ make riscvTestBuild
199
206
$ make cpuTestBuild
200
207
$ make amTestBuild
201
208
```
202
-
> NOTE: you need enough memory to compile the application binaries.
209
+
> NOTE: you need enough memory to compile the application binaries. Generally speaking, you need at least 4GB of memory.
203
210
204
211
### Recursive test
205
212
After you modify the processor design, you need to run recursive unit test to gurantee the modification is correct.
Software test, also called application test, can provide integrated test for interrupt. You need to recompile the amtest with specific `AM_TARGET` when you want to change the software target.
229
237
```bash
230
-
$ make
238
+
# the 'AM_TARGET' option value(default h):
239
+
# h => "hello"
240
+
# H => "display this help message"
241
+
# i => "interrupt/yield test"
242
+
# d => "scan devices"
243
+
# m => "multiprocessor test"
244
+
# t => "real-time clock test"
245
+
# k => "readkey test"
246
+
# v => "display test"
247
+
# a => "audio test"
248
+
# p => "x86 virtual memory test"
249
+
$ make amTestBuild AM_TARGET=i
250
+
$ make amTest
251
+
```
252
+
253
+
### Benchmark test
254
+
First, you need to compile the benchmark programs.
255
+
```bash
256
+
$ make coremarkTestBuild
257
+
$ make dhrystoneTestBuild
258
+
$ make microbenchTestBuild
259
+
```
260
+
```bash
261
+
$ make coremakrTest
262
+
$ make dhrystoneTest
263
+
$ make microbenchTest
231
264
```
232
265
233
266
### SoC test
234
267
SoC test is based on ysyxSoC project. SoC test provides more accurate simulation environment for processor design.
235
268
236
269
```bash
237
-
$ make socBuild
238
-
$ make socTest
270
+
$ make CHIP_TARGET=tc_l2 socBuild
271
+
# SOC_APP_TYPE: flash, loader
272
+
# SOC_APP_NAME: hello, memtest, rtthread
273
+
$ make CHIP_TARGET=tc_l2 SOC_APP_TYPE=flash SOC_APP_NAME=hello socTest
239
274
```
240
275
### Add and Customize new project
241
-
276
+
```bash
277
+
# First modify the `CHIP_TARGET` in Makefile to your custom name which create folder.
0 commit comments