Sign in

username:

password:



Not a member?

Search Comp.Arch.FPGA



Search tips

fpga by Keywords

Altera | ASIC | CPLD | Cyclone | DCM | DDR | DSP | Ethernet | ISE | JTAG | Linux | LVDS | Microblaze | ML310 | Modelsim | NIOS | OPB | PCI | Quartus | RocketIO | SDRAM | Spartan | Spartan3 | SRAM | Stratix | Verilog | VHDL | Virtex | Virtex-4 | Virtex-II | Xilinx | XST


Ads

See Also

DSPEmbedded SystemsElectronics

Comp.Arch.FPGA | Accessing Bram

There are 6 messages in this thread.

You are currently looking at messages 0 to 6.

Accessing Bram - 2005-05-31 08:17:00

Which C function should I use to perform read or
write into block ram (connected to opb bus with opb bus controller)?

Xio_in8 and Xio_out8 ?

Thanks Marco



Re: Accessing Bram - John Williams - 2005-05-31 19:13:00

Hi Marco,

Marco wrote:
> Which C function should I use to perform read or write into block ram (connected to
opb bus with opb bus controller)?
> 
> Xio_in8 and Xio_out8 ?

Not necessary - just read and write it like normal memory.

Regards,

John
______________________________
Join the blogging team on FPGARelated.com and earn rewards! Details Here.

Re: Accessing Bram - Marco - 2005-06-01 10:06:00

"John Williams"
<j...@itee.uq.edu.au> wrote in message
news:newscache$w5ndhi$t3a$1...@lbox.itee.uq.edu.au...
> Hi Marco,
>
> Marco wrote:
> > Which C function should I use to perform read or write into block ram
(connected to opb bus with opb bus controller)?
> >
> > Xio_in8 and Xio_out8 ?
>
> Not necessary - just read and write it like normal memory.
>
> Regards,
>
> John


Could you explain, please?

Normally, when I write a C program, I create variables... and everything is
stored in memory, but it is implicit.

So, what sohuld I do to read or write into memory?  In what way may I save,
in example a matrix into block ram?

Thanks
Marco



Re: Accessing Bram - Joey - 2005-06-01 13:02:00

You can just make use of pointers and thats easy enough, isn't it?

"Marco" <m...@email.it> schrieb im Newsbeitrag
news:d7kfc5$fup$1...@news.ngi.it...
> "John Williams" <j...@itee.uq.edu.au> wrote in message
> news:newscache$w5ndhi$t3a$1...@lbox.itee.uq.edu.au...
> > Hi Marco,
> >
> > Marco wrote:
> > > Which C function should I use to perform read or write into block ram
> (connected to opb bus with opb bus controller)?
> > >
> > > Xio_in8 and Xio_out8 ?
> >
> > Not necessary - just read and write it like normal memory.
> >
> > Regards,
> >
> > John
>
>
> Could you explain, please?
>
> Normally, when I write a C program, I create variables... and everything
is
> stored in memory, but it is implicit.
>
> So, what sohuld I do to read or write into memory?  In what way may I
save,
> in example a matrix into block ram?
>
> Thanks
> Marco
>
>


______________________________
Join the blogging team on FPGARelated.com and earn rewards! Details Here.

Re: Accessing Bram - Marco - 2005-06-01 14:17:00

"Joey" <j...@kaiserslautern.de> wrote in message
news:d7kpmg$m53$2...@news.uni-kl.de...
>
> You can just make use of pointers and thats easy enough, isn't it?
>
> "Marco" <m...@email.it> schrieb im Newsbeitrag
> news:d7kfc5$fup$1...@news.ngi.it...
> > "John Williams" <j...@itee.uq.edu.au> wrote in message
> > news:newscache$w5ndhi$t3a$1...@lbox.itee.uq.edu.au...
> > > Hi Marco,
> > >
> > > Marco wrote:
> > > > Which C function should I use to perform read or write into block
ram
> > (connected to opb bus with opb bus controller)?
> > > >
> > > > Xio_in8 and Xio_out8 ?
> > >
> > > Not necessary - just read and write it like normal memory.
> > >
> > > Regards,
> > >
> > > John
> >
> >
> > Could you explain, please?
> >
> > Normally, when I write a C program, I create variables... and everything
> is
> > stored in memory, but it is implicit.
> >
> > So, what sohuld I do to read or write into memory?  In what way may I
> save,
> > in example a matrix into block ram?
> >
> > Thanks
> > Marco
> >
> >
>
>

I can use C pointers to point to address space mapped from microblaze?





Re: Accessing Bram - Joey - 2005-06-02 06:07:00

I didn't try it with microblaze. But you should be able to do it. I did it
with my power pc on the BRAM as well as the SDRAM. After all its just
reading and writing a memory location. So it must work with Microblaze as
well :)

"Marco" <m...@email.it> schrieb im Newsbeitrag
news:d7ku3f$kvu$1...@news.ngi.it...
>
> "Joey" <j...@kaiserslautern.de> wrote in message
> news:d7kpmg$m53$2...@news.uni-kl.de...
> >
> > You can just make use of pointers and thats easy enough, isn't it?
> >
> > "Marco" <m...@email.it> schrieb im Newsbeitrag
> > news:d7kfc5$fup$1...@news.ngi.it...
> > > "John Williams" <j...@itee.uq.edu.au> wrote in
message
> > > news:newscache$w5ndhi$t3a$1...@lbox.itee.uq.edu.au...
> > > > Hi Marco,
> > > >
> > > > Marco wrote:
> > > > > Which C function should I use to perform read or write into
block
> ram
> > > (connected to opb bus with opb bus controller)?
> > > > >
> > > > > Xio_in8 and Xio_out8 ?
> > > >
> > > > Not necessary - just read and write it like normal memory.
> > > >
> > > > Regards,
> > > >
> > > > John
> > >
> > >
> > > Could you explain, please?
> > >
> > > Normally, when I write a C program, I create variables... and
everything
> > is
> > > stored in memory, but it is implicit.
> > >
> > > So, what sohuld I do to read or write into memory?  In what way may I
> > save,
> > > in example a matrix into block ram?
> > >
> > > Thanks
> > > Marco
> > >
> > >
> >
> >
>
> I can use C pointers to point to address space mapped from microblaze?
>
>
>
>


______________________________
Join the blogging team on FPGARelated.com and earn rewards! Details Here.