Пример #1
0
        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);
        }
Пример #2
0
        public void AddInternalIO(FIRIO io)
        {
            FIRIO flipped = io.Flip(this);

            AddIO(flipped, io);
        }
Пример #3
0
        public void AddExternalIO(FIRIO io)
        {
            FIRIO flipped = io.Flip(this);

            AddIO(io, flipped);
        }