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 | What does nios-run do?

There are 6 messages in this thread.

You are currently looking at messages 0 to 6.

What does nios-run do? - cruzin - 2004-01-15 02:20:00

Hello,

I can download a program to memory using "nios-run my_prog.srec" and
it works fine.

However, when I write the program into the same memory manually (ie.
memory fill command), nios will not wrong the program properly.

I verified that both methods write exactly the same program bytes into
memory, but nios-run does something with the memory AFTER the program
end. This must be the source of my problems. Why are bytes changed
after the end of the program?

I verified every byte up until the last byte written as defined by the
S-Record.

Any ideas on what steps nios-run goes through?

Help is greatly appreciated.
______________________________
Join the blogging team on FPGARelated.com and earn rewards! Details Here.



Re: What does nios-run do? - fabbl - 2004-01-15 13:25:00

What are you talking about?

"cruzin" <c...@hotmail.com> wrote in message
news:7...@posting.google.com...
> Hello,
>
> I can download a program to memory using "nios-run my_prog.srec" and
> it works fine.
>
> However, when I write the program into the same memory manually (ie.
> memory fill command), nios will not wrong the program properly.
>
> I verified that both methods write exactly the same program bytes into
> memory, but nios-run does something with the memory AFTER the program
> end. This must be the source of my problems. Why are bytes changed
> after the end of the program?
>
> I verified every byte up until the last byte written as defined by the
> S-Record.
>
> Any ideas on what steps nios-run goes through?
>
> Help is greatly appreciated.



Re: What does nios-run do? - 2004-01-16 06:37:00

c...@hotmail.com (cruzin) writes:

> I can download a program to memory using "nios-run my_prog.srec" and
> it works fine.
> 
> However, when I write the program into the same memory manually (ie.
> memory fill command), nios will not wrong the program properly.

Maybe a stupid question: How do you run your manually entered program?
Are you using the go (G) command in germs? Can you use go to *re-run*
the downloaded srec file?

Petter
-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
______________________________
Join the blogging team on FPGARelated.com and earn rewards! Details Here.

Re: What does nios-run do? - cruzin - 2004-01-18 00:20:00

Hi Petter,

I wrote a program to convert an Srec file to a binary file and then
downloaded this over a PCI/Avalon bridge.

I have found my problem, which was that I assumed the Srec file was
always writing a contiguous memory region, when in fact sometimes
addresses are skipped, presumably for alignment optimization.


> c...@hotmail.com (cruzin) writes:
> 
> > I can download a program to memory using "nios-run my_prog.srec" and
> > it works fine.
> > 
> > However, when I write the program into the same memory manually (ie.
> > memory fill command), nios will not wrong the program properly.
> 
> Maybe a stupid question: How do you run your manually entered program?
> Are you using the go (G) command in germs? Can you use go to *re-run*
> the downloaded srec file?
> 
> Petter
______________________________
Join the blogging team on FPGARelated.com and earn rewards! Details Here.

Re: What does nios-run do? - Nial Stewart - 2004-01-18 07:04:00

cruzin <c...@hotmail.com> wrote in message
news:7...@posting.google.com...
> Hi Petter,
>
> I wrote a program to convert an Srec file to a binary file and then
> downloaded this over a PCI/Avalon bridge.
>
> I have found my problem, which was that I assumed the Srec file was
> always writing a contiguous memory region, when in fact sometimes
> addresses are skipped, presumably for alignment optimization.

If you have a look at the srec spec, I'm fairly sure the
first data after the 's' on every line is the address that
line starts at.


Nial

------------------------------------------------
Nial Stewart Developments Ltd
FPGA and High Speed Digital Design
Cyclone based 'Easy PCI' dev board
www.nialstewartdevelopments.co.uk





Re: What does nios-run do? - cruzin - 2004-01-18 18:23:00

Hi Nial,

Yes you are correct.

When I wrote my Srec-converter program, I looked at a nios-built Srec
file, and all records were contiguous. Later on, I realized in some
programs, nios-build will skip bytes here and there. Live and learn.

> cruzin <c...@hotmail.com> wrote in message
> news:7...@posting.google.com...
> > Hi Petter,
> >
> > I wrote a program to convert an Srec file to a binary file and then
> > downloaded this over a PCI/Avalon bridge.
> >
> > I have found my problem, which was that I assumed the Srec file was
> > always writing a contiguous memory region, when in fact sometimes
> > addresses are skipped, presumably for alignment optimization.
> 
> If you have a look at the srec spec, I'm fairly sure the
> first data after the 's' on every line is the address that
> line starts at.
> 
> 
> Nial
> 
> ------------------------------------------------
> Nial Stewart Developments Ltd
> FPGA and High Speed Digital Design
> Cyclone based 'Easy PCI' dev board
> www.nialstewartdevelopments.co.uk
______________________________
Join the blogging team on FPGARelated.com and earn rewards! Details Here.