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
|
|
0
|
|
|
|
Reply
|
jidan1
|
12/4/2007 1:48:13 PM |
|
>
> 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
|
|
0
|
|
|
|
Reply
|
Peter
|
12/4/2007 2:07:37 PM
|
|
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/xilinx9/books/docs/s3edl/s3edl.pdf
|
|
0
|
|
|
|
Reply
|
Jan
|
12/4/2007 2:42:14 PM
|
|
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
|
|
0
|
|
|
|
Reply
|
Dave
|
12/4/2007 3:10:37 PM
|
|
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
|
|
0
|
|
|
|
Reply
|
Mark
|
12/5/2007 3:25:19 AM
|
|
jidan1@hotmail.com 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
|
|
0
|
|
|
|
Reply
|
Mark
|
12/5/2007 3:36:46 AM
|
|
> 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
|
|
0
|
|
|
|
Reply
|
jidan1
|
12/5/2007 11:08:41 AM
|
|
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/xilinx9/books/docs/s3edl/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
|
|
0
|
|
|
|
Reply
|
Kim
|
12/5/2007 1:06:12 PM
|
|
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
|
|
0
|
|
|
|
Reply
|
Dave
|
12/5/2007 5:46:08 PM
|
|
|
8 Replies
306 Views
(page loaded in 0.064 seconds)
Similiar Articles: Can you implement a pull-up resistor in VHDL? - comp.lang.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 c... DRP of the Virtex 5 PLL - comp.arch.fpgavhdl code for the 2-line lcd on xilinx boards - comp.arch.fpga ... Can you implement a pull-up resistor in VHDL? - comp.lang.vhdl ... At first I thought these lines would ... sccb(I2C) for ov7670 - comp.arch.embeddedCan you implement a pull-up resistor in VHDL? - comp.lang.vhdl ... sccb(I2C) for ov7670 - comp.arch.embedded Can you implement a pull-up resistor in VHDL? - comp.lang.vhdl ... Implement a JTAG controller in an FPGA - comp.arch.fpgaCan you implement a pull-up resistor in VHDL? - comp.lang.vhdl ... Newbie's first FPGA board ! - comp.arch.fpga I have set HSWAP to use pull-up resistors on all pins during ... how to do a 1 to 4 demultiplexer in vhdl? - comp.lang.vhdl ...Can you implement a pull-up resistor in VHDL? - comp.lang.vhdl ... Hello, I am using Spartan-3 XC31000. You can enable on/off pull-up/pull-down resistors with ISE; however ... What is 'drive strength' for? (Spartan 3) - comp.arch.fpga ...Can you implement a pull-up resistor in VHDL? - comp.lang.vhdl ... Hello, I am using Spartan-3 XC31000. You can enable on/off pull-up/pull-down resistors ... input plus ... Xilinx Spartan 3, SelectMap, Mode pins, Dynamic Reconfiguration ...Can you implement a pull-up resistor in VHDL? - comp.lang.vhdl ... Xilinx Spartan 3, SelectMap, Mode pins, Dynamic Reconfiguration ... Can you implement a pull-up resistor ... FLASH memory VHDL controller - comp.arch.fpga... for ov7670 - comp.arch.embedded By using more =93advanced=94 ARM you will get a memory flash controller, may came in handy ... Can you implement a pull-up resistor in VHDL ... vhdl code for the 2-line lcd on xilinx boards - comp.arch.fpga ...Can you implement a pull-up resistor in VHDL? - comp.lang.vhdl ... At first I thought these lines would ... Hi, I am not familiar with Xilinx software, but when designing ... Xilinx IO drive level constrain - comp.arch.fpgaCan you implement a pull-up resistor in VHDL? - comp.lang.vhdl ..... modules, plus an external IO... each internal module uses the "resolved" bus signal as input, and ... Can you implement a pull-up resistor in VHDL? - comp.lang.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 c... 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 7/22/2012 5:39:10 AM
|