Skip to content

Commit 9919d16

Browse files
authored
Merge pull request #87 from FPGA-MAFIA/roman_branch
rename core_rrv to big_core
2 parents 98d2747 + e533b00 commit 9919d16

File tree

6 files changed

+24
-24
lines changed

6 files changed

+24
-24
lines changed

docs/IPs/vga.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ unsigned int ASCII_BOTTOM[97] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
100100

101101

102102
### Running simple vga test
103-
- We will run it on `core_rrv` core. You can run it on any core that have VGA support.
104-
- Open or add the following test to your core `/verif/core_rrv/tests/alive_vga.c`.
103+
- We will run it on `big_core` core. You can run it on any core that have VGA support.
104+
- Open or add the following test to your core `/verif/big_core/tests/alive_vga.c`.
105105
```
106106
107107
#include "big_core_defines.h"
@@ -121,11 +121,11 @@ int main() {
121121
```
122122

123123
- Please make sure to add `print_vga_screen task` to print the screen.
124-
You can use the `/verif/core_rrv/tb/core_rrv_vga_tb.sv` test as a template.
125-
Do not forget to change the link to new TB in `/verif/core_rrv/tb/core_rrv_verif_list.f` file.
124+
You can use the `/verif/big_core/tb/big_core_vga_tb.sv` test as a template.
125+
Do not forget to change the link to new TB in `/verif/big_core/tb/big_core_verif_list.f` file.
126126

127-
- run `/.build -dut core_rrv -test alive_vga -app -sim -gui`.
128-
- You should see the output in `/target/core_rrv/test/alive_vga/screen.log` file.
127+
- run `/.build -dut big_core -test alive_vga -app -sim -gui`.
128+
- You should see the output in `/target/big_core/test/alive_vga/screen.log` file.
129129
- The content of that file will be:
130130
![vga_screen_shot.png](/snapshots/vga_screen_shot.png)
131131

docs/build_script/mafia_scripts.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ The `-yml` flag is used to specify the name of the test file. In this case, it i
1515
- This script is used to generate a list of parameters for a specific core inside `verif/<core_name>` directory. The list of the parameters will be located in `/target` directory.
1616
For example:
1717
```
18-
./scripts/gen_parameter_list.py core_rrv
18+
./scripts/gen_parameter_list.py big_core
1919
```
20-
Will generate file name `core_rrv_parameter_list.csv` in `/target`
20+
Will generate file name `big_core_parameter_list.csv` in `/target`
2121

2222
### ovrd_params.py
2323
- This script overrides the default parameters of a specific core. The override parameters will be located in `/verif/<core_name>` directory.
2424
- The list of the parameters we wish to override and their new values will be located in `/scriprs/ovrd_params` directory.
25-
For example, assume we would like to override the default parameters of `core_rrv` core. We will need to create a file named `new_params_list.csv` in `/scripts/ovrd_params` directory. The file will contain the list of the parameters we wish to override and their new values and then run the command
25+
For example, assume we would like to override the default parameters of `big_core` core. We will need to create a file named `new_params_list.csv` in `/scripts/ovrd_params` directory. The file will contain the list of the parameters we wish to override and their new values and then run the command
2626
```
27-
./scripts/ovrd_params.py -dut core_rrv -ovrd_file new_params_list
27+
./scripts/ovrd_params.py -dut big_core -ovrd_file new_params_list
2828
```
2929
- Suppose we want to override `RF_NUM_MSB` parameter, then the format of `new_params_list.csv` file will be:
3030
```

docs/rvc/big_core/csr_registers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ For more information about the CSR read/write only instructions, refer to the un
150150
- In our implementation we are using the CSR register `scratchpad_csr` which address is equal to 0x009. The compiler change its name to `vxsat` as described in the privileged spec, chapter 2. Please do not worry about the names of the CSR registers, you may play with those addresses as you wish and examine `_elf.txt` file to see the changes.
151151
Make sure to supply the correct address of the CSR as defined in `t_csr_addr` enumerator in the big core package file.
152152

153-
- **For more instructions using asm volatile, please go to `/verif/core_rrv/test/alive_csr.c`, We suggest to compile the file and look at the `_elf.txt` file to see the generated instructions.**
153+
- **For more instructions using asm volatile, please go to `/verif/big_core/test/alive_csr.c`, We suggest to compile the file and look at the `_elf.txt` file to see the generated instructions.**
154154

155155
### CSR instructions implemented in the big core
156156
- CSR control signals are generated in the control unit of the big core. The following code snippet shows the CSR control signals generation.
@@ -170,11 +170,11 @@ assign CsrInstQ101H.csr_imm_bit = InstructionQ101H[14];
170170
- CSR register defined in the core package file under `t_csr_addr` enumerator which includes all the CSR addresses used in the core and the registers them self in the `t_csr` struct
171171

172172
### PMON measurments
173-
note: The following csr's defined in `source/core_rrv` core.
173+
note: The following csr's defined in `source/big_core` core.
174174
- Please refer to [pmon link](/docs/rvc/big_core/pmon.md).
175175

176176
### Custom CSR's
177-
note: The following csr's defined in `source/core_rrv` core.
177+
note: The following csr's defined in `source/big_core` core.
178178
- timer interrupt exception csr's:
179179
- `csr_custom_mtime` - Used to measure time of our system. This csr is read only from software and can be updated only in HW. Each clock it decrements by one. Used only in machine mode.
180180
- `csr_cutome_mtimecmp` - This csr is RW csr and used for comparison with `custom_mtime`. We use it in Timer interrupt exception.

docs/rvc/big_core/exceptions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ Illegal instruction is a synchronous exception because its origin comes from the
3131
- Compiler errors (very rare but possible).
3232

3333
### Cases in our core
34-
For more details, please refer to `/source/core_rrv/illegal_instruction.vh`
34+
For more details, please refer to `/source/big_core/illegal_instruction.vh`
3535
- Some of the `Funct7` fields in R-type instructions do not zero
3636
- `Funct3` do not match the instruction. For example we try to execute S-type instruction and `Funct3 = 111`.
3737
- Un recognized OpCode that not supported by the core or not allowed by the spec.
3838

3939
### Illegal Instruction Generation
40-
- We use the test `/verif/core_rrv/alive_illegal.c`.
40+
- We use the test `/verif/big_core/alive_illegal.c`.
4141
- We try to create an instruction with illegal `FUCT7`, we generate `slli` with funct7 = 0x7f instead of 0x0
4242
```
4343
// This instruction is trying to generate slli instruction with illegal FUNCT7.

docs/rvc/big_core/pmon.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ The same goes for `instret` and `instreth` which are named `CSR_INSTRET_LOW` and
2323
- After we calculate the number of valid instructions and clock cycles, we can calculate the CPI and IPC. The CPI is calculated by dividing the number of clock cycles by the number of instructions. The IPC is calculated by dividing the number of instructions by the number of clock cycles.
2424

2525
### realistic example
26-
- The task that calculates the CPI and IPC is located at the `verif/core_rrv/tb` folder[^2]
27-
- We run the following test named `alive.c` on the core_rrv with 6 pipeline stages:
26+
- The task that calculates the CPI and IPC is located at the `verif/big_core/tb` folder[^2]
27+
- We run the following test named `alive.c` on the big_core with 6 pipeline stages:
2828
```
2929
int sum(int x, int y){
3030
return x + y;

docs/rvc/core_verification/checker_tasks.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,40 +73,40 @@ The tasks in this file keep a record of all the information stored in the regist
7373
# rf_write_history size = 45
7474
# >> rf_write_history[0] Mismatch!!
7575
# ** Error: ERROR: rf_write_history mismatch
76-
# Time: 730 ps Scope: big_core_rrv_tb.di_register_write File: ../../../verif/big_core_rrv/tb/mini_core_tasks.vh Line: 84
76+
# Time: 730 ps Scope: big_big_core_tb.di_register_write File: ../../../verif/big_big_core/tb/mini_core_tasks.vh Line: 84
7777
# ref_rf_write_history[0] = {time: 150, Pc: 00000014, RegDst: 1, Data: 00000000}
7878
# rf_write_history [0] = {time: 200, Pc: 00000014, RegDst: 1, Data: 00000001}
7979
# >> rf_write_history[1] Mismatch!!
8080
# ** Error: ERROR: rf_write_history mismatch
81-
# Time: 730 ps Scope: big_core_rrv_tb.di_register_write File: ../../../verif/big_core_rrv/tb/mini_core_tasks.vh Line: 84
81+
# Time: 730 ps Scope: big_big_core_tb.di_register_write File: ../../../verif/big_big_core/tb/mini_core_tasks.vh Line: 84
8282
# ref_rf_write_history[1] = {time: 160, Pc: 00000018, RegDst: 2, Data: 00000000}
8383
# rf_write_history [1] = {time: 210, Pc: 00000018, RegDst: 2, Data: 00000002}
8484
# >> rf_write_history[2] Mismatch!!
8585
# ** Error: ERROR: rf_write_history mismatch
86-
# Time: 730 ps Scope: big_core_rrv_tb.di_register_write File: ../../../verif/big_core_rrv/tb/mini_core_tasks.vh Line: 84
86+
# Time: 730 ps Scope: big_big_core_tb.di_register_write File: ../../../verif/big_big_core/tb/mini_core_tasks.vh Line: 84
8787
# ref_rf_write_history[2] = {time: 170, Pc: 0000001c, RegDst: 3, Data: 00000000}
8888
# rf_write_history [2] = {time: 220, Pc: 0000001c, RegDst: 3, Data: 00000002}
8989
# >> rf_write_history[3] Mismatch!!
9090
# ** Error: ERROR: rf_write_history mismatch
91-
# Time: 730 ps Scope: big_core_rrv_tb.di_register_write File: ../../../verif/big_core_rrv/tb/mini_core_tasks.vh Line: 84
91+
# Time: 730 ps Scope: big_big_core_tb.di_register_write File: ../../../verif/big_big_core/tb/mini_core_tasks.vh Line: 84
9292
# ref_rf_write_history[3] = {time: 180, Pc: 00000020, RegDst: 4, Data: 00000000}
9393
# rf_write_history [3] = {time: 230, Pc: 00000020, RegDst: 4, Data: 00000002}
9494
# >> rf_write_history[4] Mismatch!!
9595
# ** Error: ERROR: rf_write_history mismatch
96-
# Time: 730 ps Scope: big_core_rrv_tb.di_register_write File: ../../../verif/big_core_rrv/tb/mini_core_tasks.vh Line: 84
96+
# Time: 730 ps Scope: big_big_core_tb.di_register_write File: ../../../verif/big_big_core/tb/mini_core_tasks.vh Line: 84
9797
# ref_rf_write_history[4] = {time: 190, Pc: 00000024, RegDst: 5, Data: 00000000}
9898
# rf_write_history [4] = {time: 240, Pc: 00000024, RegDst: 5, Data: 00000002}
9999
# >> rf_write_history[5] Mismatch!!
100100
# ** Error: ERROR: rf_write_history mismatch
101-
# Time: 730 ps Scope: big_core_rrv_tb.di_register_write File: ../../../verif/big_core_rrv/tb/mini_core_tasks.vh Line: 84
101+
# Time: 730 ps Scope: big_big_core_tb.di_register_write File: ../../../verif/big_big_core/tb/mini_core_tasks.vh Line: 84
102102
# ref_rf_write_history[5] = {time: 200, Pc: 00000028, RegDst: 6, Data: 00000000}
103103
# rf_write_history [5] = {time: 250, Pc: 00000028, RegDst: 6, Data: 00000002}
104104
.
105105
.
106106
.
107107
# >> rf_write_history[44] Mismatch!!
108108
# ** Error: ERROR: rf_write_history mismatch
109-
# Time: 730 ps Scope: big_core_rrv_tb.di_register_write File: ../../../verif/big_core_rrv/tb/mini_core_tasks.vh Line: 84
109+
# Time: 730 ps Scope: big_big_core_tb.di_register_write File: ../../../verif/big_big_core/tb/mini_core_tasks.vh Line: 84
110110
# ref_rf_write_history[44] = {time: 630, Pc: 00000188, RegDst: 2, Data: 0001f000}
111111
# rf_write_history [44] = {time: 720, Pc: 00000189, RegDst: 2, Data: 0001f004}
112112
# rf_write_history size match

0 commit comments

Comments
 (0)