1
0
mirror of https://github.com/aolofsson/oh.git synced 2025-01-30 02:32:53 +08:00

Fixing interface for power gate

This commit is contained in:
Andreas Olofsson 2016-04-02 22:39:37 -04:00
parent 93e7e5dbab
commit 822bfcbecc

View File

@ -1,4 +1,9 @@
module oh_pwr_gate (/*AUTOARG*/);
module oh_pwr_gate (/*AUTOARG*/
// Outputs
vddg,
// Inputs
npower, vdd
);
input npower; // active low power on
input vdd; // input supply
@ -8,5 +13,5 @@ module oh_pwr_gate (/*AUTOARG*/);
assign vddg = ((vdd===1'b1) && (npower===1'b0)) ? 1'b1 : 1'bX;
`else
`endif
endmodule // oh_pwr_gate