Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
19663 Discussions

PCie BAR to memory mapped slave

Altera_Forum
Honored Contributor II
908 Views

hi guys!! 

 

Well, I've got trouble with sending a some data to memory mapped slave.  

My PCIe just has one BAR. 

That Bar has a size of 4kbytes - 12 bits and my memory mapped slave has a 10 bits of address width and 32 data width  

(memory mapped slave has address are 0x0000_0000 to 0x0000_0fff). 

 

So my questions are: 

1.- if I want to send data to memory slave, How should I fill BAR?:confused:....... Bar has size of 4KBytes and I dont know which bits are of datas and address. 

2.- Why dooes BAR has 12 bits if my memory mapped slave has 10 bits??:confused: 

 

Well, Iill be thanking for your replys!!
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
116 Views

The BAR is for bytes. Your memory is four bytes. 

Memory address of 10 bits plus 2 bits to address the byte = 12. 

 

Dave
Reply