blob: ab89beff63fbf2bcf70d1f42ceb87959ed6bbb38 [file] [log] [blame]
// ===============================================
// Copyright 2011, Cypress Semiconductor Corporation.
//
// This software is owned by Cypress Semiconductor Corporation (Cypress)
// and is protected by United States copyright laws and international
// treaty provisions. Therefore, you must treat this software like any
// other copyrighted material (e.g., book, or musical recording), with
// the exception that one copy may be made for personal use or
// evaluation. Reproduction, modification, translation, compilation, or
// representation of this software in any other form (e.g., paper,
// magnetic, optical, silicon, etc.) is prohibited without the express
// written permission of Cypress.
//
// Disclaimer: Cypress makes no warranty of any kind, express or implied,
// with regard to this material, including, but not limited to, the
// implied warranties of merchantability and fitness for a particular
// purpose. Cypress reserves the right to make changes without further
// notice to the materials described herein. Cypress does not assume any
// liability arising out of the application or use of any product or
// circuit described herein. Cypress' products described herein are
// not authorized for use as components in life-support devices.
//
// This software is protected by and subject to worldwide patent
// coverage, including U.S. and foreign patents. Use may be limited by
// and subject to the Cypress Software License Agreement.
//
// ===============================================
// File : $File: //depot/icm/proj/s8iom0s8/icmrel/ipVault/opus/s8iom0s8/s8iom0s8_top_tp1v2/behavioral/verilog.v $
// Author : GURU
// Date : $Date: 2018/05/15 18:52:16 GMT $
// $Revision: 1 $
// ===============================================
// Description: behavioral model for s8iom0s8_top_tp1
`timescale 1ns/1ps
module s8iom0s8_top_tp1v2 ( tp1, tp1_out, amuxbus_a, amuxbus_b
`ifdef USE_PG_PIN
,vssa, vdda, vswitch, vddio_q, vcchib, vddio, vccd, vssio,
vssd, vssio_q
`endif
, en_tp1,tp1_div);
inout tp1;
inout tp1_out;
inout amuxbus_a;
inout amuxbus_b;
`ifdef USE_PG_PIN
inout vddio;
inout vddio_q;
inout vdda;
inout vccd;
inout vswitch;
inout vcchib;
inout vssa;
inout vssd;
inout vssio_q;
inout vssio;
wire pwr_good = (vddio===1'b1) && (vssio===1'b0);
`else
supply1 vddio;
supply1 vddio_q;
supply1 vdda;
supply1 vccd;
supply1 vswitch;
supply1 vcchib;
supply1 vpb;
supply1 vpbhib;
supply0 vssd;
supply0 vssio;
supply0 vssio_q;
supply0 vssa;
wire pwr_good = 1'b1;
`endif
input en_tp1;
output tp1_div ;
tranif1 x_tp1 (tp1, tp1_out, (pwr_good===1'b0 ? 1'bx : 1'b1));
bufif1 x_tp1_div (tp1_div, tp1, vssd !== 1'b0 ? 1'bx : en_tp1);
endmodule