How to do memory mapping using address ranges?
for eg. I have 16bit address bus => 65536 locations => 64k memory
[7:0] memory [65535:0]
8bit data bus => 0 to 1024 bytes
[7:0] data [1024:0]
so from 65536 locations, 1025 occupied by data.
and I need to accommodate other registers like control reg, status reg, header reg, crc reg, pktlen reg etc. of 1 byte each within this memory.
So total 1031 bytes in use.
So, How can i define this all stuff in verilog?