Skip to content

Commit bd1a43c

Browse files
committed
Add NX_XCDC_U to wrappers
1 parent 278ec43 commit bd1a43c

File tree

2 files changed

+135
-48
lines changed

2 files changed

+135
-48
lines changed

techlibs/nanoxplore/cells_bb_u.v

-48
Original file line numberDiff line numberDiff line change
@@ -539,54 +539,6 @@ module NX_PLL_U(R, REF, FBK, OSC, VCO, LDFO, REFO, CLK_DIV1, CLK_DIV2, CLK_DIV3,
539539
parameter use_pll = 1'b1;
540540
endmodule
541541

542-
(* blackbox *)
543-
module NX_XCDC_U(CK1, CK2, ASRSTI, ADRSTI, ASRSTO, ADRSTO, BSRSTI, BDRSTI, BSRSTO, BDRSTO, CSRSTI, CDRSTI, CSRSTO, CDRSTO, DSRSTI, DDRSTI, DSRSTO, DDRSTO, BI, CI, CO
544-
, AO, BO, AI, DI, DO);
545-
input ADRSTI;
546-
output ADRSTO;
547-
input [5:0] AI;
548-
output [5:0] AO;
549-
input ASRSTI;
550-
output ASRSTO;
551-
input BDRSTI;
552-
output BDRSTO;
553-
input [5:0] BI;
554-
output [5:0] BO;
555-
input BSRSTI;
556-
output BSRSTO;
557-
input CDRSTI;
558-
output CDRSTO;
559-
input [5:0] CI;
560-
input CK1;
561-
input CK2;
562-
output [5:0] CO;
563-
input CSRSTI;
564-
output CSRSTO;
565-
input DDRSTI;
566-
output DDRSTO;
567-
input [5:0] DI;
568-
output [5:0] DO;
569-
input DSRSTI;
570-
output DSRSTO;
571-
parameter ack_sel = 1'b0;
572-
parameter bck_sel = 1'b0;
573-
parameter cck_sel = 1'b0;
574-
parameter ck0_edge = 1'b0;
575-
parameter ck1_edge = 1'b0;
576-
parameter dck_sel = 1'b0;
577-
parameter link_BA = 1'b0;
578-
parameter link_CB = 1'b0;
579-
parameter link_DC = 1'b0;
580-
parameter use_adest_arst = 1'b0;
581-
parameter use_asrc_arst = 1'b0;
582-
parameter use_bdest_arst = 1'b0;
583-
parameter use_bsrc_arst = 1'b0;
584-
parameter use_cdest_arst = 1'b0;
585-
parameter use_csrc_arst = 1'b0;
586-
parameter use_ddest_arst = 1'b0;
587-
parameter use_dsrc_arst = 1'b0;
588-
endmodule
589-
590542
(* blackbox *)
591543
module NX_CRX_U(DSCR_E_I, DEC_E_I, ALIGN_E_I, ALIGN_S_I, REP_E_I, BUF_R_I, OVS_BS_I1, OVS_BS_I2, RST_N_I, PMA_RSTN_I, MEYE_RST_I, PWDN_N_I, DBG_S_I1, DBG_S_I2, DBG_S_I3, DATA_O1, DATA_O2, DATA_O3, DATA_O4, DATA_O5, DATA_O6
592544
, DATA_O7, DATA_O8, DATA_O9, DATA_O10, DATA_O11, DATA_O12, DATA_O13, DATA_O14, DATA_O15, DATA_O16, DATA_O17, DATA_O18, DATA_O19, DATA_O20, DATA_O21, DATA_O22, DATA_O23, DATA_O24, DATA_O25, DATA_O26, DATA_O27

techlibs/nanoxplore/cells_wrap_u.v

+135
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,141 @@ module NX_CDC_U_GRAY2BIN(BI, AO, BO, AI);
466466
);
467467
endmodule
468468

469+
module NX_XCDC_U(CK1, CK2, ASRSTI, ADRSTI, ASRSTO, ADRSTO, BSRSTI, BDRSTI, BSRSTO, BDRSTO, CSRSTI, CDRSTI, CSRSTO, CDRSTO, DSRSTI, DDRSTI, DSRSTO, DDRSTO, BI, CI, CO
470+
, AO, BO, AI, DI, DO);
471+
input ADRSTI;
472+
output ADRSTO;
473+
input [5:0] AI;
474+
output [5:0] AO;
475+
input ASRSTI;
476+
output ASRSTO;
477+
input BDRSTI;
478+
output BDRSTO;
479+
input [5:0] BI;
480+
output [5:0] BO;
481+
input BSRSTI;
482+
output BSRSTO;
483+
input CDRSTI;
484+
output CDRSTO;
485+
input [5:0] CI;
486+
input CK1;
487+
input CK2;
488+
output [5:0] CO;
489+
input CSRSTI;
490+
output CSRSTO;
491+
input DDRSTI;
492+
output DDRSTO;
493+
input [5:0] DI;
494+
output [5:0] DO;
495+
input DSRSTI;
496+
output DSRSTO;
497+
parameter ack_sel = 1'b0;
498+
parameter bck_sel = 1'b0;
499+
parameter cck_sel = 1'b0;
500+
parameter ck0_edge = 1'b0;
501+
parameter ck1_edge = 1'b0;
502+
parameter dck_sel = 1'b0;
503+
parameter link_BA = 1'b0;
504+
parameter link_CB = 1'b0;
505+
parameter link_DC = 1'b0;
506+
parameter use_adest_arst = 1'b0;
507+
parameter use_asrc_arst = 1'b0;
508+
parameter use_bdest_arst = 1'b0;
509+
parameter use_bsrc_arst = 1'b0;
510+
parameter use_cdest_arst = 1'b0;
511+
parameter use_csrc_arst = 1'b0;
512+
parameter use_ddest_arst = 1'b0;
513+
parameter use_dsrc_arst = 1'b0;
514+
515+
NX_CDC_U #(
516+
.mode(5), // -- 5: XCDC
517+
.ck0_edge(ck0_edge),
518+
.ck1_edge(ck1_edge),
519+
.ack_sel(ack_sel),
520+
.bck_sel(bck_sel),
521+
.cck_sel(cck_sel),
522+
.dck_sel(dck_sel),
523+
.use_asrc_arst(use_asrc_arst),
524+
.use_adest_arst(use_adest_arst),
525+
.use_bsrc_arst(use_bsrc_arst),
526+
.use_bdest_arst(use_bdest_arst),
527+
.use_csrc_arst(use_csrc_arst),
528+
.use_cdest_arst(use_cdest_arst),
529+
.use_dsrc_arst(use_dsrc_arst),
530+
.use_ddest_arst(use_ddest_arst),
531+
.link_BA(link_BA),
532+
.link_CB(link_CB),
533+
.link_DC(link_DC),
534+
) _TECHMAP_REPLACE_ (
535+
.CK1(CK1),
536+
.CK2(CK2),
537+
.ASRSTI(ASRSTI),
538+
.ADRSTI(ADRSTI),
539+
.ASRSTO(ASRSTO),
540+
.ADRSTO(ADRSTO),
541+
.AI1(AI[0]),
542+
.AI2(AI[1]),
543+
.AI3(AI[2]),
544+
.AI4(AI[3]),
545+
.AI5(AI[4]),
546+
.AI6(AI[5]),
547+
.AO1(AO[0]),
548+
.AO2(AO[1]),
549+
.AO3(AO[2]),
550+
.AO4(AO[3]),
551+
.AO5(AO[4]),
552+
.AO6(AO[5]),
553+
.BSRSTI(BSRSTI),
554+
.BDRSTI(BDRSTI),
555+
.BSRSTO(BSRSTO),
556+
.BDRSTO(BDRSTO),
557+
.BI1(BI[0]),
558+
.BI2(BI[1]),
559+
.BI3(BI[2]),
560+
.BI4(BI[3]),
561+
.BI5(BI[4]),
562+
.BI6(BI[5]),
563+
.BO1(BO[0]),
564+
.BO2(BO[1]),
565+
.BO3(BO[2]),
566+
.BO4(BO[3]),
567+
.BO5(BO[4]),
568+
.BO6(BO[5]),
569+
.CSRSTI(CSRSTI),
570+
.CDRSTI(CDRSTI),
571+
.CSRSTO(CSRSTO),
572+
.CDRSTO(CDRSTO),
573+
.CI1(CI[0]),
574+
.CI2(CI[1]),
575+
.CI3(CI[2]),
576+
.CI4(CI[3]),
577+
.CI5(CI[4]),
578+
.CI6(CI[5]),
579+
.CO1(CO[0]),
580+
.CO2(CO[1]),
581+
.CO3(CO[2]),
582+
.CO4(CO[3]),
583+
.CO5(CO[4]),
584+
.CO6(CO[5]),
585+
.DSRSTI(DSRSTI),
586+
.DDRSTI(DDRSTI),
587+
.DSRSTO(DSRSTO),
588+
.DDRSTO(DDRSTO),
589+
.DI1(DI[0]),
590+
.DI2(DI[1]),
591+
.DI3(DI[2]),
592+
.DI4(DI[3]),
593+
.DI5(DI[4]),
594+
.DI6(DI[5]),
595+
.DO1(DO[0]),
596+
.DO2(DO[1]),
597+
.DO3(DO[2]),
598+
.DO4(DO[3]),
599+
.DO5(DO[4]),
600+
.DO6(DO[5]),
601+
);
602+
endmodule
603+
469604
module NX_DSP_U_SPLIT(CK, R, RZ, WE, WEZ, CI, CCI, CO42, CO56, OVF, CCO, A, B, C, D, Z, CAI, CBI, CZI, CAO, CBO, CZO);
470605
input [23:0] A;
471606
input [17:0] B;

0 commit comments

Comments
 (0)