Forum Discussion
Altera_Forum
Honored Contributor
14 years agoI'm not quite understand your problem, but here is the idea.
If you have logic, let's say address width of 8. PCIe has connection from both bar and TX, then both bar and TX has to be more than width of 8. If you just want to use bar access, then you don't need to worry about the translation size, which you are talking about 2M or 1M for 2 pages. This is only for the TX interface and will be used for address translation. I assume typical design would be something like bar 0,1 connects to memory bar 2 connects to csr and DMA controller. TX interface will be connected to DMA master ports. In this case, bar needs to be the size of memory address width. TX address translation will be up to your system. Unless you use huge data, 1MB would be enough, usually set it as automatic/dynamic, cause host side software want to set it. Altera PCIe core only can handle 256byte as payload at a time anyway.