cvw/wally-pipelined/testbench/common/logging.sv
2021-07-30 14:16:14 -05:00

11 lines
246 B
Systemverilog

module logging(
input logic clk, reset,
input logic [31:0] HADDR,
input logic [1:0] HTRANS);
always @(posedge clk)
if (HTRANS != 2'b00 && HADDR == 0)
$display("%t Warning: access to memory address 0\n", $realtime);
endmodule