Thursday, May 26, 2011

Multiple Processor Running In a Single Memory

How to run multiple processor from a single memory ??

If your memory bandwidth allows you to share memory b/w two processor, we can achieve this w/o much difficult.

Concept behind sharing memory for processor

For Example, we have two processor & want to run in a single memory & Total memory address area is 0x0000_0000 to 0x4FFF_FFFF

  1. Split memory address area to two (eg: 0x0000_0000 to 2FFF_FFFF and 0x3000_00000 to 0x4FFF_FFFF)
  2. Load applications to base these base address(0x0000_0000 and 0x3000_0000)
  3. Make processors reset vector to these base address
  4. Reset the processor

It should work.

In case of Xilinx FPGA
  1. Design a dual processor reference design
  2. Create application for both processor
  3. Open lscript.ld file change the Base address of application to differrent area
  4. Build & generate elf
  5. Run the applications w/o resetting the entire system.

You can see the outputs in your terminal

Note:
  • Make sure that there is enough memory band width available in your system to run both application at the same time.
  • Its only possible if you have Multi port DDR controller
  • Its not possible to use a single DDR memory if you are going to use second memory outside the FPGA (Only Possible to use multiple processor in a single FPGA/SoC with multi port DDR controller)

1 comment:

  1. Nice posting.thanks for sharing the nice information.I read the full and this blog provide the good information and i recommend this blog to my friends and they will benefited from this blog.

    electronic board design

    ReplyDelete