mirror of
https://github.com/aolofsson/oh.git
synced 2025-01-30 02:32:53 +08:00
e631bfe3f1
-The directory should contain rtl only. -HDL is too broad a term
30 lines
961 B
Verilog
30 lines
961 B
Verilog
//#############################################################################
|
|
//# Function: Power supply header switch #
|
|
//#############################################################################
|
|
//# Author: Andreas Olofsson #
|
|
//# License: MIT (see LICENSE file in OH! repository) #
|
|
//#############################################################################
|
|
|
|
module oh_header
|
|
#(parameter SYN = "TRUE", // true=synthesizable
|
|
parameter TYPE = "DEFAULT" // scell type/size
|
|
)
|
|
(
|
|
input npower, // active low power on
|
|
input vdd, // input supply
|
|
output vddg // gated output supply
|
|
);
|
|
|
|
generate
|
|
if(SYN == "TRUE") begin
|
|
end
|
|
else begin
|
|
asic_header #(.TYPE(TYPE))
|
|
asic_header (.npower(npower),
|
|
.vdd(vdd),
|
|
.vddg(vddg));
|
|
end
|
|
endgenerate
|
|
|
|
endmodule // oh_pwr_gate
|