



how to get the .vmem file
by felix0305 on Nov 5, 2014 |
felix0305
Posts: 5 Joined: Jul 12, 2013 Last seen: Nov 5, 2014 |
||
Hi~, I got a problem when I run programs on OrpSoC.
When I run TEST program on OrpSoC, I can get the or1200-cbasic.vmem file from "orpsocv2/sw/tests/or1200/sim" folader after make-file. And now , i wanted to get the .vmem file according to my test program.
I tried to replace the contents of or1200-cbasic.c file with my test program. Unfortunately, it reported errors when make-file :
//-------------------------------------------------------------------------------------------------------//
/tmp/ccEkn6In.o: In function `main':
/home/openrisc/soc-design/orpsocv2/sw/tests/or1200/sim/or1200-cbasic.c:21: undefined reference to `fopen'
/home/openrisc/soc-design/orpsocv2/sw/tests/or1200/sim/or1200-cbasic.c:26: undefined reference to `fputs'
/home/openrisc/soc-design/orpsocv2/sw/tests/or1200/sim/or1200-cbasic.c:27: undefined reference to `fputc'
/home/openrisc/soc-design/orpsocv2/sw/tests/or1200/sim/or1200-cbasic.c:29: undefined reference to `fputc'
collect2: ld returned 1 exit status
make[1]: *** [or1200-cbasic.elf] Error 1
make[1]: Leaving directory `/home/openrisc/soc-design/orpsocv2/sw/tests/or1200/sim'
make: *** [/home/openrisc/soc-design/orpsocv2/sim/run/../../sw/tests/or1200/sim/or1200-cbasic.vmem] Error 2
//--------------------------------------------------------------------------------------------------------//
So, can anybody help me!
//--------------------------------------------------------------------------------------------------------//
my test program : matrix multiplication and write the result to the outputfile.
//--------------------------------------------------------------------------------------------------------//
#include
#include
int main(int argc, char* argv[]){
int ma[4][4] = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16};
int mb[4][4] = {1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4};
int mresult[4][4];
int i,j;
for(i=0; i
|



