public Wire(string name, FIRIO inputType, FirrtlNode defNode) : base(defNode) { if (!inputType.IsPassiveOfType <Input>()) { throw new Exception("Wire input type must be a passive input type."); } this.Name = name; this.In = inputType.Copy(this); this.Result = inputType.Flip(this); AddPairedIO(In, Result); In.SetName(Name + "/in"); Result.SetName(Name); }
public void AddInternalIO(FIRIO io) { FIRIO flipped = io.Flip(this); AddIO(flipped, io); }
public void AddExternalIO(FIRIO io) { FIRIO flipped = io.Flip(this); AddIO(io, flipped); }