Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - How to handle floating inputs in a device?

 
Thread Tools Search this Thread
Old 09-15-2005, 03:28 PM   #1
Default How to handle floating inputs in a device?



I am doing HDL coding for a dual-purpose FPGA/ASIC: The same FPGA/ASIC
will be used on two different board configurations.

The boards have been completed and in one board configuration, I now
have some floating inputs, i.e. FPGA/ASIC physical pins (for inputs)
are not connected/driven.

Can I handle floating inputs with HDL coding ?

Thanks,

Calvin



Calvin
  Reply With Quote
Old 09-15-2005, 03:45 PM   #2
Zara
 
Posts: n/a
Default Re: How to handle floating inputs in a device?
Calvin wrote:
> I am doing HDL coding for a dual-purpose FPGA/ASIC: The same FPGA/ASIC
> will be used on two different board configurations.
>
> The boards have been completed and in one board configuration, I now
> have some floating inputs, i.e. FPGA/ASIC physical pins (for inputs)
> are not connected/driven.
>
> Can I handle floating inputs with HDL coding ?
>
> Thanks,
>
> Calvin
>


The best way is to implement PULL-UP or PULL-DOWN, whichever is better,
because 'Z' is an output state, not a detectable input state


Zara
  Reply With Quote
Old 09-15-2005, 04:13 PM   #3
Calvin
 
Posts: n/a
Default Re: How to handle floating inputs in a device?

If I have a port 'xyz' defined as a std_logic input (its physical pin
is not connected), how can I assign a pullup 'H' or a pulldown 'L' to
that port in HDL ?

modelsim vcom results in an error, saying "Can not drive input signal
'xyz' "!

I do not have to worry about this port if it is a bi-directional one,
do I ?

Thanks,

Calvin



Calvin
  Reply With Quote
Old 09-15-2005, 04:58 PM   #4
Zara
 
Posts: n/a
Default Re: How to handle floating inputs in a device?
Calvin wrote:
> If I have a port 'xyz' defined as a std_logic input (its physical pin
> is not connected), how can I assign a pullup 'H' or a pulldown 'L' to
> that port in HDL ?
>
> modelsim vcom results in an error, saying "Can not drive input signal
> 'xyz' "!
>
> I do not have to worry about this port if it is a bi-directional one,
> do I ?
>
> Thanks,
>
> Calvin
>


The way to simulte it is , if it is a PULL-UP, assining to it a '1' if
driven high or floating, and a '0' if driven low.

Bi-directional ports are tricky, I would not recommend them except when
dealing with external pins in synthesis. For simulation it is best to
separate inputs from outputs and express the behaviour of the ports in
the testbench



Zara
  Reply With Quote
Old 09-15-2005, 05:14 PM   #5
Calvin
 
Posts: n/a
Default Re: How to handle floating inputs in a device?

Sorry that I did not make my question clear!

In my FPGA/ASIC, if I have an entity defined as follows:

entity design_top is
port (
...
xyz : in std_logic;
...
);
end design_top;

If the FPGA/ASIC physical pin for xyz input is NOT CONNECTED (left
floating), how can I take care of this floating input port in my HDL
coding ?

I can not assign a value to this port by doing

xyz <= '0';

or any other values since modelsim vcom results in an error, saying
"Can not drive input signal 'xyz' "!

Thanks,

Calvin



Calvin
  Reply With Quote
Old 09-15-2005, 05:49 PM   #6
Mike Treseler
 
Posts: n/a
Default Re: How to handle floating inputs in a device?
Calvin wrote:

> If the FPGA/ASIC physical pin for xyz input is NOT CONNECTED (left
> floating), how can I take care of this floating input port in my HDL
> coding ?


You could add pulldown resistors to the board
or use device specific attributes if the FPGA
has programmable terminations.

You could use different HDL configurations
for each board.

You could add a mode input and extra logic
to the fpga so that it knows what board is
attached and provides the correct
input muxing for every case.

-- Mike Treseler


Mike Treseler
  Reply With Quote
Old 09-15-2005, 06:19 PM   #7
Calvin
 
Posts: n/a
Default Re: How to handle floating inputs in a device?

Hi Mike,

I like your ideas. Since the board is already done, they do not want to
add pulldown resistors to unconnected input pins!

Based on your third option, can I do something like the following:

entity design_top is
port (
...
xyz : in std_logic;
config_select : in std_logic;
... );

signal xyz_internal : std_logic;
....
with config_select select
xyz_internal <= xyz when '1', -- input pin connected
'0' when others; -- input pin
unconnected

....



Thanks,

Calvin



Calvin
  Reply With Quote
Old 09-16-2005, 03:25 PM   #8
Peter
 
Posts: n/a
Default Re: How to handle floating inputs in a device?
If your FPGA is in-system reprogrammable you can use different code for
each application. If you dont use an input, it will be set to output or
tristate depending on your tools.
If you have an OTP FPGA or ASIC, you are in trouble. Unused inputs
shall be connected to a valid logic level to prevent excessive current
drain. There I cant see any alternative to a board redesign.

/Peter



Peter
  Reply With Quote
Old 09-16-2005, 03:26 PM   #9
Peter
 
Posts: n/a
Default Re: How to handle floating inputs in a device?
If your FPGA is in-system reprogrammable you can use different code for
each application. If you dont use an input, it will be set to output or
tristate depending on your tools.
If you have an OTP FPGA or ASIC, you are in trouble. Unused inputs
shall be connected to a valid logic level to prevent excessive current
drain. There I cant see any alternative to a board redesign.

/Peter



Peter
  Reply With Quote
Old 09-16-2005, 04:33 PM   #10
jens
 
Posts: n/a
Default Re: How to handle floating inputs in a device?
Check your FPGA/ASIC documentation to see if you can assign a weak
pull-up to your input (I just checked the Altera Stratix handbook and
you can, I think you can with Xilinx Virtex too). Then you can avoid
both excessive power consumption and a board re-design.



jens
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
No drivers are installed for this device. wcwager General Help Related Topics 0 01-27-2009 07:57 PM
USB Device Not Recognized SHirsch Hardware 2 05-19-2006 11:23 AM
Upconverting, Many Inputs rob DVD Video 0 01-08-2006 09:15 AM
DVD Verdict reviews: A STORY OF FLOATING WEEDS / FLOATING WEEDS: CRITERION COLLECTION and more! DVD Verdict DVD Video 0 04-20-2004 10:04 AM
non plug and play device on com port? David K A+ Certification 1 07-18-2003 08:38 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46