Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12604 Discussions

new component tutorial, byteenable inputs are not t responding

Altera_Forum
Honored Contributor II
919 Views

HI, 

 

 

I practiced the tutorial named Making Qsys Components, and have questions regarding the byteenable. 

 

(linked it following line) 

ftp://ftp.altera.com/up/pub/altera_material/12.0/tutorials/making_qsys_components.pdf 

 

how do I address(controll) the byteenable inputs ? 

 

i programed my DE2-115 board according to the manual, and used eclipse to test the resolutes. 

i used the function : 

IOWR_16DIRECT(REG16_AVALON_INTERFACE_0_BASE, 0, 0x2222); 

to write to the register , 

i changed the address (base + offset of 0,1,2,3,4) to control byteenable but it seems that bouth bytes are enabled all of the time (until the address gets to base addres +offset of 4)  

if i would like to disenable 1 of the bytes what should i do? 

 

 

 

 

 

thanks in advance 

Yakir
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
223 Views

Is you peripheral 16-bit data wide? You should use IOWR_8DIRECT() to access individual bytes, or use a unsigned char or char pointer with cache bypassing.

0 Kudos
Reply