Forum Discussion
Why are you trying to connect individual signals? Just add the RAM as a component in Platform Designer and connect it to the h2f interface.
- nelky1 year ago
Occasional Contributor
Hi sstrell,
Thanks for coming back to me.
I did not connect individual signals.
Below shows my connection between my HPS' h2f_axi_master and on-chip memory II's s2. There is no problem with it.
The problem comes when you write the code.
If you open up the on-chip memory II, you will see these signals,
When you do the coding and if you want to, say read, you need to provide read2 signal with a high signal and also you byteenable2 signanls with high (depending which byte you want to read) before you can, actually, read.
read2 <= '1';
byteenable <= "1111"; -- assuming I wan to read all the 4 bytes
address2 <= "00 0000 0000 0000 1111"; -- assuming I want to read address 0x000F
readbuff <= readdata2; -- assuming readbuff is declared as signal readbuff : std_logic_vector (31 downto 0)
As you can see here, byteenable and read2 needs to be controlled by some pins at HPS's side.
So, which pins of HPS are controlling these byteenable and read2?
Regards
- sstrell1 year ago
Super Contributor
I don't understand. You're using the HPS so you should be using higher-level code (like C using the macros created when you generate the Platform Designer system) to access the RAM. Where are you still writing HDL code for this?