Commit 7256f1bb authored by Konstantinos Blantos's avatar Konstantinos Blantos

Update dut_env.sv

parent 678833e6
Pipeline #2665 failed with stages
in 4 minutes and 34 seconds
......@@ -28,6 +28,8 @@
`include "vme64x_bfm.svh"
`include "svec_vme_buffers.svh"
`timescale 1ns/1ps
module simple_tdc_driver
(
input clk,
......@@ -89,7 +91,7 @@ module simple_tdc_driver
val[27:26] = t.channel & 2'b11;
val[25:18] = start;
val[17] = 1'b1;
val[16:0] = (t.ts - start_time) / 0.000081us; //81ps
val[16:0] = (t.ts - start_time) / 81.0ps
$display("[DUT] <%t> TDC: pulse at %t for channel %0d (start #0x%x, time_data 0x%x, start_time %t)",
$realtime, t.ts, t.channel, start, val[16:0], start_time);
......@@ -100,7 +102,7 @@ module simple_tdc_driver
val[27:26] = t.channel & 2'b11;
val[25:18] = start;
val[17] = 1'b0;
val[16:0] = (t.duration + t.ts - start_time) / 0.000081us;
val[16:0] = (t.duration + t.ts - start_time) / 81.0ps;
fifos[t.channel / 4].push_back(val);
......@@ -124,7 +126,7 @@ module simple_tdc_driver
if (restart_pulse) begin
start = 1;
restart_pulse = 0;
start01 = ($time - restart_time) / 0.000081us;
start01 = ($time - restart_time) / 81.0ps;
end
else begin
start_time = $time;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment