~ruther/verilog-riscv-semestral-project

ref: 7d544e62c57a7e944d1572d147f7b271333a75aa verilog-riscv-semestral-project/programs/add.c -rwxr-xr-x 171 bytes
7d544e62 — Rutherther chore: pass in full trace file instead of program name 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
int add(int a, int b)
{
    return a + b;
}

void main()
{
    int a = 20;
    int b = 30;
    int c = add(a, b);

    int* result_address = 0;
    *result_address = c;
}