Forum Discussion
Altera_Forum
Honored Contributor
16 years agoInterfacing Custom Component
Recently I built custom component of SDCARD. What I'm trying to make is an easy interfacing with the SDCARD module I built based on VHDL. I want to read or write from the SDCARD Mem only by usin...
Altera_Forum
Honored Contributor
16 years agoI think you're heading down the wrong path here. Let's go back to basics.
1 - Your VHDL component. It has a data width of 8 bits correct?. Please read section 3.6.1 of the following document: http://www.altera.com/literature/manual/mnl_avalon_spec.pdf My recommendation is that you make your component have a 32-bit data width regardless of the fact that you are only going to use 8 bits. 2 - Why are you using the PIO macros for acessing your component? I recommend you use the IOWR and IORD macro directly. Start with these. If this doesn't fix your problem, let me know. Jake