Article ID: 000078007 Content Type: Product Information & Documentation Last Reviewed: 02/13/2006

How can I simulate pull-up and pull-down resistors in the ModelSim® software?

Environment

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Description You can use two variable types, tri0 and tri1, to simulate pull-up and pull-down resistors when connecting the module's output/bidirectional net signals. These two variable types simulate the net signals being pulled-down or pulled-up when this signal is not driven. An example declaration is as follows:
module pullup_tb;
    reg a, b, d, clk;              //these are inputs
    tri1 c,q;                         //these are outputs; instead of:    wire c, q;

   weak_pullupmodelsim my_wkpu( .a(a),
.b(b),
.c(c),
.d(d),
.clk(clk),
.q(q)
  );

Simulating the above example will pull-up net signals c and q to simulate the way these signals would act on the board.

Related Products

This article applies to 1 products

Intel® Programmable Devices

1