Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
726 Views

new component tutorial, byteenable inputs are not t responding

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 I
30 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.

Reply