{
  "episode": "EP08",
  "title": "Storage hierarchy: BRAM vs DDR3, CPU vs DMA, bandwidth and latency",
  "board": "ALINX PI-AR035-F1-1",
  "fpga": "XC7A35T-FGG484-2",
  "ddr3": "MT41J128M16XX-125, 16-bit, 400 MHz DDR, 256 MiB",
  "cpu": "OpenHW CVE2 / CV32E20, RV32IM, 50 MHz",
  "ui_clock_hz": 100000000,
  "ui_width_bits": 128,
  "ui_protocol": "MIG 7-series native app interface (not AXI4)",
  "scratch_bram": {"bytes": 32768, "words": 8192, "ports": "true dual port, port A CPU, port B DMA read"},
  "ddr_window_bytes": 67108864,
  "theoretical_peak_mb_s": 1600,
  "bram": {
    "cpu_read_bytes": 32768,
    "cpu_read_cycles": 65541,
    "cpu_read_mb_s": 25.0,
    "cpu_copy_bytes": 8192,
    "cpu_copy_cycles": 18437,
    "cpu_copy_mb_s": 22.2,
    "dma_copy_bytes": 8192,
    "dma_copy_cycles": 2050,
    "dma_copy_mb_s": 199.8,
    "dependent_load_loads": 32768,
    "dependent_load_cycles": 81924,
    "dependent_load_cycles_per_load": 2.5,
    "dependent_load_ns_per_load": 50.0
  },
  "ddr_runs": [
    {"round": 1, "bytes": 67108864, "wr_cycles": 9148314, "rd_cycles": 4718705, "crc_cycles": 167772193, "wr_mb_s": 733, "rd_mb_s": 1422, "crc_mb_s": 39, "beats": 4194304, "errors": 0, "crc_data": "0x07e96c24", "crc_expected": "0x07e96c24", "pass": true},
    {"round": 2, "bytes": 67108864, "wr_cycles": 9148282, "rd_cycles": 4718749, "crc_cycles": 167772164, "wr_mb_s": 733, "rd_mb_s": 1422, "crc_mb_s": 39, "beats": 4194304, "errors": 0, "crc_data": "0x07e96c24", "crc_expected": "0x07e96c24", "pass": true}
  ],
  "ddr_ping": {"samples": 16, "min_ui_cycles": 23, "max_ui_cycles": 36, "avg_ui_cycles": 24.12, "avg_ns": 241, "address_step_bytes": 8388608, "last_address": "0x07800000"},
  "repeatability": {
    "independent_program_runs": 2,
    "uart_logs_identical_except_cycle_jitter": true,
    "stable_fields_identical": ["bram metrics", "beat count", "CRC value", "MB/s", "errors", "RESULT"],
    "result": "PASS"
  },
  "resources": {
    "lut": 9581,
    "lut_pct": 46.06,
    "ff": 9212,
    "ff_pct": 22.14,
    "bram_tiles": 40,
    "bram_total": 50,
    "dsp": 11,
    "iob": 73
  },
  "timing": {
    "wns_ns": 0.853,
    "whs_ns": 0.036,
    "tns_ns": 0.0,
    "ths_ns": 0.0,
    "failing_endpoints": 0,
    "total_endpoints": 26767,
    "hold_fix_passes": 2
  },
  "drc": {"errors": 0, "warnings": 0},
  "sha256": {
    "bit": "f07d96c23ce78ee835b19ea932099f03df99e7d6d25449de5c0600c6de1a868c",
    "elf": "ffeb8200f2bc26eeae07c146bf59eb6c32c9a7cfa3e9b05c10780b5fdba0d897",
    "bin": "3773fceaefb278ce8a151c7a0d952225f0fb521c77e7884f37d488fa6ca3c3af",
    "hex": "7c7b878a4aa53d0c1961cad3aed07c5334fb1f2e67311c07e5e5887993b4fc1a",
    "dis": "bc7e93e5ad30edd4c5b073f0f7ed382666d2eb626f80b14bdc47a4ea8890ada5"
  }
}
