FPGAAcquisitionDevice: Report HBM size
This commit is contained in:
@@ -405,6 +405,8 @@ message FPGAStatus {
|
||||
|
||||
bool host_writer_idle = 41;
|
||||
bool cancel_bit = 42;
|
||||
|
||||
uint32 hbm_size_bytes = 43;
|
||||
}
|
||||
|
||||
message DataProcessingSettings {
|
||||
|
||||
+46
-46
File diff suppressed because one or more lines are too long
@@ -191,6 +191,7 @@ JFJochProtoBuf::FPGAStatus FPGAAcquisitionDevice::GetStatus() const {
|
||||
|
||||
ret.set_max_modules(status.max_modules);
|
||||
ret.set_git_sha1(status.git_sha1);
|
||||
ret.set_hbm_size_bytes(status.hbm_size_bytes);
|
||||
|
||||
FIFO_check(ret, "Conversion input (data)", status.fifo_status, 0, 1);
|
||||
FIFO_check(ret, "Conversion input (cmd)", status.fifo_status, 2, 3);
|
||||
|
||||
@@ -404,6 +404,7 @@ void HLSSimulatedDevice::HW_GetStatus(ActionStatus *status) const {
|
||||
status->ctrl_reg = ap_uint<1>(host_writer_idle) ? (1 << 4) : 0;
|
||||
status->modules_internal_packet_generator = 1;
|
||||
status->max_modules = max_modules;
|
||||
status->hbm_size_bytes = hbm_if_size;
|
||||
}
|
||||
|
||||
void HLSSimulatedDevice::HBMTransfer(void *uram, uint64_t hbm_interface, uint64_t hbm_offset, bool hbm_to_uram,
|
||||
|
||||
@@ -33,6 +33,7 @@ int main(int argc, char **argv) {
|
||||
std::cout << "FPGA temperature " << status.fpga_temp_degc() << std::endl;
|
||||
std::cout << "HBM temperature #0 " << status.hbm_temp_0_degc() << std::endl;
|
||||
std::cout << "HBM temperature #1 " << status.hbm_temp_1_degc() << std::endl;
|
||||
std::cout << "HBM size (MiB) " << status.hbm_size_bytes() / static_cast<double>(1024 * 1024) << std::endl;
|
||||
std::cout << "Data collection idle " << status.fpga_idle() << std::endl;
|
||||
std::cout << "Host writer idle " << status.host_writer_idle() << std::endl;
|
||||
std::cout << "Data collection cancel " << status.cancel_bit() << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user