Disabling tracing on library

This commit is contained in:
Blaise Tine
2021-08-12 01:55:52 -07:00
parent 7202bdf977
commit 7961cf7474
23 changed files with 74 additions and 28 deletions

View File

@@ -1,5 +1,6 @@
`include "VX_platform.vh"
`TRACING_OFF
module VX_divider #(
parameter WIDTHN = 1,
parameter WIDTHD = 1,
@@ -91,4 +92,5 @@ module VX_divider #(
`endif
endmodule
endmodule
`TRACING_ON

View File

@@ -1,5 +1,6 @@
`include "VX_platform.vh"
`TRACING_OFF
module VX_elastic_buffer #(
parameter DATAW = 1,
parameter SIZE = 2,
@@ -75,4 +76,5 @@ module VX_elastic_buffer #(
end
endmodule
endmodule
`TRACING_ON

View File

@@ -1,5 +1,6 @@
`include "VX_platform.vh"
`TRACING_OFF
module VX_fair_arbiter #(
parameter NUM_REQS = 1,
parameter LOCK_ENABLE = 0,
@@ -55,3 +56,4 @@ module VX_fair_arbiter #(
end
endmodule
`TRACING_ON

View File

@@ -1,5 +1,6 @@
`include "VX_platform.vh"
`TRACING_OFF
module VX_fifo_queue #(
parameter DATAW = 1,
parameter SIZE = 2,
@@ -233,4 +234,5 @@ module VX_fifo_queue #(
assign size = {full_r, used_r};
end
endmodule
endmodule
`TRACING_ON

View File

@@ -1,5 +1,6 @@
`include "VX_platform.vh"
`TRACING_OFF
module VX_fixed_arbiter #(
parameter NUM_REQS = 1,
parameter LOCK_ENABLE = 0,
@@ -38,4 +39,5 @@ module VX_fixed_arbiter #(
end
endmodule
endmodule
`TRACING_ON

View File

@@ -1,5 +1,6 @@
`include "VX_platform.vh"
`TRACING_OFF
module VX_index_buffer #(
parameter DATAW = 1,
parameter SIZE = 1,
@@ -87,4 +88,5 @@ module VX_index_buffer #(
assign empty = empty_r;
assign full = full_r;
endmodule
endmodule
`TRACING_ON

View File

@@ -1,5 +1,6 @@
`include "VX_platform.vh"
`TRACING_OFF
module VX_index_queue #(
parameter DATAW = 1,
parameter SIZE = 1
@@ -61,4 +62,5 @@ module VX_index_queue #(
assign write_addr = wr_a;
assign read_data = entries[read_addr];
endmodule
endmodule
`TRACING_ON

View File

@@ -13,6 +13,7 @@
/// Furthermore, this unit contains a more efficient implementation for Verilator (simulation only).
/// This speeds up simulation significantly.
`TRACING_OFF
module VX_lzc #(
/// The width of the input vector.
parameter int unsigned WIDTH = 2,
@@ -83,4 +84,5 @@ module VX_lzc #(
`IGNORE_WARNINGS_END
endmodule
endmodule
`TRACING_ON

View File

@@ -1,5 +1,6 @@
`include "VX_platform.vh"
`TRACING_OFF
module VX_matrix_arbiter #(
parameter NUM_REQS = 1,
parameter LOCK_ENABLE = 0,
@@ -83,4 +84,5 @@ module VX_matrix_arbiter #(
end
endmodule
endmodule
`TRACING_ON

View File

@@ -1,5 +1,6 @@
`include "VX_platform.vh"
`TRACING_OFF
module VX_multiplier #(
parameter WIDTHA = 1,
parameter WIDTHB = 1,
@@ -62,4 +63,5 @@ module VX_multiplier #(
`endif
endmodule
endmodule
`TRACING_ON

View File

@@ -1,5 +1,6 @@
`include "VX_platform.vh"
`TRACING_OFF
module VX_mux #(
parameter DATAW = 1,
parameter N = 1,
@@ -16,4 +17,5 @@ module VX_mux #(
assign data_out = data_in;
end
endmodule
endmodule
`TRACING_ON

View File

@@ -3,6 +3,7 @@
// Fast encoder using parallel prefix computation
// Adapter from BaseJump STL: http://bjump.org/data_out.html
`TRACING_OFF
module VX_onehot_encoder #(
parameter N = 1,
parameter REVERSE = 0,
@@ -102,4 +103,5 @@ module VX_onehot_encoder #(
assign valid_out = (| data_in);
end
endmodule
endmodule
`TRACING_ON

View File

@@ -1,5 +1,6 @@
`include "VX_platform.vh"
`TRACING_OFF
module VX_onehot_mux #(
parameter DATAW = 1,
parameter N = 1,
@@ -52,4 +53,5 @@ module VX_onehot_mux #(
assign data_out = data_in;
end
endmodule
endmodule
`TRACING_ON

View File

@@ -1,5 +1,6 @@
`include "VX_platform.vh"
`TRACING_OFF
module VX_pending_size #(
parameter SIZE = 1,
parameter SIZEW = $clog2(SIZE+1)
@@ -44,4 +45,5 @@ module VX_pending_size #(
assign full = full_r;
assign size = {full_r, used_r};
endmodule
endmodule
`TRACING_ON

View File

@@ -1,5 +1,6 @@
`include "VX_platform.vh"
`TRACING_OFF
module VX_pipe_register #(
parameter DATAW = 1,
parameter RESETW = DATAW,
@@ -72,4 +73,5 @@ module VX_pipe_register #(
);
end
endmodule
endmodule
`TRACING_ON

View File

@@ -1,5 +1,6 @@
`include "VX_platform.vh"
`TRACING_OFF
module VX_priority_encoder #(
parameter N = 1,
parameter REVERSE = 0,
@@ -126,4 +127,5 @@ module VX_priority_encoder #(
end
endmodule
endmodule
`TRACING_ON

View File

@@ -1,5 +1,6 @@
`include "VX_platform.vh"
`TRACING_OFF
module VX_reset_relay #(
parameter ASYNC = 0
) (
@@ -21,4 +22,5 @@ module VX_reset_relay #(
assign reset_o = reset_r;
endmodule
endmodule
`TRACING_ON

View File

@@ -1,5 +1,6 @@
`include "VX_platform.vh"
`TRACING_OFF
module VX_rr_arbiter #(
parameter NUM_REQS = 1,
parameter LOCK_ENABLE = 0,
@@ -245,4 +246,5 @@ module VX_rr_arbiter #(
assign grant_valid = (| requests);
end
endmodule
endmodule
`TRACING_ON

View File

@@ -3,6 +3,7 @@
// Fast Paralllel scan using Kogge-Stone style prefix tree with configurable operator
// Adapted from BaseJump STL: http://bjump.org/index.html
`TRACING_OFF
module VX_scan #(
parameter N = 1,
parameter OP = 0, // 0: XOR, 1: AND, 2: OR
@@ -58,3 +59,4 @@ module VX_scan #(
`IGNORE_WARNINGS_END
endmodule
`TRACING_ON

View File

@@ -1,5 +1,6 @@
`include "VX_platform.vh"
`TRACING_OFF
module VX_scope #(
parameter DATAW = 64,
parameter BUSW = 64,
@@ -94,13 +95,13 @@ module VX_scope #(
delay_val <= $bits(delay_val)'(cmd_data);
cmd_start <= 1;
`ifdef DBG_PRINT_SCOPE
$display("%t: *** scope: CMD_SET_START: delay_val=%0d", $time, $bits(delay_val)'(cmd_data));
dpi_trace("%d: *** scope: CMD_SET_START: delay_val=%0d\n", $time, $bits(delay_val)'(cmd_data));
`endif
end
CMD_SET_STOP: begin
waddr_end <= $bits(waddr)'(cmd_data);
`ifdef DBG_PRINT_SCOPE
$display("%t: *** scope: CMD_SET_STOP: waddr_end=%0d", $time, $bits(waddr)'(cmd_data));
dpi_trace("%d: *** scope: CMD_SET_STOP: waddr_end=%0d\n", $time, $bits(waddr)'(cmd_data));
`endif
end
default:;
@@ -117,7 +118,7 @@ module VX_scope #(
delay_cntr <= 0;
start_time <= timestamp;
`ifdef DBG_PRINT_SCOPE
$display("%t: *** scope: recording start - start_time=%0d", $time, timestamp);
dpi_trace("%d: *** scope: recording start - start_time=%0d\n", $time, timestamp);
`endif
end else begin
start_wait <= 1;
@@ -133,7 +134,7 @@ module VX_scope #(
delta <= 0;
start_time <= timestamp;
`ifdef DBG_PRINT_SCOPE
$display("%t: *** scope: recording start - start_time=%0d", $time, timestamp);
dpi_trace("%d: *** scope: recording start - start_time=%0d\n", $time, timestamp);
`endif
end
end
@@ -162,7 +163,7 @@ module VX_scope #(
if (stop
|| (waddr >= waddr_end)) begin
`ifdef DBG_PRINT_SCOPE
$display("%t: *** scope: recording stop - waddr=(%0d, %0d)", $time, waddr, waddr_end);
dpi_trace("%d: *** scope: recording stop - waddr=(%0d, %0d)\n", $time, waddr, waddr_end);
`endif
waddr <= waddr; // keep last address
recording <= 0;
@@ -232,12 +233,13 @@ module VX_scope #(
`ifdef DBG_PRINT_SCOPE
always @(posedge clk) begin
if (bus_read) begin
$display("%t: scope-read: cmd=%0d, addr=%0d, value=%0h", $time, get_cmd, raddr, bus_out);
dpi_trace("%d: scope-read: cmd=%0d, addr=%0d, value=%0h\n", $time, get_cmd, raddr, bus_out);
end
if (bus_write) begin
$display("%t: scope-write: cmd=%0d, value=%0d", $time, cmd_type, cmd_data);
dpi_trace("%d: scope-write: cmd=%0d, value=%0d\n", $time, cmd_type, cmd_data);
end
end
`endif
endmodule
endmodule
`TRACING_ON

View File

@@ -1,5 +1,6 @@
`include "VX_platform.vh"
`TRACING_OFF
module VX_serial_div #(
parameter WIDTHN = 1,
parameter WIDTHD = 1,
@@ -97,4 +98,5 @@ module VX_serial_div #(
assign tag_out = tag_r;
assign valid_out = is_busy && done;
endmodule
endmodule
`TRACING_ON

View File

@@ -1,5 +1,6 @@
`include "VX_platform.vh"
`TRACING_OFF
module VX_shift_register_nr #(
parameter DATAW = 1,
parameter DEPTH = 1,
@@ -151,4 +152,5 @@ module VX_shift_register #(
end
endmodule
endmodule
`TRACING_ON

View File

@@ -1,5 +1,6 @@
`include "VX_platform.vh"
`TRACING_OFF
module VX_skid_buffer #(
parameter DATAW = 1,
parameter PASSTHRU = 0,
@@ -132,4 +133,5 @@ module VX_skid_buffer #(
end
end
endmodule
endmodule
`TRACING_ON