Forum Discussion
Altera_Forum
Honored Contributor
17 years agoCustom Component Help
Hi all, I'm sorry if this question if too broad, but I'm a beginner to custom components and I need some help. My final goal is to have a custom component in SOPC builder, that performs the ...
Altera_Forum
Honored Contributor
17 years ago<div class='quotetop'>QUOTE </div>
--- Quote Start --- Just make your readdata and writedata signals 32 bits. It doesn't matter if you are only using bits 0-7. You can then ignore the byteenable and avoid the 3 "extra" non-functional read/writes.[/b] --- Quote End --- That makes sense on the hardware side, but in the Nios IDE I don't see how it would work. When I call the IOWR macro for example, doesn't the input data need to match up to the bit width of the component data bus? How would I use the IOWR/IORD functions to use only the lowest byte of the 4 byte value?