From b824948420158cb50c02faa037e877578dd55a41 Mon Sep 17 00:00:00 2001 From: xver Date: Tue, 12 Jun 2018 20:00:51 -0400 Subject: [PATCH] change header&hash data type. was: real,double is: log,longint --- utils/dpi/src/shunt_dpi_pkg.sv | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/utils/dpi/src/shunt_dpi_pkg.sv b/utils/dpi/src/shunt_dpi_pkg.sv index 00f91fc0..b6f1e4b1 100644 --- a/utils/dpi/src/shunt_dpi_pkg.sv +++ b/utils/dpi/src/shunt_dpi_pkg.sv @@ -806,9 +806,9 @@ package shunt_dpi_pkg; /* verilator lint_off UNPACKED */ typedef struct{ - real trnx_type; - real trnx_id; - real data_type; + longint trnx_type; + longint trnx_id; + longint data_type; int n_payloads; } cs_header_t; /* verilator lint_on UNPACKED */ @@ -822,7 +822,7 @@ package shunt_dpi_pkg; */ `ifndef NO_CS_DATA_HEADER_T typedef struct{ - real data_type; real data_type; + longint data_type; real data_type; int trnx_payload_sizes[]; }cs_data_header_t; `endif @@ -843,7 +843,7 @@ package shunt_dpi_pkg; Disable function `define: NO_SHUNT_DPI_HASH */ `ifndef NO_SHUNT_DPI_HASH - import "DPI-C" function real shunt_dpi_hash(input string str); + import "DPI-C" function longint shunt_dpi_hash(input string str); `endif