import byucc.jhdl.Logic.Logic;
import byucc.jhdl.base.HWSystem;
import byucc.jhdl.base.Node;
import byucc.jhdl.base.TestBench;
import byucc.jhdl.base.Wire;
import byucc.jhdl.Xilinx.Virtex.VirtexTechMapper;

/** TestBench for the TestSimCallback class. */
public class tb_TestSimCallback extends Logic implements TestBench {

  /** Main method to run the test bench.  This method doesn't actual
   * do anything more than simply verify that we can build the
   * circuit, then it returns. */
  public static void main(String argv[]) {
    HWSystem hw = new HWSystem();
    tb_TestSimCallback tb = new tb_TestSimCallback(hw);

    // No clocking is done here since this is intended to be run only from inside Jab
  }

  public void reset() {  }
  public void clock() {  }

  /** Builds a 4-bit TestSimCallback. */
  public tb_TestSimCallback(Node parent) {
    super(parent);
    VirtexTechMapper tm = new VirtexTechMapper( true );
    setDefaultTechMapper( tm );
    Wire q = Logic.wire(this, 4, "q");
    new TestSimCallback(this, q, null);
  }
}


