Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17267 Discussions

How to set to 0 value unconnected input pin?

Altera_Forum
Honored Contributor II
12,803 Views

Hi! 

 

In my design, some FPGA inputs could be left unconnected. But the value of this unconnected pins must be 0. 

I've found out that by default this pins are set to 1. So it is force me to connect output source to all pins, otherwise it won't work properly. 

 

The question is, how could I set this temporary unused pins to 0? I use Quartus II. 

 

Thank you!
0 Kudos
7 Replies
Altera_Forum
Honored Contributor II
9,333 Views

 

--- Quote Start ---  

Hi! 

 

In my design, some FPGA inputs could be left unconnected. But the value of this unconnected pins must be 0. 

I've found out that by default this pins are set to 1. So it is force me to connect output source to all pins, otherwise it won't work properly. 

 

The question is, how could I set this temporary unused pins to 0? I use Quartus II. 

 

Thank you! 

--- Quote End ---  

 

 

Wouldn't it simply to just set your pins as GND source instead of VCC on your input pins?
0 Kudos
Altera_Forum
Honored Contributor II
9,337 Views

 

--- Quote Start ---  

Wouldn't it simply to just set your pins as GND source instead of VCC on your input pins? 

--- Quote End ---  

 

 

true. 

 

The unused pins are set in project assignments => device => device and pin options => unused pins 

 

There are several options: 

1) default(hopefully) "as tristated inputs with weak pullup", Quartus connects it to Vcc internally, no need for pcb wiring to Vcc 

2) "as tristated inputs", you need to connect to board Vcc or ground 

3) "as output driving ground", quartus connects it to gnd internally, no need for wiring to pcb gnd. This is what you are after, provides more ground. 

4) "as outputs driving unspecified signal", 

5) "as tristated inputs with bus hold circuitry" 

 

I am not clear about last two but assume it means floating, this is bad , consumes extra power and acts as antennas for noise.
0 Kudos
Altera_Forum
Honored Contributor II
9,337 Views

Thank you for your quick replies! 

 

 

--- Quote Start ---  

Wouldn't it simply to just set your pins as GND source instead of VCC on your input pins? 

--- Quote End ---  

 

 

I think that is what i'm trying to do. But i don't know how to do it internally in Quartus II or by scripting. I'm totally beginner. 

 

 

--- Quote Start ---  

 

 

The unused pins are set in project assignments => device => device and pin options => unused pins 

 

There are several options: 

1) default(hopefully) "as tristated inputs with weak pullup", Quartus connects it to Vcc internally, no need for pcb wiring to Vcc 

2) "as tristated inputs", you need to connect to board Vcc or ground 

3) "as output driving ground", quartus connects it to gnd internally, no need for wiring to pcb gnd. This is what you are after, provides more ground. 

4) "as outputs driving unspecified signal", 

5) "as tristated inputs with bus hold circuitry" 

 

--- Quote End ---  

 

 

I have tried to set "as output driving ground" to all unused pins, but when I do it, the programmer tool fails to program my device. 

I can't quite understand whether unused pins, are all those pins that are assigned in pin planner but not wired on board, or those are pins that are not assigned in pin planner at all? 

 

I mean, I want to use pin as ordinary input but when I unplug connector to it, the pin value should be 0. And unfortunately there is no pull-down resistor.
0 Kudos
Altera_Forum
Honored Contributor II
9,337 Views

 

--- Quote Start ---  

 

 

I have tried to set "as output driving ground" to all unused pins, but when I do it, the programmer tool fails to program my device. 

I can't quite understand whether unused pins, are all those pins that are assigned in pin planner but not wired on board, or those are pins that are not assigned in pin planner at all? 

 

I mean, I want to use pin as ordinary input but when I unplug connector to it, the pin value should be 0. And unfortunately there is no pull-down resistor. 

--- Quote End ---  

 

 

Unconnected pins are those not used by you (not wired internally) so the unused options don't apply to your case.  

You can apply '0' internally provided you have some switch tied up to the connector. when connector is in it drives the pin else it is driven internally by your logic.
0 Kudos
Altera_Forum
Honored Contributor II
9,333 Views

 

--- Quote Start ---  

Unconnected pins are those not used by you (not wired internally) so the unused options don't apply to your case.  

You can apply '0' internally provided you have some switch tied up to the connector. when connector is in it drives the pin else it is driven internally by your logic. 

--- Quote End ---  

 

 

Thank you! It is clear to me now.
0 Kudos
Altera_Forum
Honored Contributor II
9,333 Views

 

--- Quote Start ---  

true. 

 

The unused pins are set in project assignments => device => device and pin options => unused pins 

 

There are several options: 

1) default(hopefully) "as tristated inputs with weak pullup", Quartus connects it to Vcc internally, no need for pcb wiring to Vcc 

2) "as tristated inputs", you need to connect to board Vcc or ground 

3) "as output driving ground", quartus connects it to gnd internally, no need for wiring to pcb gnd. This is what you are after, provides more ground. 

4) "as outputs driving unspecified signal", 

5) "as tristated inputs with bus hold circuitry" 

 

I am not clear about last two but assume it means floating, this is bad , consumes extra power and acts as antennas for noise. 

--- Quote End ---  

 

 

Hi kaz, 

 

Does item 3) make hardware dangerous? At least cause more power consumption.
0 Kudos
Altera_Forum
Honored Contributor II
9,333 Views

 

--- Quote Start ---  

Hi kaz, 

 

Does item 3) make hardware dangerous? At least cause more power consumption. 

--- Quote End ---  

 

 

more power, yes somewhat but floating consumes even more power. 

dangerous? I don't expect Altera to have that setting then for their devices.
0 Kudos
Reply