Re: pullups



On Tue, 9 Sep 2008 23:41:24 -0700 (PDT), ujku wrote:

I want to write the following configuration in verilog or
systemverilog:
2 tristate buffers which drives a certain wire A.
both bufferes have the same enable signal expect that it is inverted
in one of the buffers. additionaly the wire A is puuledup with
something like this

pullup pw(A);

The problem is that this doesnt allow to the buffers to drive a low
level on that wire. In that case i get X on my simulation.

Really? If your 3-state drivers are of the default "strong"
driving strength, there should be no problem.

This works fine for me:

module tristate (input choose, d0, d1, output y);
assign y = choose ? d1 : 1'bz;
assign y = choose ? 1'bz : d0;
pullup pu_y(y);
endmodule

However, you don't need the pullup because your tristate
enable is simply acting as a multiplexer. This is
just as good, faster to simulate and more synthesis-friendly:

assign y = choose ? d1 : d0;
--
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@xxxxxxxxxxxxx
http://www.MYCOMPANY.com

The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.
.



Relevant Pages

  • pullups
    ... tristate buffers which drives a certain wire A. ... Ayn workaround about this configuration? ...
    (comp.lang.verilog)
  • Re: Voice annunciated test box circuitry
    ... >> test boxes for simple location of the number of a wire that has been ... >> of the wires with the lead one of the leds will light showing which pin ... > You can buy digital voice recorder chips from windbond ... You'd need 32 buffers, and 32 pins to select them. ...
    (sci.electronics.basics)
  • Re: libata in 2.4.24?
    ... > The drive's buffers isn't good enough. ... If power is lost the write will be lost ... > and the database corrupt. ... Some IDE _and/or_ SCSI drives do not cache writes. ...
    (Linux-Kernel)
  • Re: HDTV motion glitches
    ... With the big buffers in today's disk drives ... I expect that the final released drivers will provide better use of the ... > especially since Media Player can do it. ...
    (microsoft.public.windows.mediacenter)
  • Re: SAS5IR performance issue with Dell 860
    ... They seem to be quite well spec'ed servers with management and everything - but I am experiencing av major performance issue with the disc i/o. ... The BSD buffers can generally be left alone to 'do the right thing'. ... Buffers 'managed by' the controller, whether physically onboard or an allocated chunk of system RAM depend on the needs of your application. ... But write performance of 7-8MB/sec is just too low for that - is the controller /sata drives really that slow? ...
    (freebsd-stable)