You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Internal Verilator-generated function declarations don't look like that. Are you talking about a DPI function? What verilator version? Send a complete example please.
The original SystemVerilog code where we are reading form a memory a single byte (thus the logic[7:0] return arg) is:
function logic[7:0] read_mem(logic [VALID_ADDR_WIDTH-1:0] i,int j);
It appears that the Verilated code is this:
uint32_t Vdp_ram1024_dp_ram1024::read_mem(uint32_t i, uint32_t j) {
The return on this (C++) function is a uint32_t which is not 8 bits. Why is it not uint8_t or such?
The text was updated successfully, but these errors were encountered: