import byucc.jhdl.base.CellInterface;
import byucc.jhdl.base.Node;
import byucc.jhdl.base.Wire;
import byucc.jhdl.Logic.Logic;

/** A very basic JHDL design that can be used for simple
 * demonstrations and examples.
 * @author Anthony Slade */
public class AndNRegNBit extends Logic {
  public static CellInterface[]
    cell_interface = {
      in("inA","width"),
      in("inB","width"),
      in("inC","width"),
      out("out","width"),
      param("width",INTEGER),
    };
  public AndNRegNBit(Node parent, Wire a, Wire b, Wire c, Wire o) {
    super(parent);
    int width = a.getWidth();
    bind("width",width);
    connect("inA", a);
    connect("inB", b);
    connect("inC", c);
    connect("out", o);

    reg_o(and(a,b,c),o);
  }
}
