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

Reply

VHDL - Can you implement a pull-up resistor in VHDL?

 
Thread Tools Search this Thread
Old 12-04-2007, 01:48 PM   #1
Default Can you implement a pull-up resistor in VHDL?


Hello,

I am using Spartan-3 XC31000. You can enable on/off pull-up/pull-down
resistors with ISE; however, i would like to do this in VHDL so that i
can enable them during runtime. At first I thought these lines would
synthese, but I was wrong.


entity pullup is
port (inp_i :in std_logic;
outp_o : out std_logic);
end pullup;

architecture rtl of pullup is
signal s_inp_i : std_logic;
begin
s_inp_i <= 'H';
s_inp_i <= inp_i;
outp_o <= inp_i;
end rtl;

Any Idea how to do this?

Thanks;
JJ


jidan1@hotmail.com
  Reply With Quote
Old 12-04-2007, 02:07 PM   #2
Peter
 
Posts: n/a
Default Re: Can you implement a pull-up resistor in VHDL?
>
> Any Idea how to do this?
>

Hi,

I am not familiar with Xilinx software, but when designing with e.g.
Actel you instantiate a certain I/O-pad in your vhdl code.

/Peter


Peter
  Reply With Quote
Old 12-04-2007, 02:42 PM   #3
Jan
 
Posts: n/a
Default Re: Can you implement a pull-up resistor in VHDL?
You cannot dynamically enable/disable pullups in xilinx devices.
You can instantiate a PULLUP/PULLDOWN primitive, but it cannot change
after configuration..
see http://toolbox.xilinx.com/docsan/xil...3edl/s3edl.pdf


Jan
  Reply With Quote
Old 12-04-2007, 03:10 PM   #4
Dave Pollum
 
Posts: n/a
Default Re: Can you implement a pull-up resistor in VHDL?
On Dec 4, 8:48 am, jid...@hotmail.com wrote:
> Hello,
>
> I am using Spartan-3 XC31000. You can enable on/off pull-up/pull-down
> resistors with ISE; however, i would like to do this in VHDL so that i
> can enable them during runtime. At first I thought these lines would
> synthese, but I was wrong.
>
> entity pullup is
> port (inp_i :in std_logic;
> outp_o : out std_logic);
> end pullup;
>
> architecture rtl of pullup is
> signal s_inp_i : std_logic;
> begin
> s_inp_i <= 'H';
> s_inp_i <= inp_i;
> outp_o <= inp_i;
> end rtl;
>
> Any Idea how to do this?
>
> Thanks;
> JJ


I don't know how to implement pull-up/pull-down, but you can't assign
values to input port "inp_i".
-Dave Pollum


Dave Pollum
  Reply With Quote
Old 12-05-2007, 03:25 AM   #5
Mark McDougall
 
Posts: n/a
Default Re: Can you implement a pull-up resistor in VHDL?
Dave Pollum wrote:

> but you can't assign
> values to input port "inp_i".


And he hasn't... ?!?

Regards,

--
Mark McDougall, Engineer
Virtual Logic Pty Ltd, <http://www.vl.com.au>
21-25 King St, Rockdale, 2216
Ph: +612-9599-3255 Fax: +612-9599-3266


Mark McDougall
  Reply With Quote
Old 12-05-2007, 03:36 AM   #6
Mark McDougall
 
Posts: n/a
Default Re: Can you implement a pull-up resistor in VHDL?
wrote:

> I am using Spartan-3 XC31000. You can enable on/off pull-up/pull-down
> resistors with ISE; however, i would like to do this in VHDL so that i
> can enable them during runtime.


Are you talking about having "pull-ups" _inside_ the FPGA, which can be
turned on/off whilst the image is running?

I've done a few designs with an "open-collector" bus connecting several
internal modules, plus an external IO... each internal module uses the
"resolved" bus signal as input, and drives "oe" as an output. The
top-level "resolved" signal is computed combinatorially from the external
input plus the internal oe signals... and of course the oe's combine to
drive the I/O pin direction as well.

Regards,

--
Mark McDougall, Engineer
Virtual Logic Pty Ltd, <http://www.vl.com.au>
21-25 King St, Rockdale, 2216
Ph: +612-9599-3255 Fax: +612-9599-3266


Mark McDougall
  Reply With Quote
Old 12-05-2007, 11:08 AM   #7
jidan1@hotmail.com
 
Posts: n/a
Default Re: Can you implement a pull-up resistor in VHDL?

> Are you talking about having "pull-ups" _inside_ the FPGA, which can be
> turned on/off whilst the image is running?


Exactly. But it seems that it's unfortunatly not possible while the
FPGA is running; it has to be done during configuration ;(

JJ


jidan1@hotmail.com
  Reply With Quote
Old 12-05-2007, 01:06 PM   #8
Kim Enkovaara
 
Posts: n/a
Default Re: Can you implement a pull-up resistor in VHDL?
Jan wrote:
> You cannot dynamically enable/disable pullups in xilinx devices.
> You can instantiate a PULLUP/PULLDOWN primitive, but it cannot change
> after configuration..
> see http://toolbox.xilinx.com/docsan/xil...3edl/s3edl.pdf


For Virtex series it might be possible to do this with dynamic
reconfiguration. But for Spartan the pullup/down is not
dynamic setting.

--Kim


Kim Enkovaara
  Reply With Quote
Old 12-05-2007, 05:46 PM   #9
Dave Pollum
 
Posts: n/a
Default Re: Can you implement a pull-up resistor in VHDL?
On Dec 4, 10:25 pm, Mark McDougall <ma...@vl.com.au> wrote:
> Dave Pollum wrote:
> > but you can't assign
> > values to input port "inp_i".

>
> And he hasn't... ?!?
>
> Regards,
>
> --
> Mark McDougall, Engineer
> Virtual Logic Pty Ltd, <http://www.vl.com.au>
> 21-25 King St, Rockdale, 2216
> Ph: +612-9599-3255 Fax: +612-9599-3266


DOH! I missed "s_inp_i". Next time I'll be sure to wear my glasses!
-Dave Pollum


Dave Pollum
  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
On File Versioning on .Net rajendracold Software 1 12-24-2008 06:04 AM
Implement PKI dannizap83 Software 0 05-19-2008 05:41 PM
Microsoft to Implement Worldwide Anti-Piracy Initiative Bum A+ Certification 0 03-04-2005 08:28 PM
FS: Troytec / TestKiller Certification Study Guides David A+ Certification 0 11-11-2004 01:46 AM




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