Exemplo n.º 1
0
        private static List <FIRIO> CreateIO(FIRIO inputType, int addressWidth, FIRRTLNode node)
        {
            FIRIO dataOut = inputType.Flip(node);

            dataOut.SetName("rdata");

            FIRIO dataIn = inputType.Copy(node);

            dataIn.SetName("wdata");

            FIRIO mask = inputType.Copy(node);

            mask.SetName("wmask");
            AsMaskType(mask);

            List <FIRIO> io = new List <FIRIO>();

            io.Add(new Input(node, "wmode", new UIntType(1)));
            io.Add(dataOut);
            io.Add(dataIn);
            io.Add(mask);
            io.Add(new Input(node, "addr", new UIntType(addressWidth)));
            io.Add(new Input(node, "en", new UIntType(1)));
            io.Add(new Input(node, "clk", new ClockType()));

            return(io);
        }
Exemplo n.º 2
0
        private static List <FIRIO> CreateIO(FIRIO inputType, int addressWidth, FIRRTLNode node)
        {
            FIRIO dataOut = inputType.Flip(node);

            dataOut.SetName("data");

            List <FIRIO> io = new List <FIRIO>();

            io.Add(dataOut);
            io.Add(new Input(node, "addr", new UIntType(addressWidth)));
            io.Add(new Input(node, "en", new UIntType(1)));
            io.Add(new Input(node, "clk", new ClockType()));

            return(io);
        }