FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > FPGA

FPGA comp.arch.fpga newsgroup (usenet)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-24-2005, 04:00 PM
sjulhes
Guest
 
Posts: n/a
Default simulating code loading in memory and jumping to memory

Hi,

I use EDK/ISE/Modelsim.
Just want to make some tests and learn on this subject, i would like to
create a small system like :
microblaze
external sdram or ddr
uart.

The code I will have is to loop on a xil_printf of hello world on the UART.

So I will generate an elf file to do this.

Secondly, I will write some kind of bootloader in BRAM that will read the
elf file under modelsim and write it into the Sdram or ddr.
Once it is done, I'll jump program to external sdram/ddr to have hello
world running.

What would be the best way to read the .elf file during simulation and write
it to opb/plb sdram/ddr ???
Then what is the best way to jump from internal BRAM execution to external
sdram execution ?

Thanks for your help.



Reply With Quote
  #2 (permalink)  
Old 11-25-2005, 10:29 AM
googlie
Guest
 
Posts: n/a
Default Re: simulating code loading in memory and jumping to memory

Maybe you can you use xmd. Look at the documentation pdf for more
information. I'm a student and I'm also trying to set data on ddr but
i'm using powerpc. Can you help with it?

Reply With Quote
  #3 (permalink)  
Old 11-25-2005, 10:53 AM
sjulhes
Guest
 
Posts: n/a
Default Re: simulating code loading in memory and jumping to memory

I guess we have the same questions !

How to compile soft projects
How to analyze linking, obj files, linkerscripts, elf content ..
Transfering code to external memory
Jump to external memory execution

I'm looking for answers, I have no answers yet !


"googlie" <[email protected]> a écrit dans le message de news:
[email protected] om...
> Maybe you can you use xmd. Look at the documentation pdf for more
> information. I'm a student and I'm also trying to set data on ddr but
> i'm using powerpc. Can you help with it?
>



Reply With Quote
  #4 (permalink)  
Old 11-25-2005, 10:58 AM
googlie
Guest
 
Posts: n/a
Default Re: simulating code loading in memory and jumping to memory

I will contact you if i have further information. But how can you
simple write and read to ddr?

Reply With Quote
  #5 (permalink)  
Old 11-25-2005, 05:38 PM
Guest
 
Posts: n/a
Default Re: simulating code loading in memory and jumping to memory

Hi,
EDK does all this stuff that you want on the background and u
can just keep clicking buttons...Here are the answers to your questions
....

1 ) How to compile soft projects --
I guess you know this..in the EDK GUI, just hit
the applications tab and add a software project (add all the source and
the header files )
The other way is when you create is a simple EDK
7.1 project, it creates two sample Software Projects (TestApp_Memory
and TestApp_Peripheral) ..So you can just replace the the source files
in either of the projects
2) How to analyze linking, obj files, linkerscripts, elf content
...
I dont' know the complete answer to this
question but..I mean you have the source for the Linker Script, and
your own sources.. I dunno if there is any other specific reason that
you need the content of the elf file for.
3) Transferring code to external memory
This is not a big deal at all.. When hit the
applications tab and highlight your software project, there will be an
option which says Generate Linker Script. So just click on that and a
Window will pop up... In that window change all the contents to
DDR_SDRAM ( or whatever your external memory ) ..Before you do this
make sure that you have DDR ( or external memory in your system )
4) Jump to external memory execution
Thats what u do in the Linker Script....


Feel free to e-mail me in case you have any other
questions...
--
Parag

sjulhes wrote:
> I guess we have the same questions !
>
> How to compile soft projects
> How to analyze linking, obj files, linkerscripts, elf content ..
> Transfering code to external memory
> Jump to external memory execution
>
> I'm looking for answers, I have no answers yet !
>
>
> "googlie" <[email protected]> a écrit dans le message de news:
> [email protected] om...
> > Maybe you can you use xmd. Look at the documentation pdf for more
> > information. I'm a student and I'm also trying to set data on ddr but
> > i'm using powerpc. Can you help with it?
> >


Reply With Quote
  #6 (permalink)  
Old 11-25-2005, 05:39 PM
Guest
 
Posts: n/a
Default Re: simulating code loading in memory and jumping to memory

Hi,
Do you want to write to the DDR from any of the Buses (OPB , PLB )
or from the PowerPC

--
Parag

googlie wrote:
> I will contact you if i have further information. But how can you
> simple write and read to ddr?


Reply With Quote
  #7 (permalink)  
Old 11-28-2005, 07:57 AM
sjulhes
Guest
 
Posts: n/a
Default Re: simulating code loading in memory and jumping to memory

Hi,

Have a look to xapp642, it gives some more infomation to undestand what
bootloading is all about !



"googlie" <[email protected]> a écrit dans le message de news:
[email protected] om...
> I will contact you if i have further information. But how can you
> simple write and read to ddr?
>



Reply With Quote
  #8 (permalink)  
Old 11-28-2005, 08:02 AM
sjulhes
Guest
 
Posts: n/a
Default Re: simulating code loading in memory and jumping to memory

Hi,

Thank you for your time.

But I know all this methods, the thing is that I'd like to understand what
is behind all these button clics series !

I have good skills on handling hardware platfoms with EDK, I'm fine with
writing low level C routines, I have some knowledges about software basics
notions like compiling, linking, linker scripts, so I want to learn about it
!

The fact is I don't know from where to start and I can"t get to find a
complete, simple, example I could analyze !

I've some more information in XAPP642, so I'm studying this.

Thanks.


<[email protected]> a écrit dans le message de news:
[email protected] com...
Hi,
EDK does all this stuff that you want on the background and u
can just keep clicking buttons...Here are the answers to your questions
....

1 ) How to compile soft projects --
I guess you know this..in the EDK GUI, just hit
the applications tab and add a software project (add all the source and
the header files )
The other way is when you create is a simple EDK
7.1 project, it creates two sample Software Projects (TestApp_Memory
and TestApp_Peripheral) ..So you can just replace the the source files
in either of the projects
2) How to analyze linking, obj files, linkerscripts, elf content
...
I dont' know the complete answer to this
question but..I mean you have the source for the Linker Script, and
your own sources.. I dunno if there is any other specific reason that
you need the content of the elf file for.
3) Transferring code to external memory
This is not a big deal at all.. When hit the
applications tab and highlight your software project, there will be an
option which says Generate Linker Script. So just click on that and a
Window will pop up... In that window change all the contents to
DDR_SDRAM ( or whatever your external memory ) ..Before you do this
make sure that you have DDR ( or external memory in your system )
4) Jump to external memory execution
Thats what u do in the Linker Script....


Feel free to e-mail me in case you have any other
questions...
--
Parag

sjulhes wrote:
> I guess we have the same questions !
>
> How to compile soft projects
> How to analyze linking, obj files, linkerscripts, elf content ..
> Transfering code to external memory
> Jump to external memory execution
>
> I'm looking for answers, I have no answers yet !
>
>
> "googlie" <[email protected]> a écrit dans le message de news:
> [email protected] om...
> > Maybe you can you use xmd. Look at the documentation pdf for more
> > information. I'm a student and I'm also trying to set data on ddr but
> > i'm using powerpc. Can you help with it?
> >




Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: ChipScope Pro Loading Memory Guy Eschemann FPGA 1 08-05-2004 10:41 PM
ChipScope Pro Loading Memory Vivek Joshi FPGA 2 08-04-2004 11:12 PM
Re: Loading data into memory from a file Steven Sharp Verilog 0 07-24-2003 10:49 PM
Re: Loading data into memory from a file Jim Wu Verilog 0 07-24-2003 09:39 PM
Re: Loading data into memory from a file Kevin Neilson Verilog 0 07-24-2003 09:12 PM


All times are GMT +1. The time now is 08:28 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved