OpenXiangShan / difftest

Modern co-simulation framework for RISC-V CPUs
Mulan Permissive Software License, Version 2
112 stars 63 forks source link

Batch: pack Batch param to facilitate migration between DPIC/PCIe #474

Closed klin02 closed 1 week ago

klin02 commented 1 week ago

To facilitate Batch migration between DPIC and PCIe, we pack Batch param to an aligned array, and parse it inside software.

In transmission, we only need to pass single hardware data, as svBitVecVal[] or uint8_t[], and then view it as generated struct in software.

Note we put step inside BatchInfo and call simv_nstep inside, Step will be also exposed to Top all the time for Verilator and Timeout Check.