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
|
2022-08-06 14:55:51 -05:00
|
|
|
`define DUMP(levels)
|
2022-05-15 21:52:26 -05:00
|
|
|
`else
|
2022-08-06 14:55:51 -05:00
|
|
|
`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); \
|
2022-08-06 14:55:51 -05:00
|
|
|
$dumpvars(levels); \
|
2022-05-15 21:52:26 -05:00
|
|
|
end \
|
|
|
|
end
|
|
|
|
`endif
|
|
|
|
|
|
|
|
`endif /* COMMON_VH */
|