ethernet/rtl/common.vh

23 lines
395 B
Plaintext
Raw Normal View History

2022-05-15 21:52:26 -05:00
// SPDX-License-Identifier: AGPL-3.0-Only
/*
* Copyright (C) 2022 Sean Anderson <seanga2@gmail.com>
*/
`ifndef COMMON_VH
`define COMMON_VH
`ifdef SYNTHESIS
`define DUMP(levels)
2022-05-15 21:52:26 -05:00
`else
`define DUMP(levels) \
2022-05-15 21:52:26 -05:00
reg [4096:0] vcdfile; \
initial begin \
if ($value$plusargs("vcd=%s", vcdfile)) begin \
$dumpfile(vcdfile); \
$dumpvars(levels); \
2022-05-15 21:52:26 -05:00
end \
end
`endif
`endif /* COMMON_VH */