Forum Discussion
Hi
Are you sure it's oct_recal_req and not oct_cal_req?
Maybe I'm wrong but oct_recal_req output goes to c2t_afi[6] in altera_emif_arch_nf_seq_if.sv and that's it. No other action is done. On the other hand, the oct state machine triggers with oct_cal_req.
Thank you
- yoichiK_altera3 years ago
Contributor
I was bit inaccurate. not oct_cal_req ,but r_oct_cal_req signal in the RTL to disable it. oct_cal_req is the signal used during the power up.
Here is the example RTL change to disable periodic OCT update.
always_ff @(posedge w_oct_clock)
begin
if (w_oct_reset == 1'b1)
begin
r_oct_recal_timer[(OCT_RECAL_TIMER_WIDTH-1)] <= 1'b0;
r_oct_recal_timer[(OCT_RECAL_TIMER_WIDTH-2):0] <= OCT_RECAL_TIMER_PRESET[(OCT_RECAL_TIMER_WIDTH-2):0];
r_oct_recal_req <= 1'b0;
end
else if (user_oct_disalbe) // added, user interface signal.
r_oct_recal_req <= 1'b0; // added, disable periodic OCT
else
begin
if (r_oct_recal_timer[(OCT_RECAL_TIMER_WIDTH-1)] == 1'b1)
begin
r_oct_recal_timer[(OCT_RECAL_TIMER_WIDTH-1)] <= 1'b0;
r_oct_recal_timer[(OCT_RECAL_TIMER_WIDTH-2):0] <= OCT_RECAL_TIMER_PRESET[(OCT_RECAL_TIMER_WIDTH-2):0];
r_oct_recal_req <= ~r_oct_recal_req;
end
else
begin
r_oct_recal_timer[(OCT_RECAL_TIMER_WIDTH-1):0] <= r_oct_recal_timer[(OCT_RECAL_TIMER_WIDTH-1):0]
- {{(OCT_RECAL_TIMER_WIDTH-1){1'b0}}, 1'b1};
end
end
end