2016-06-24 21:25:41 -04:00
|
|
|
//#############################################################################
|
|
|
|
//# Function: Isolation buffer (HIGH) for multi supply domains #
|
|
|
|
//#############################################################################
|
|
|
|
//# Author: Andreas Olofsson #
|
|
|
|
//# License: MIT (see LICENSE file in OH! repository) #
|
|
|
|
//#############################################################################
|
|
|
|
|
2016-08-17 15:06:01 +01:00
|
|
|
module oh_pwr_isohi #(parameter DW = 1 // width of data inputs
|
2016-06-24 21:25:41 -04:00
|
|
|
)
|
|
|
|
(
|
|
|
|
input iso,// active low isolation signal
|
|
|
|
input [DW-1:0] in, // input signal
|
|
|
|
output [DW-1:0] out // out = iso | in
|
|
|
|
);
|
|
|
|
|
2020-02-04 23:04:52 -05:00
|
|
|
`ifdef CFG_ASIC
|
|
|
|
asic_iso_hi iiso [DW-1:0] (.iso(iso),
|
2016-06-24 21:25:41 -04:00
|
|
|
.in(in[DW-1:0]),
|
|
|
|
.out(out[DW-1:0]));
|
2020-02-04 23:04:52 -05:00
|
|
|
`else
|
|
|
|
assign out[DW-1:0] = {(DW){iso}} | in[DW-1:0];
|
|
|
|
`endif
|
|
|
|
|
|
|
|
endmodule // oh_pwr_isohi
|
2016-06-24 21:25:41 -04:00
|
|
|
|