Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12435 Discussions

new component tutorial, byteenable inputs are not t responding

Altera_Forum
Honored Contributor II
784 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
88 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