blob: dbd04bb20bbcadf89ff2cfb3cbeb73d718273629 [file] [log] [blame]
Tim Edwardsbc035512020-11-23 11:16:08 -05001`default_nettype none
2/*----------------------------------------------------------------------*/
3/* mgmt_protect_hv: */
4/* */
5/* High voltage (3.3V) part of the mgmt_protect module. Split out into */
6/* a separate module and file so that the synthesis tools can handle it */
7/* separately from the rest, since it uses a different standard cell */
8/* library. See the file mgmt_protect.v for a full description of the */
9/* whole management protection method. */
10/*----------------------------------------------------------------------*/
11
12module mgmt_protect_hv (
Ahmed Ghazy1d1679d2020-11-30 17:44:45 +020013`ifdef USE_POWER_PINS
Tim Edwardsbc035512020-11-23 11:16:08 -050014 inout vccd,
15 inout vssd,
16 inout vdda1,
17 inout vssa1,
18 inout vdda2,
19 inout vssa2,
Ahmed Ghazy1d1679d2020-11-30 17:44:45 +020020`endif
Tim Edwardsbc035512020-11-23 11:16:08 -050021
22 output mprj_vdd_logic1,
23 output mprj2_vdd_logic1
24
25);
26
27 wire mprj_vdd_logic1_h;
28 wire mprj2_vdd_logic1_h;
29
30 // Logic high in the VDDA (3.3V) domains
31
32 sky130_fd_sc_hvl__conb_1 mprj_logic_high_hvl (
33`ifdef USE_POWER_PINS
34 .VPWR(vdda1),
35 .VGND(vssa1),
36 .VPB(vdda1),
37 .VNB(vssa1),
38`endif
39 .HI(mprj_vdd_logic1_h),
40 .LO()
41 );
42
43 sky130_fd_sc_hvl__conb_1 mprj2_logic_high_hvl (
44`ifdef USE_POWER_PINS
45 .VPWR(vdda2),
46 .VGND(vssa2),
47 .VPB(vdda2),
48 .VNB(vssa2),
49`endif
50 .HI(mprj2_vdd_logic1_h),
51 .LO()
52 );
53
54 // Level shift the logic high signals into the 1.8V domain
55
56 sky130_fd_sc_hvl__lsbufhv2lv_1 mprj_logic_high_lv (
57`ifdef USE_POWER_PINS
58 .VPWR(vdda1),
59 .VGND(vssd),
60 .LVPWR(vccd),
61 .VPB(vdda1),
62 .VNB(vssd),
63`endif
64 .X(mprj_vdd_logic1),
65 .A(mprj_vdd_logic1_h)
66 );
67
68 sky130_fd_sc_hvl__lsbufhv2lv_1 mprj2_logic_high_lv (
69`ifdef USE_POWER_PINS
70 .VPWR(vdda2),
71 .VGND(vssd),
72 .LVPWR(vccd),
73 .VPB(vdda2),
74 .VNB(vssd),
75`endif
76 .X(mprj2_vdd_logic1),
77 .A(mprj2_vdd_logic1_h)
78 );
79
80endmodule
81`default_nettype wire