1/1

|
2 processor for orpsoc
by technology on Feb 15, 2010 |
technology
Posts: 25 Joined: Dec 31, 2009 Last seen: May 8, 2010 |
||
|
Hello
I want to connect another processor to orpsoc. This processor must execute a program different from that performed by the first processeur. So i added a processor (master 4) and an other ram (slave 4: Since I will not use the UART) on the orpsoc_top. But when I simulate the design, the second processor has as input the data stored in the first RAM. so it does not execute its program and also it does not properly implemented the first program in the face as he entered the hex code of the program( data stored in the first RAM) what I have to change for the efficient execution of both programs?? |
|||
|
RE: 2 processor for orpsoc
by jt_eaton on Feb 16, 2010 |
jt_eaton
Posts: 88 Joined: Aug 18, 2008 Last seen: Feb 9, 2012 |
||
|
Hello
I want to connect another processor to orpsoc. This processor must execute a program different from that performed by the first processeur. So i added a processor (master 4) and an other ram (slave 4: Since I will not use the UART) on the orpsoc_top. But when I simulate the design, the second processor has as input the data stored in the first RAM. so it does not execute its program and also it does not properly implemented the first program in the face as he entered the hex code of the program( data stored in the first RAM) what I have to change for the efficient execution of both programs?? ----------------------------------------------- What you need to do is to tell one processor to use the first ram and the other processor to use the second one. the or1200 can change it's boot address based on the `define of OR1200_SR_EPH_DEF. set to 0 will boot from 0x0000_0000 and 1 boots from 0xf000_0000. You will either have to preprocess the or1200 files into two versions or else port that signal out to the top and set it to a 1 or a 0 for each processor. You may have to adjust the memory map since the oprsocv2 has ram at both locations that is currently in use. |
|||
|
RE: 2 processor for orpsoc
by technology on Feb 16, 2010 |
technology
Posts: 25 Joined: Dec 31, 2009 Last seen: May 8, 2010 |
||
|
Hello
I want to connect another processor to orpsoc. This processor must execute a program different from that performed by the first processeur. So i added a processor (master 4) and an other ram (slave 4: Since I will not use the UART) on the orpsoc_top. But when I simulate the design, the second processor has as input the data stored in the first RAM. so it does not execute its program and also it does not properly implemented the first program in the face as he entered the hex code of the program( data stored in the first RAM) what I have to change for the efficient execution of both programs?? ----------------------------------------------- What you need to do is to tell one processor to use the first ram and the other processor to use the second one. the or1200 can change it's boot address based on the `define of OR1200_SR_EPH_DEF. set to 0 will boot from 0x0000_0000 and 1 boots from 0xf000_0000. You will either have to preprocess the or1200 files into two versions or else port that signal out to the top and set it to a 1 or a 0 for each processor. You may have to adjust the memory map since the oprsocv2 has ram at both locations that is currently in use. Yes the problem is how to tell each processor using its own memory. What I understood from your answer that i have just need to specify to the first processor that OR1200_SR_EPH_DEF = 1 and for the other processor OR1200_SR_EPH_DEF = 0. Is this is right??? |
|||
|
RE: 2 processor for orpsoc
by jt_eaton on Feb 17, 2010 |
jt_eaton
Posts: 88 Joined: Aug 18, 2008 Last seen: Feb 9, 2012 |
||
|
[
Yes the problem is how to tell each processor using its own memory. What I understood from your answer that i have just need to specify to the first processor that OR1200_SR_EPH_DEF = 1 and for the other processor OR1200_SR_EPH_DEF = 0. Is this is right??? Yes, This means that you need two copies of the or1200_defines.v file and you must run them through the verilog preprocessor to create two different or1200 files. The module names must be different to prevent name collisions. |
|||
|
RE: 2 processor for orpsoc
by technology on Feb 18, 2010 |
technology
Posts: 25 Joined: Dec 31, 2009 Last seen: May 8, 2010 |
||
|
[
Yes the problem is how to tell each processor using its own memory. What I understood from your answer that i have just need to specify to the first processor that OR1200_SR_EPH_DEF = 1 and for the other processor OR1200_SR_EPH_DEF = 0. Is this is right??? Ok thanks for your help |
|||
1/1

