This example design allocates 4K of BRAM attached to the M_AXI_GP0 and monitored by ChipScope tool. The softwarethen treats the memory as a "shareable device" or "strongly-ordered," and a ChipScope shot provides the distance between the SEV instruction and the first BVALID signal on the AXI port for LATENCY.
| Implementation Details | |||
|---|---|---|---|
| Design Type | PS and PL | ||
| SW Type | Standalone | ||
| CPUs | Single CPU @ 720MHz | ||
| PS Features | MMU | ||
| PL Cores | BRAM, CHIPSCOPE | ||
| Boards/Tools | ZC702 | ||
| Xilinx Tools Version | EDK 14.1 | ||
| Other details | FCLK @ 150MHz | ||
| Address Map | |||
| Base Address | Size | Bus Interface | |
| BRAM | 0x41200000 | 4K | S_AXI |
| Files Provided | |||
| zc702_bram_archive.zip | Archived XPS project. | ||
| code_latency.c | Snippet of code. | ||
Block Diagram | |||
Step by Step Instructions
1. Import the archived design into XPS and export to SDK.
2. In SDK create a Hello World example.
3. Modify the Hello World example to include the snippet of C code.
4. Program the PL using the BITSTREAM generated by XPS.
5. Setup ChipScope toolto trigger on the EVENTO signal.
6. Run the application.
7. Measure the latency as the time between the rising edge of EVENTO and the BVALID signal on the AXI MASTER Interface.
Expected Results
Strongly-ordered or Shareable device does not change the LATENCY.
Enabling the CACHE (L1 and L2) affects the LATENCY.
Latency | ||||
Type |
Cache |
FCLK cycles |
CPU cycles |
Time (nS) |
Strongly-ordered |
Disabled |
11 |
53 |
74 |
Strongly-ordered |
Enabled |
6 |
29 |
40 |
Shareable device |
Disabled |
11 |
53 |
74 |
Shareable device |
Enabled |
6 |
29 |
40 |
| Answer Number | Answer Title | Version Found | Version Resolved |
|---|---|---|---|
| 51779 | Zynq-7000 AP SoC Example Designs | N/A | N/A |