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" `include "VX_platform.vh"
`TRACING_OFF
module VX_divider #( module VX_divider #(
parameter WIDTHN = 1, parameter WIDTHN = 1,
parameter WIDTHD = 1, parameter WIDTHD = 1,
@@ -92,3 +93,4 @@ module VX_divider #(
`endif `endif
endmodule endmodule
`TRACING_ON

View File

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

View File

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

View File

@@ -1,5 +1,6 @@
`include "VX_platform.vh" `include "VX_platform.vh"
`TRACING_OFF
module VX_fifo_queue #( module VX_fifo_queue #(
parameter DATAW = 1, parameter DATAW = 1,
parameter SIZE = 2, parameter SIZE = 2,
@@ -234,3 +235,4 @@ module VX_fifo_queue #(
end end
endmodule endmodule
`TRACING_ON

View File

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

View File

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

View File

@@ -1,5 +1,6 @@
`include "VX_platform.vh" `include "VX_platform.vh"
`TRACING_OFF
module VX_index_queue #( module VX_index_queue #(
parameter DATAW = 1, parameter DATAW = 1,
parameter SIZE = 1 parameter SIZE = 1
@@ -62,3 +63,4 @@ module VX_index_queue #(
assign read_data = entries[read_addr]; 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). /// Furthermore, this unit contains a more efficient implementation for Verilator (simulation only).
/// This speeds up simulation significantly. /// This speeds up simulation significantly.
`TRACING_OFF
module VX_lzc #( module VX_lzc #(
/// The width of the input vector. /// The width of the input vector.
parameter int unsigned WIDTH = 2, parameter int unsigned WIDTH = 2,
@@ -84,3 +85,4 @@ module VX_lzc #(
`IGNORE_WARNINGS_END `IGNORE_WARNINGS_END
endmodule endmodule
`TRACING_ON

View File

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

View File

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

View File

@@ -1,5 +1,6 @@
`include "VX_platform.vh" `include "VX_platform.vh"
`TRACING_OFF
module VX_mux #( module VX_mux #(
parameter DATAW = 1, parameter DATAW = 1,
parameter N = 1, parameter N = 1,
@@ -17,3 +18,4 @@ module VX_mux #(
end end
endmodule endmodule
`TRACING_ON

View File

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

View File

@@ -1,5 +1,6 @@
`include "VX_platform.vh" `include "VX_platform.vh"
`TRACING_OFF
module VX_onehot_mux #( module VX_onehot_mux #(
parameter DATAW = 1, parameter DATAW = 1,
parameter N = 1, parameter N = 1,
@@ -53,3 +54,4 @@ module VX_onehot_mux #(
end end
endmodule endmodule
`TRACING_ON

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,5 +1,6 @@
`include "VX_platform.vh" `include "VX_platform.vh"
`TRACING_OFF
module VX_scope #( module VX_scope #(
parameter DATAW = 64, parameter DATAW = 64,
parameter BUSW = 64, parameter BUSW = 64,
@@ -94,13 +95,13 @@ module VX_scope #(
delay_val <= $bits(delay_val)'(cmd_data); delay_val <= $bits(delay_val)'(cmd_data);
cmd_start <= 1; cmd_start <= 1;
`ifdef DBG_PRINT_SCOPE `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 `endif
end end
CMD_SET_STOP: begin CMD_SET_STOP: begin
waddr_end <= $bits(waddr)'(cmd_data); waddr_end <= $bits(waddr)'(cmd_data);
`ifdef DBG_PRINT_SCOPE `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 `endif
end end
default:; default:;
@@ -117,7 +118,7 @@ module VX_scope #(
delay_cntr <= 0; delay_cntr <= 0;
start_time <= timestamp; start_time <= timestamp;
`ifdef DBG_PRINT_SCOPE `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 `endif
end else begin end else begin
start_wait <= 1; start_wait <= 1;
@@ -133,7 +134,7 @@ module VX_scope #(
delta <= 0; delta <= 0;
start_time <= timestamp; start_time <= timestamp;
`ifdef DBG_PRINT_SCOPE `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 `endif
end end
end end
@@ -162,7 +163,7 @@ module VX_scope #(
if (stop if (stop
|| (waddr >= waddr_end)) begin || (waddr >= waddr_end)) begin
`ifdef DBG_PRINT_SCOPE `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 `endif
waddr <= waddr; // keep last address waddr <= waddr; // keep last address
recording <= 0; recording <= 0;
@@ -232,12 +233,13 @@ module VX_scope #(
`ifdef DBG_PRINT_SCOPE `ifdef DBG_PRINT_SCOPE
always @(posedge clk) begin always @(posedge clk) begin
if (bus_read) 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 end
if (bus_write) begin 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
end end
`endif `endif
endmodule endmodule
`TRACING_ON

View File

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

View File

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

View File

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