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
The TreeCore processors are the riscv cores developed under the [Open Source Chip Project by University (OSCPU)](https://github.com/OSCPU) project. OSCPU was initiated by ICT, CAS(**_Institute of computing Technology, Chinese Academy of Sciences_**), which aims to make students use all open-source toolchains to design chips by themselves. It also can be called "One Life, One Chip" project in Chinese which has carried out two season. Now Season 3 is in progress(**_2021.7-2022.1_**).
28
+
The TreeCore processors are the riscv cores developed under the [Open Source Chip Project by University (OSCPU)](https://github.com/OSCPU) project. OSCPU was initiated by ICT, CAS(**_Institute of computing Technology, Chinese Academy of Sciences_**), which aims to make students use all open-source toolchains to design chips by themselves. Students enroll in this project need to pass tests, submit final design report and prepare oral defense for the qualification of tape-out. It also can be called "One Life, One Chip" project in Chinese which has carried out three season:
29
+
### Season 1[**2021.8-2021.12**]: Five undergraduates design a tape-outed riscv processor in four months
30
+
Season 1 was a first educational practice which aimed to design riscv processor by five undergraduates for tape-out in China. And its achievement was [NutShell](https://github.com/OSCPU/NutShell), [a Linux-Compatible RISC-V Processor Designed by Undergraduates](https://www.youtube.com/watch?v=8K97ahPecqE). Five students are all from UCAS(**_University of Chinese Academy of Sciences_**).
29
31
30
-
Now the TreeCore has two version: TreeCoreL1(**_TreeCore Learning 1_**) and TreeCoreL2(**_TreeCore Learning 2_**). The TreeCore project is aim to help students to develop a series of riscv processor by step-to-step materials, So not just for high performance. Not like textbooks exhibit the all the knowledges in one time. TreeCore start a very simple model. provide necessary new concepts or knowledge you need to learn.
32
+
### Season 2[**2020.8-2021.x**]: Eleven undergraduates design their own tape-outed processors
33
+
Unlike Season 1, Season 2 had eleven undergraduates from five universities to design processors, and it is the first attempt to promote this project to the other university.
34
+
35
+
### Season 3[**2021.7-2022.1**]: More students(One hundred students), More open source tools(NEMU, difftest, AM...)
36
+
TreeCore project is the achievement of this season. Season 3 now is completed, and the official website is [ysyx.org](https://ysyx.org/).
37
+
38
+
Now the TreeCore has two version: TreeCoreL1(**_TreeCore Learning 1_**) and TreeCoreL2(**_TreeCore Learning 2_**). The TreeCore project aims to help students to learn how to write riscv processors by themselves with **step-to-step materials**. Not like textbooks only exhibit all of concepts in one time, the learn process of TreeCore is incremental. That means TreeCore only provides a very simple model with necessary new knowledges you need to learn first, then add extra codes to modify the whole design.
31
39
32
40
> NOTE: now the TreeCoreL2 is under tape-out phase. The chip debug and test introduction will release soon.
33
41
@@ -93,7 +101,7 @@ To compatible with SoC test, All types of TreeCore have same memory map range:
93
101
## Usage
94
102
adsfadfasdfasf
95
103
### Enviroment Setup
96
-
> NOTE: All of the components are installed under linux operation system. To gurantee the compatibility and stability, I strongly recommend using `ubuntu 20.04 LTS`.
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.
97
105
98
106
First, you need to install verilator, mill and dependency libraries:
99
107
```bash
@@ -102,15 +110,16 @@ $ cd rtl
102
110
$ chmod +x scripts/install.sh
103
111
$ make install
104
112
```
105
-
Then, download and configuare all components from the github:
113
+
Then, download and configuare all components from the github and gitee:
106
114
```bash
107
115
$ chmod +x scripts/setup.sh
108
116
$ make setup
109
117
```
110
-
After that, you need to set the `NEMU_HOME` and `NOOP_HOME` environment variables:
118
+
After that, you need to add the `NEMU_HOME` and `NOOP_HOME` environment variables in sh environment config file:
111
119
```bash
112
-
$ NEMU_HOME=$(pwd)/dependency/NEMU
113
-
$ NOOP_HOME=$(pwd)/dependency
120
+
$ 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:
@@ -130,6 +139,7 @@ $ make menuconfig
130
139
131
140
Usually, 256MB memory address space is enough for simulation. You need to switch into `[Memory - Configuration]` menu and change `[Memory size]` value into `0x10000000` manually as follow picture shows. It can adjust difftest's simulation memory size from 8G to 256MB.
132
141
142
+
> NOTE: In fact, the `Memory size` has been modified to `0x10000000` in `make setup` phase. Now, you only need to confirm it once more time.
0 commit comments