--********************************************************************
--**  Copyright (c) 2002 Cypress Semiconductor
--**  All rights reserved.
--**
--**  File Name:     cyp15g0101-BGC.bsdl
--**  Release:       1.3
--**  Last Updated:  October 16, 2003
--**  Reason:        Fixed warnings about port grouping and buffers
--**
--**  Function:      Single HOTLink-II Tranceiver, BSDL file for JTAG
--**  Part #:        CYP15G0101DXB-BGC
--**
--**  Notes:
--**  IMPORTANT NOTE: Please be aware that the CYP15G0101DXB-BGC Quad
--**  Ref CYP15G0101DXB-BGC Datasheet at www.cypress.com
--**
--**  This BSDL file is 1149.1 compliant.
--**
--**  The CYP15G0101DXB-BGC has 11 tri-level select control signals.
--**  These signals are SDASEL, SPDSEL, PARCTL, RFMODE etc.
--**  The tri state is implemented in the BSDL file as follows:
--**  Input vector : 11 => HIGH
--**  Input vector : 10 => MID, where 1 is the MSB and 0 is the LSB.
--**  Input vector : 00 => LOW.
--**  MSB is the higher register no. and LSB is the lower register no.
--**
--**  The analog input signal, associated cells, analog input value and
--**  the cells capture values are shown in the table below:
--**
--**  Analog Input  Assoc. Cells  Analog Input Voltage, Capture Value
--**                  (MSB, LSB)
--**  ------------  ------------  ------------------------------------
--**    SDASEL       171, 170     (HIGH, 11), (MID/OPEN, 10), (LOW, 00)
--**    SPDSEL       169, 168     (HIGH, 11), (MID/OPEN, 10), (LOW, 00)
--**    PARCTL       167, 166     (HIGH, 11), (MID/OPEN, 10), (LOW, 00)
--**    RFMODE       165, 164     (HIGH, 11), (MID/OPEN, 10), (LOW, 00)
--**    RXCKSEL      155, 154     (HIGH, 11), (MID/OPEN, 10), (LOW, 00)
--**    TXCKSEL      150, 149     (HIGH, 11), (MID/OPEN, 10), (LOW, 00)
--**    DECMODE       23, 22      (HIGH, 11), (MID/OPEN, 10), (LOW, 00)
--**    FRAMCHAR      20, 19      (HIGH, 11), (MID/OPEN, 10), (LOW, 00)
--**    TXMODE(0)     14, 13      (HIGH, 11), (MID/OPEN, 10), (LOW, 00)
--**    TXMODE(1)     12, 11      (HIGH, 11), (MID/OPEN, 10), (LOW, 00)
--**    RXMODE        10, 9       (HIGH, 11), (MID/OPEN, 10), (LOW, 00)
--**
--**  Queries ?:     Contact DCD Applications
--********************************************************************

entity cyp15g0101 is

-- This section identifies the device package selected.
   generic (PHYSICAL_PIN_MAP: string:= "BGC_100");

-- This section declares all the ports of the device.
   port (
          BISTLE        : in       bit;
          DECMODE       : in       bit;
          FRAMCHAR      : in       bit;
          IN1p          : linkage  bit;
          IN1n          : linkage  bit;
          IN2p          : linkage  bit;
          IN2n          : linkage  bit;
          INSEL         : in       bit;
          LPEN          : in       bit;
          OELE          : in       bit;
          PARCTL        : in       bit;
          REFCLKn       : in       bit;
          REFCLKp       : in       bit;
          RFEN          : in       bit;
          RFMODE        : in       bit;
          RXCKSEL       : in       bit;
          RXLE          : in       bit;
          RXRATE        : in       bit;
          SCSEL         : in       bit;
          SDASEL        : in       bit;
          SPDSEL        : in       bit;
          TCLK          : in       bit;
          TDI           : in       bit;
          TMS           : in       bit;
          TRSTZn        : in       bit;
          TXCKSEL       : in       bit;
          TXCLK         : in       bit;
          TXOP          : in       bit;
          TXRATE        : in       bit;
          TXRSTn        : in       bit;
          VCC           : linkage  bit_vector (0 to 11);
          GND           : linkage  bit_vector (0 to 15);
          BOE           : in       bit_vector (0 to 1);
          RXMODE        : in       bit;
          TXCT          : in       bit_vector (0 to 1);
          TXD           : in       bit_vector (0 to 7);
          TXMODE        : in       bit_vector (0 to 1);
          RXCLKp        : inout    bit;
          RXCLKCp       : inout    bit;
          OUT1n         : linkage  bit;
          OUT1p         : linkage  bit;
          OUT2n         : linkage  bit;
          OUT2p         : linkage  bit;
          RXCLKn        : inout    bit;
          RXOP          : out      bit;
          TDO           : out      bit;
          TXCLKOn       : buffer   bit;
          TXCLKOp       : buffer   bit;
          LFIn          : buffer   bit;
          TXPER         : buffer   bit;
          RXD           : buffer   bit_vector (0 to 7);
          RXST          : buffer   bit_vector (0 to 2)
   );

   use STD_1149_1_1994.all;

   attribute COMPONENT_CONFORMANCE of cyp15g0101: entity is "STD_1149_1_1993";

   attribute PIN_MAP of cyp15g0101: entity is PHYSICAL_PIN_MAP;

-- This section specifies the pin map for each port. This information
-- is extracted from the port-to-pin map file that was read in using
-- the "read_pin_map" command.

     constant BGC_100: PIN_MAP_STRING :=
        "BISTLE        : E1," &
        "DECMODE       : E2," &
        "FRAMCHAR      : D3," &
        "IN1p          : A7," &
        "IN1n          : B7," &
        "IN2p          : A2," &
        "IN2n          : B2," &
        "INSEL         : C10,"&
        "LPEN          : C2," &
        "OELE          : E3," &
        "PARCTL        : C8," &
        "REFCLKn       : F9," &
        "REFCLKp       : F10,"&
        "RFEN          : C1," &
        "RFMODE        : C9," &
        "RXCKSEL       : E9," &
        "RXLE          : C3," &
        "RXRATE        : C5," &
        "SCSEL         : K9," &
        "SDASEL        : C6," &
        "SPDSEL        : C7," &
        "TCLK          : E8," &
        "TDI           : D10,"&
        "TMS           : D8," &
        "TRSTZn        : D9," &
        "TXCKSEL       : E10," &
        "TXCLK         : H8," &
        "TXOP          : G8," &
        "TXRATE        : B5," &
        "TXRSTn        : H9," &
        "VCC           : (A1, A3, A8, A10, B1, B10, J1, J10, " &
                        " K1, K3, K8, K10 )," &
        "GND           : (D4, D5, D6, D7, E4, E5, E6, E7, " &
                        " F4, F5, F6, F7, G4, G5, G6, G7 )," &
        "BOE           : (D1, D2)," &
        "RXMODE        : A5," &
        "TXCT          : (J5, H5)," &
        "TXD           : (J8, K7, J7, H7, K6, J6, H6, K5)," &
        "TXMODE        : (B6, A6)," &
        "OUT1n         : A9," &
        "OUT1p         : B9," &
        "OUT2n         : A4," &
        "OUT2p         : B4," &
        "RXCLKn        : J4," &
        "RXCLKp        : K4," &
        "RXCLKCp       : C4," &
        "RXOP          : G1," &
        "TDO           : B3," &
        "TXCLKOn       : G10," &
        "TXCLKOp       : G9," &
        "LFIn          : H4," &
        "TXPER         : F8," &
        "RXD           : (H1, G2, H2, J2, K2, G3, H3, J3)," &
        "RXST          : (F3, F2, F1)";

-- This section defines the grouped ports used to identify system
-- I/O signals that have the special characteristic of using more
-- than one pin to carry a bit of data and for which the allowed
-- states of the pins are restricted

   attribute PORT_GROUPING of cyp15g0101: entity is
   "Differential_Voltage ((REFCLKp, REFCLKn),"&
				 "(RXCLKp, RXCLKn),"&
				 "(TXCLKOp, TXCLKOn))";

-- This section specifies the TAP ports.
-- For the TAP TCK port, the parameters in the brackets are:
--        First Field : Maximum  TCK frequency.
--        Second Field: Allowable states TCK may be stopped in.

   attribute TAP_SCAN_CLOCK of TCLK  : signal is (10.0e6, BOTH);
   attribute TAP_SCAN_IN    of TDI   : signal is true;
   attribute TAP_SCAN_MODE  of TMS   : signal is true;
   attribute TAP_SCAN_OUT   of TDO   : signal is true;

-- The following sentence has been commented out while in transition
-- from the earlier revision of the silicon
-- attribute TAP_SCAN_RESET of TRSTZn: signal is true;

-- Specifies the number of bits in the instruction register.

   attribute INSTRUCTION_LENGTH of cyp15g0101: entity is 3;

-- Specifies the boundary-scan instructions implemented in the
-- design and their opcodes.

   attribute INSTRUCTION_OPCODE of cyp15g0101: entity is
     "BYPASS (111)," &
     "EXTEST (000)," &
     "SAMPLE (001)," &
     "IDCODE (010)," &
     "USER1  (011)";

-- Specifies the bit pattern that is loaded into the instruction
-- register when the TAP controller passes through the Capture-IR
-- state. The standard mandates that the two LSBs must be "01".
-- The remaining bits are design specific.

   attribute INSTRUCTION_CAPTURE of cyp15g0101: entity is "001";

-- Specifies the instruction opcode that is reserved for component
-- test during manufacture.

   attribute INSTRUCTION_PRIVATE of cyp15g0101 : entity is
        " USER1";

-- Specifies the bit pattern that is loaded into the DEVICE_ID
-- register during the IDCODE instruction when the TAP controller
-- passes through the Capture-DR state.

   attribute IDCODE_REGISTER of cyp15g0101: entity is
     "0001" &                  -- 4-bit version number
     "1100100000000100" &      -- 16-bit part number
     "00000110100" &           -- 11-bit identity of the manufacturer
     "1";                      -- Required by IEEE Std 1149.1

-- This section specifies the test data register placed between TDI
-- and TDO for each implemented instruction.

   attribute REGISTER_ACCESS of cyp15g0101: entity is
        "BYPASS    (BYPASS)," &
        "BOUNDARY  (EXTEST, SAMPLE)," &
        "DEVICE_ID (IDCODE)," &
        "UTDR1[24] (USER1)";

-- Specifies the length of the boundary scan register.

   attribute BOUNDARY_LENGTH of cyp15g0101: entity is 176;

-- The following list specifies the characteristics of each cell
-- in the boundary scan register from TDI to TDO.
-- The following is a description of the label fields:
--      num     : Is the cell number.
--      cell    : Is the cell type as defined by the standard.
--      port    : Is the design port name. Control cells do not
--                have a port name.
--      function: Is the function of the cell as defined by the
--                standard. Is one of input, output2, output3,
--                bidir, control or controlr.
--      safe    : Specifies the value that the BSR cell should be
--                loaded with for safe operation when the software
--                might otherwise choose a random value.
--      ccell   : The control cell number. Specifies the control
--                cell that drives the output enable for this port.
--      disval  : Specifies the value that is loaded into the
--                control cell to disable the output enable for
--                the corresponding port.
--      rslt    : Resulting state. Shows the state of the driver
--                when it is disabled.

   attribute BOUNDARY_REGISTER of cyp15g0101: entity is
--
--    num   cell   port           function      safe  
-- [ccell  disval  rslt]
--
     "175  (BC_4,  *,             internal,     X),    " &
     "174  (BC_4,  *,             internal,     X),    " &
     "173  (BC_4,  *,             internal,     X),    " &
     "172  (BC_4,  *,             internal,     X),    " &
     "171  (BC_4,  SDASEL,        observe_only, X),    " &
     "170  (BC_4,  SDASEL,        observe_only, X),    " &
     "169  (BC_4,  SPDSEL,        observe_only, X),    " &
     "168  (BC_4,  SPDSEL,        observe_only, X),    " &
     "167  (BC_4,  PARCTL,        observe_only, X),    " &
     "166  (BC_4,  PARCTL,        observe_only, X),    " &
     "165  (BC_4,  RFMODE,        observe_only, X),    " &
     "164  (BC_4,  RFMODE,        observe_only, X),    " &
     "163  (BC_4,  *,             internal,     X),    " &
     "162  (BC_4,  INSEL,         observe_only, X),    " &
     "161  (BC_4,  *,             internal,     X),    " &
     "160  (BC_4,  *,             internal,     X),    " &
     "159  (BC_4,  TRSTZn,         observe_only, X),    " &
     "158  (BC_1,  *,             internal,     X),    " &
     "157  (BC_4,  *,             internal,     X),    " &
     "156  (BC_4,  *,             internal,     X),    " &
     "155  (BC_4,  RXCKSEL,       observe_only, X),    " &
     "154  (BC_4,  RXCKSEL,       observe_only, X),    " &
     "153  (BC_4,  *,             internal,     X),    " &
     "152  (BC_4,  *,             internal,     X),    " &
     "151  (BC_4,  *,             internal,     X),    " &
     "150  (BC_4,  TXCKSEL,       observe_only, X),    " &
     "149  (BC_4,  TXCKSEL,       observe_only, X),    " &
     "148  (BC_4,  *,             internal,     X),    " &
     "147  (BC_4,  *,             internal,     X),    " &
     "146  (BC_4,  *,             internal,     X),    " &
     "145  (BC_4,  *,             internal,     X),    " &
     "144  (BC_1,  *,             internal,     X),    " &
     "143  (BC_4,  *,             internal,     X),    " &
     "142  (BC_4,  *,             internal,     X),    " &
     "141  (BC_4,  *,             internal,     X),    " &
     "140  (BC_4,  *,             internal,     X),    " &
     "139  (BC_1,  RXCLKCp,       output3,      X,137,0,Z),  " &
     "138  (BC_4,  RXCLKCp,       observe_only, X),    " &
     "137  (BC_1,  *,             controlr,     0),    " &
     "136  (BC_1,  *,             internal,     X),    " &
     "135  (BC_1,  *,             internal,     X),    " &
     "134  (BC_1,  *,             internal,     X),    " &
     "133  (BC_1,  *,             internal,     X),    " &
     "132  (BC_1,  *,             internal,     X),    " &
     "131  (BC_1,  *,             internal,     X),    " &
     "130  (BC_1,  *,             internal,     X),    " &
     "129  (BC_1,  *,             internal,     X),    " &
     "128  (BC_1,  *,             internal,     X),    " &
     "127  (BC_1,  *,             internal,     X),    " &
     "126  (BC_1,  *,             internal,     X),    " &
     "125  (BC_1,  *,             internal,     X),    " &
     "124  (BC_1,  *,             controlr,     0),    " &
     "123  (BC_1,  *,             internal,     X),    " &
     "122  (BC_4,  *,             internal,     X),    " &
     "121  (BC_4,  *,             internal,     X),    " &
     "120  (BC_4,  *,             internal,     X),    " &
     "119  (BC_4,  *,             internal,     X),    " &
     "118  (BC_4,  *,             internal,     X),    " &
     "117  (BC_4,  *,             internal,     X),    " &
     "116  (BC_4,  *,             internal,     X),    " &
     "115  (BC_4,  *,             internal,     X),    " &
     "114  (BC_4,  *,             internal,     X),    " &
     "113  (BC_4,  *,             internal,     X),    " &
     "112  (BC_4,  *,             internal,     X),    " &
     "111  (BC_4,  *,             internal,     X),    " &
     "110  (BC_1,  *,             internal,     X),    " &
     "109  (BC_1,  *,             internal,     X),    " &
     "108  (BC_1,  *,             internal,     X),    " &
     "107  (BC_1,  *,             internal,     X),    " &
     "106  (BC_4,  *,             internal,     X),    " &
     "105  (BC_1,  *,             internal,     X),    " &
     "104  (BC_1,  *,             internal,     X),    " &
     "103  (BC_1,  *,             internal,     X),    " &
     "102  (BC_1,  *,             internal,     X),    " &
     "101  (BC_1,  *,             internal,     X),    " &
     "100  (BC_1,  *,             internal,     X),    " &
     "99   (BC_1,  *,             internal,     X),    " &
     "98   (BC_1,  *,             internal,     X),    " &
     "97   (BC_1,  *,             internal,     X),    " &
     "96   (BC_1,  *,             internal,     X),    " &
     "95   (BC_1,  *,             internal,     X),    " &
     "94   (BC_1,  TXCLKOp,       output2,      X),    " &
     "93   (BC_1,  *,             internal,     X),    " &
     "92   (BC_4,  *,             internal,     X),    " &
     "91   (BC_1,  *,             internal,     X),    " &
     "90   (BC_4,  TXRSTn,        observe_only, X),    " &
     "89   (BC_4,  REFCLKp,       observe_only, X),    " &
     "88   (BC_4,  SCSEL,         observe_only, X),    " &
     "87   (BC_4,  *,             internal,     X),    " &
     "86   (BC_1,  *,             internal,     X),    " &
     "85   (BC_4,  *,             internal,     X),    " &
     "84   (BC_1,  *,             internal,     X),    " &
     "83   (BC_4,  *,             internal,     X),    " &
     "82   (BC_1,  TXPER,         output2,      X),    " &
     "81   (BC_4,  TXOP,          observe_only, X),    " &
     "80   (BC_4,  TXCLK,         observe_only, X),    " &
     "79   (BC_4,  TXD(0),        observe_only, X),    " &
     "78   (BC_4,  TXD(1),        observe_only, X),    " &
     "77   (BC_4,  TXD(2),        observe_only, X),    " &
     "76   (BC_4,  TXD(3),        observe_only, X),    " &
     "75   (BC_4,  TXD(4),        observe_only, X),    " &
     "74   (BC_4,  TXD(5),        observe_only, X),    " &
     "73   (BC_4,  TXD(6),        observe_only, X),    " &
     "72   (BC_4,  TXD(7),        observe_only, X),    " &
     "71   (BC_4,  TXCT(0),       observe_only, X),    " &
     "70   (BC_4,  TXCT(1),       observe_only, X),    " &
     "69   (BC_1,  RXCLKp,        output3,      X,67,0,Z),  " &
     "68   (BC_4,  RXCLKp,        observe_only, X),    " &
     "67   (BC_1,  *,             controlr,     0),    " &
     "66   (BC_1,  LFIn,          output2,      X),    " &
     "65   (BC_1,  RXD(7),        output2,      X),    " &
     "64   (BC_1,  RXD(6),        output2,      X),    " &
     "63   (BC_1,  RXD(5),        output2,      X),    " &
     "62   (BC_1,  RXD(4),        output2,      X),    " &
     "61   (BC_1,  RXD(3),        output2,      X),    " &
     "60   (BC_1,  RXD(2),        output2,      X),    " &
     "59   (BC_1,  RXD(1),        output2,      X),    " &
     "58   (BC_1,  RXD(0),        output2,      X),    " &
     "57   (BC_1,  RXOP,          output3,      X,124,0,Z),  " &
     "56   (BC_1,  RXST(0),       output2,      X),    " &
     "55   (BC_1,  RXST(1),       output2,      X),    " &
     "54   (BC_1,  RXST(2),       output2,      X),    " &
     "53   (BC_1,  *,             internal,     X),    " &
     "52   (BC_4,  *,             internal,     X),    " &
     "51   (BC_4,  *,             internal,     X),    " &
     "50   (BC_4,  *,             internal,     X),    " &
     "49   (BC_4,  *,             internal,     X),    " &
     "48   (BC_4,  *,             internal,     X),    " &
     "47   (BC_4,  *,             internal,     X),    " &
     "46   (BC_4,  *,             internal,     X),    " &
     "45   (BC_4,  *,             internal,     X),    " &
     "44   (BC_4,  *,             internal,     X),    " &
     "43   (BC_4,  *,             internal,     X),    " &
     "42   (BC_4,  *,             internal,     X),    " &
     "41   (BC_4,  *,             internal,     X),    " &
     "40   (BC_1,  *,             internal,     X),    " &
     "39   (BC_4,  *,             internal,     X),    " &
     "38   (BC_1,  *,             internal,     X),    " &
     "37   (BC_1,  *,             internal,     X),    " &
     "36   (BC_1,  *,             internal,     X),    " &
     "35   (BC_1,  *,             internal,     X),    " &
     "34   (BC_1,  *,             internal,     X),    " &
     "33   (BC_1,  *,             internal,     X),    " &
     "32   (BC_1,  *,             internal,     X),    " &
     "31   (BC_1,  *,             internal,     X),    " &
     "30   (BC_1,  *,             internal,     X),    " &
     "29   (BC_1,  *,             internal,     X),    " &
     "28   (BC_1,  *,             internal,     X),    " &
     "27   (BC_1,  *,             internal,     X),    " &
     "26   (BC_1,  *,             internal,     X),    " &
     "25   (BC_1,  *,             internal,     X),    " &
     "24   (BC_4,  OELE,          observe_only, X),    " &
     "23   (BC_4,  DECMODE,       observe_only, X),    " &
     "22   (BC_4,  DECMODE,       observe_only, X),    " &
     "21   (BC_4,  BISTLE,        observe_only, X),    " &
     "20   (BC_4,  FRAMCHAR,      observe_only, X),    " &
     "19   (BC_4,  FRAMCHAR,      observe_only, X),    " &
     "18   (BC_4,  *,             internal,     X),    " &
     "17   (BC_4,  *,             internal,     X),    " &
     "16   (BC_4,  BOE(1),        observe_only, X),    " &
     "15   (BC_4,  BOE(0),        observe_only, X),    " &
     "14   (BC_4,  TXMODE(0),     observe_only, X),    " &
     "13   (BC_4,  TXMODE(0),     observe_only, X),    " &
     "12   (BC_4,  TXMODE(1),     observe_only, X),    " &
     "11   (BC_4,  TXMODE(1),     observe_only, X),    " &
     "10   (BC_4,  RXMODE,        observe_only, X),    " &
     "9    (BC_4,  RXMODE,        observe_only, X),    " &
     "8    (BC_4,  *,             internal,     X),    " &
     "7    (BC_4,  *,             internal,     X),    " &
     "6    (BC_4,  TXRATE,        observe_only, X),    " &
     "5    (BC_4,  *,             internal,     X),    " &
     "4    (BC_4,  RXRATE,        observe_only, X),    " &
     "3    (BC_4,  RXLE,          observe_only, X),    " &
     "2    (BC_4,  LPEN,          observe_only, X),    " &
     "1    (BC_4,  RFEN,          observe_only, X),    " &
     "0    (BC_4,  *,             internal,     X)     ";

 end cyp15g0101;