FileReaderDevice dev = (FileReaderDevice) tile.getAttachedDevice(); fw.write("\tnop\troute $csto->$c" + rawChip.getDirection(tile, dev.getPort()) + "o\n");
LinkedList<FileReaderDevice> frs = tile.getAttachedFileReaders(); for (int i = 0; i < frs.size(); i++) { fw.write("\tnop\troute $csto->$c" + rawChip.getDirection(tile, frs.get(i).getPort()) + "o\n"); }
    private static void printIOStartUp(RawTile tile, FileWriter fw)        throws Exception {        if (streamGraph.getFileState().isConnectedToFileReader(tile)) {            FileReaderDevice dev = (FileReaderDevice) tile.getAttachedDevice();            fw.write("\tnop\troute $csto->$c"                     + rawChip.getDirection(tile, dev.getPort()) + "o\n");        }    }