use LEDs for debug in latency tester mode

This commit is contained in:
marqs committed 2020-02-09 21:35:50 +02:00
1 parent a076c6d2db
commit 0c55cc03bb
3 files changed
+12 -5

No files matched your search

+3
View File
@@ -34,6 +34,7 @@ module lat_tester (
output reg [2:0] mode_synced,
output reg [15:0] lat_result,
output reg [11:0] stb_result,
output trig_waiting,
output reg finished
);
@@ -41,6 +42,8 @@ reg VSYNC_in_L, VSYNC_in_LL, trigger_L, trigger_LL;
reg [8:0] clk27_ctr;
reg [1:0] state;
assign trig_waiting = (state == `LT_STATE_LAT_MEAS);
always @(posedge pclk) begin
VSYNC_in_L <= VSYNC_in;
VSYNC_in_LL <= VSYNC_in_L;