Access Stack Pointer in RiscV Pulp - Printable Version +- PULP Community (https://pulp-platform.org/community) +-- Forum: PULP's Community forum (https://pulp-platform.org/community/forumdisplay.php?fid=1) +--- Forum: PULP General questions (https://pulp-platform.org/community/forumdisplay.php?fid=2) +--- Thread: Access Stack Pointer in RiscV Pulp (/showthread.php?tid=205) |
Access Stack Pointer in RiscV Pulp - RiscV - 08-22-2020 Hi , I am trying C to hex conversion for a simple (addition) program. My disassembly code is as follows: Code: 00010000 <main>: I used elf2hex for getting hex file. Hex files are generated successfully. I am using Riscv Pulppissimo testbench, and using readmemh for reading the generated hex file. My issue is after generating the .vcd file (gtkwave) I am not getting the result of addition. As per the disassembly section the result will go to the stack pointer, But how can I access SP in .vcd file. In my vcd file regfile_alu_wdata loading the input values ie;5 and F but the result getting is 000102CE. I am getting the same result for other input values too....... RE: Access Stack Pointer in RiscV Pulp - RiscV - 08-25-2020 How to add SP registers in testbench module? |