Forum Discussion

FBels's avatar
FBels
Icon for New Contributor rankNew Contributor
6 years ago

What is the state of a Cyclone IV unconnected input that goes to user logic

Say a user design consists of an XOR gate.

Input A,

Input B,

Output C.

Always @(*) C = A && ~B || ~A && B;

For whatever reason though the PCB does not connect input A to anything.

What is the default floating electrical state of input A? Is it guaranteed? Does leaving it floating incur ESD or device damage risk?

5 Replies

  • ak6dn's avatar
    ak6dn
    Icon for Regular Contributor rankRegular Contributor

    Depends on how the device was configured. Inputs have both a BUS HOLD and PASSIVE PULLUP option. Either one or the other, or neither, is possible. A CMOS input should not be left floating, it can just propagate noise otherwise. So the answer is 'it depends'.

    If passive pullup is configured, then if unconnected it would be HIGH.

    If bus hold is configured, then if unconnected it would be HIGH or LOW.

    If neither of the above are configured (not recommended) it could be anything, possibly high frequency noise.

    • FBels's avatar
      FBels
      Icon for New Contributor rankNew Contributor

      ​ak6dn et al,

      I'm also concerned that stray low-current HV ESD impulse noise can fry an unconnected non-pulled up or non-bus-hold input, assuming it has negligible ESD withstand capability. Concern that a fairly low current ESD/surge stray can furthermore induce catastrophic latch-up .

      What is even more concerning is what to do with a Cyclone IV's unconnected dedicated clock input pins! As far as I know there is no option for enabling bus hold or weak pullup in their assignments.

      • ak6dn's avatar
        ak6dn
        Icon for Regular Contributor rankRegular Contributor

        For any unused input, enable the passive pullup. No reasonable designer would let a CMOS input float. Don't do it.

        Enable passive pullup, or add an external pullup/pulldown, as appropriate, for any iinput that may ever possibly not be driven by an external source.

  • AndyN's avatar
    AndyN
    Icon for Occasional Contributor rankOccasional Contributor

    Are you using the programmable pull-up resistor? If so, then yes, the state is known...