From 94b4ad25706d507edab6c0cd3f97ad7dbabe0da1 Mon Sep 17 00:00:00 2001 From: alexmadison Date: Tue, 5 Apr 2022 10:54:25 +0200 Subject: [PATCH] fixed hazard caused by buffer delay in bd2qdi --- dataflow_neuro/interfaces.act | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dataflow_neuro/interfaces.act b/dataflow_neuro/interfaces.act index 285319e..5be7a2d 100644 --- a/dataflow_neuro/interfaces.act +++ b/dataflow_neuro/interfaces.act @@ -60,9 +60,9 @@ namespace tmpl { sigbuf reset_bufarray(.in=_reset_BX, .out=_reset_BXX, .supply=supply); // sig buff the req - bool _reqX, _reqXX[N]; + bool _reqX, _reqXX[N+1]; BUF_X4 req_buf(.a=_req, .y=_reqX,.vdd=supply.vdd,.vss=supply.vss); - sigbuf req_bufarray(.in=_reqX, .out=_reqXX, .supply=supply); + sigbuf req_bufarray(.in=_reqX, .out=_reqXX, .supply=supply); // bd2qdi conversion // Each line goes to a t pin, its not to a f. @@ -89,7 +89,7 @@ namespace tmpl { //control bool _en; - A_3C_RB_X4 inack_ctl(.c1=_en,.c2=_reqX,.c3=out.v,.y=in.a,.pr_B=_reset_BX,.sr_B=_reset_BX,.vdd=supply.vdd,.vss=supply.vss); + A_3C_RB_X4 inack_ctl(.c1=_en,.c2=_reqXX[N],.c3=out.v,.y=in.a,.pr_B=_reset_BX,.sr_B=_reset_BX,.vdd=supply.vdd,.vss=supply.vss); A_1C1P_X1 en_ctl(.c1=in.a,.p1=out.v,.y=_en,.vdd=supply.vdd,.vss=supply.vss); //function