Default input value

M

mjl296@hotmail.com

Guest
In synthesisable code, is it possible to give a default value to a
module input, such that if it is not connected it will get the default
value rather than Z?

Thanks,

Mark
 
On Fri, 21 Sep 2007 13:17:18 -0000, "mjl296@hotmail.com"
<mjl296@hotmail.com> wrote:

In synthesisable code, is it possible to give a default value to a
module input, such that if it is not connected it will get the default
value rather than Z?
Not as far as I'm aware.

You can easily do so by putting a pullup or pulldown
on the port net inside the module, BUT that is not
synthesisable by any tool I know about.

S'pose you could use VHDL instead :)
--
Jonathan Bromley, Consultant

DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services

Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK
jonathan.bromley@MYCOMPANY.com
http://www.MYCOMPANY.com

The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.
 
Jonathan Bromley wrote:
On Fri, 21 Sep 2007 13:17:18 -0000, "mjl296@hotmail.com"
mjl296@hotmail.com> wrote:

In synthesisable code, is it possible to give a default value to a
module input, such that if it is not connected it will get the default
value rather than Z?

Not as far as I'm aware.

You can easily do so by putting a pullup or pulldown
on the port net inside the module, BUT that is not
synthesisable by any tool I know about.

S'pose you could use VHDL instead :)
In a Xilinx part, you can specify a pullup or pulldown on an input pin
so it will pull to a default when not driven. But you can only do this
if the hardware supports it.
 

Welcome to EDABoard.com

Sponsor

Back
Top