I've been working with a project regarding an SRAM Controller in Verilog. As you can see, my controller should include those blocks. I've written some Verilog Code and right now I'm trying to test it, but I have two doubts mainly:
My professor told me that the address line should be 32 bit, exactly like the data that I should provide to the SRAM when it comes to write or read operation, but the SRAM module has the address declared with 10 bits. Can anyone explain me why? And where should I change the width of the address in the Verilog Code?
The other doubt is: since this is an AHB-lite interface, how can I tell the arbitration block what happens when I have both requests coming from the two slaves and it is executed the first one and then the second? Like, how can I tell to the second slave that it needs to wait for the first one?