



OR1200 Little endian
by sudhanshubillore on Feb 8, 2014 |
sudhanshubillore
Posts: 16 Joined: Aug 10, 2012 Last seen: Apr 18, 2023 |
||
Hi everyone,
I am implementing little endian OR1200 processor. Has any body already worked on this??? Please let me know. I have implemented 4-way set associative cache architecture of OR1200 processor. Now want to work on processor side. Thanks. --Sudhanshu Billore |
RE: OR1200 Little endian
by Kuoping on Feb 8, 2014 |
Kuoping
Posts: 41 Joined: Mar 27, 2009 Last seen: May 25, 2021 |
||
Hi sudhanshubillore,
http://opencores.org/forum,OpenRISC,0,5019 I had test it on the FPGA, and it work fines at FreeRTOS with USB, Ethernet MAC, and lwIP. |
RE: OR1200 Little endian
by Kuoping on Feb 8, 2014 |
Kuoping
Posts: 41 Joined: Mar 27, 2009 Last seen: May 25, 2021 |
||
BTW, the previous of gcc patch do not deal with 'long long' type properly. I will post the patch latter.
|
RE: OR1200 Little endian
by sudhanshubillore on Mar 10, 2014 |
sudhanshubillore
Posts: 16 Joined: Aug 10, 2012 Last seen: Apr 18, 2023 |
||
Thank you for your support. I used patches sent by you & edited accordingly.
In cpu.v file you have mentioned assign little_endian = sr[`OR1200_SR_LEE]; In monitor.v I wrote a logic : always @(little_endian) begin if(little_endian==1'b1) $display("LITTLE_ENDIAN IS ENABLED"); else $display("BIG_ENDIAN IS ENABLED"); end While running simulations I got message like "BIG_ENDIAN IS ENABLED". So my question is, are there any other software changes which you haven't mentioned? How did you make sure that processor is running in little endian format? When I tried giving assign little_endian = 1'b1; explicitly so test case got failed. I am running "vmlinux" test case to verify. I hope I am clear. Thank you. |
RE: OR1200 Little endian
by sudhanshubillore on Mar 11, 2014 |
sudhanshubillore
Posts: 16 Joined: Aug 10, 2012 Last seen: Apr 18, 2023 |
||
Hi,
In the defines_patch.txt file you have given steps to be followed.
When I am running command "make OR32LE=1 rtl-tests MGC_NO_VOPT=1". I am getting an error :
cc1: unrecognized command line option "-mlittle-endian"
bootrom.o (error1)
I don't the reason. "-mlittle-endian" this is defined in Makefile.inc (check orpsocv2.patch)
Please help.
Thank you.
Waiting for reply.
|
RE: OR1200 Little endian
by Kuoping on Mar 11, 2014 |
Kuoping
Posts: 41 Joined: Mar 27, 2009 Last seen: May 25, 2021 |
||
Hi, you need to apply the patch binutils-2.20.1.patch, gcc-4.5.1.patch, and newlib-1.18.0.patch for GNU toolchains. It defines new options for little/big-endian definition.
|



