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
I am unable to replicate your issue. Can you provide a complete example, that I can compile and run? You show a function, but you don't show how it is called or the module context around it.
I write a Action function:
function Action write_mce_mask(UInt#(72) mce_id, UInt#(72) wr_data);
return action
$display("write mce mask: %d %h", mce_id, wr_data);
mce_mask_vec[mce_id] <= wr_data;
endaction;
endfunction
the results of bluesim and verilog simulation are different, the former is:
"
write mce mask: 0 ffffff000000000000
write mce mask: 4703919738795935662081 ffff00000000000000
write mce mask: 4703919738795935662082 ffffffffff00000000
write mce mask: 4703919738795935662083 ffffffff0000000000
write mce mask: 4703919738795935662084 fffffff00000000000
"
while the latter is:
"
write mce mask: 0 ffffff000000000000
write mce mask: 1 ffff00000000000000
write mce mask: 2 ffffffffff00000000
write mce mask: 3 ffffffff0000000000
write mce mask: 4 fffffff00000000000
"
verilog simulation result is right. Is there a bug in bluesim?
The text was updated successfully, but these errors were encountered: