Closed roman012285 closed 1 week ago
Hi Roman,
here is the line of code we added to the exampl.c file:
Here is the code in binary and the log of the registers:
How you prove that it works, I dont see it from the tracker.
here i opened the tracker file in two windows the line is 17c and we can see that prior to the reg x16 was zero after it has 0xf+0xa+1 = 0x1a
Great Job!
example.c
and examine themain
function and howmini_core
performs ittarget/mini_core
directoryadd_inc
for exampleadd_inc x1, x2, x3 => x1 = x1 + x2 + 1
use inline assembly//asm(".word 0xf4f757a3" : /* outputs / : / inputs / : / clobbers */);
./build.py -dut mini_core -test example -app
- compile compile.c test./build.py -dut mini_core -test example -app -hw -sim
- compile the design (-hw flag) + simulate and elaboration (-sim flag)