Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Discussions

Write to Avalon error

Altera_Forum
Honored Contributor II
1,011 Views

Hi, i cannot find where is mistake, if i use this: 

 

IOWR(0x11020,0,0x01); 

for(i=0;i<100000;i++); 

IOWR(0x11024,0,0x01); 

for(i=0;i<100000;i++); 

IOWR(0x11028,0,0x01); 

for(i=0;i<100000;i++); 

IOWR(0x1102C,0,0x01); 

 

everything is ok, but if i use this: 

 

IOWR(MYCUSTOM_0_BASE,0,0x01); 

for(i=0;i<100000;i++); 

IOWR(MYCUSTOM_0_BASE,1,0x01); 

for(i=0;i<100000;i++); 

IOWR(MYCUSTOM_0_BASE,2,0x01); 

for(i=0;i<100000;i++); 

IOWR(MYCUSTOM_0_BASE,3,0x01); 

 

MYCUSTOM_0_BASE is 0x11020, so it doesnt work. 

 

What is difference? Any suggestions? 

 

Vaclav
0 Kudos
0 Replies
Reply