Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nios II / main.cpp #6

Open
MasterJerryZh opened this issue Dec 30, 2017 · 1 comment
Open

Nios II / main.cpp #6

MasterJerryZh opened this issue Dec 30, 2017 · 1 comment

Comments

@MasterJerryZh
Copy link

MasterJerryZh commented Dec 30, 2017

Hello alfikpl! I hava noticed that "memcpy(dst_ptr, sector_buf, current_size);" in main.cpp line 291! I also viewed the java source code SDGenerator.java. I found the address "dst_ptr" would equal 0xF0000(BIOS) and 0xC0000(VGABIOS) when Nios application was ran. 0xF0000 and 0xC0000 were writed to file sd.dat through SDGenerator.java! Nios II will copy Bios and VGABios from SD card to location that are pointed by 0xF0000 and 0xC0000. SDRAM's address map region is 0x0800_0000-0x0bff_ffff. They are not in SDRAM. So, how can the ao486 run Bios and VGABios? Can it find and run Bios and VGABios at address 0xF0000 and 0xC0000?
Best regards,
Jerry Zh.

@alfikpl
Copy link
Owner

alfikpl commented Dec 30, 2017

Hello MasterJerryZh,

You are correct - the NIOS II data master has the SDRAM on 0x0800_0000, so the Bios and VGABios addresses at 0xF0000 and 0xC0000 are not directly addressable.

I don't remember did I do this on purpose or by accident. I remember that I was experiencing with the address decoding in the Qsys generated modules (nowadays Platform Designer). I was interested what happens to the transactions that miss all entries in the address map of a given Avalon master.

Luckily, in the case of the NIOS II data mater, the transactions that miss all the entries are directed to SDRAM. I checked this today, on the Intel Quartus Prime Lite 17.1.0. I think the same behaviour was manifested in the earlier versions of Quartus.

Best regards,
Aleksander Osman.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants