From 2472d61daf35d387b11e6acc977afb5dc54568c8 Mon Sep 17 00:00:00 2001 From: Rejeesh Kutty Date: Tue, 1 Apr 2014 15:06:33 -0400 Subject: [PATCH] ad_gt_es: status asserted early for latency --- library/common/ad_gt_es.v | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/library/common/ad_gt_es.v b/library/common/ad_gt_es.v index 85cc157b4..5bae4dbbb 100644 --- a/library/common/ad_gt_es.v +++ b/library/common/ad_gt_es.v @@ -131,6 +131,8 @@ module ad_gt_es ( // state machine parameter ES_FSM_IDLE = 6'h00; + parameter ES_FSM_STATUS = 6'h30; + parameter ES_FSM_INIT = 6'h31; parameter ES_FSM_CTRLINIT_READ = 6'h01; parameter ES_FSM_CTRLINIT_RRDY = 6'h02; parameter ES_FSM_CTRLINIT_WRITE = 6'h03; @@ -451,15 +453,25 @@ module ad_gt_es ( end else begin case (es_fsm) ES_FSM_IDLE: begin // idle - if (es_start == 1'b0) begin + if (es_start == 1'b1) begin + es_fsm <= ES_FSM_STATUS; + end else begin es_fsm <= ES_FSM_IDLE; - end else if (es_init == 1'b1) begin + end + end + + ES_FSM_STATUS: begin // set status + es_fsm <= ES_FSM_INIT; + end + + ES_FSM_INIT: begin // initialize + if (es_init == 1'b1) begin es_fsm <= ES_FSM_CTRLINIT_READ; end else begin es_fsm <= ES_FSM_HOFFSET_READ; end end - + ES_FSM_CTRLINIT_READ: begin // control read es_fsm <= ES_FSM_CTRLINIT_RRDY; end