Package edu.byu.ece.rapidSmith.bitstreamTools.bitstream

Examples of edu.byu.ece.rapidSmith.bitstreamTools.bitstream.PacketListCRC


   
    int idCode = spec.getIntDeviceIDCode();

    // Creates the initial packets
    BitstreamGenerator v4gen = V4BitstreamGenerator.getSharedInstance();
    PacketListCRC packets = v4gen.createInitialPartialBitstream(idCode);

    // TODO: Create data packets here
    final int size = 1312;
    List<Integer> data = new ArrayList<Integer>(size);
    for (int i = 0; i < size; i++ )
View Full Code Here


    /**
     * This method creates the initial part of most configuration bitstreams.
     **/
    public PacketListCRC createInitialFullBitstream(int idcode) {
   
        PacketListCRC packets = new PacketListCRC();
   
        packets.add(PacketUtils.NOP_PACKET);
        packets.add(Packet.buildOneWordPacket(PacketOpcode.WRITE, RegisterType.WBSTAR, 0));
        packets.add(PacketUtils.NULL_CMD_PACKET);
        packets.add(PacketUtils.NOP_PACKET);
        packets.add(PacketUtils.RCRC_CMD_PACKET);
        packets.addAll(PacketUtils.NOP_PACKETS(2));
        packets.add(Packet.buildOneWordPacket(PacketOpcode.WRITE, RegisterType.TIMER, 0));
        packets.add(Packet.buildOneWordPacket(PacketOpcode.WRITE, RegisterType.UNKNOWN0, 0));
        packets.add(PacketUtils.COR_PACKET(0x00003FE5));
        packets.add(Packet.buildOneWordPacket(PacketOpcode.WRITE, RegisterType.COR1, 0));
        packets.add(PacketUtils.IDCODE_PACKET(idcode));
        packets.add(PacketUtils.SWITCH_CMD_PACKET);
        packets.add(PacketUtils.NOP_PACKET);
        packets.add(PacketUtils.MASK_PACKET(0x00000001));
        packets.add(PacketUtils.CTL_PACKET(0x00000101));
        packets.add(PacketUtils.MASK_PACKET(0));
        packets.add(Packet.buildOneWordPacket(PacketOpcode.WRITE, RegisterType.CTL1, 0));
        packets.addAll(PacketUtils.NOP_PACKETS(8));
       
        return packets;
    }
View Full Code Here

     * @param header A preinitialized header object that will go into the full bitstream.
     */
    public Bitstream createFullBitstream(FPGA fpga, BitstreamHeader header) {
       
        // 1. Create the initial packets
        PacketListCRC packets = createInitialFullBitstream(fpga.getDeviceSpecification().getIntDeviceIDCode());

        // 2. Create the packets of frame data
        try {
            addFDRIWriteCommandForAllFrames(packets, fpga);
        } catch (BitstreamException e) {
View Full Code Here

     */
  public Bitstream createPartialBitstream(FPGA fpga, BitstreamHeader header, int farAddress) {

    // Create initial packets for partial bitstreams
    int idCode = fpga.getDeviceSpecification().getIntDeviceIDCode();
    PacketListCRC packets = createInitialPartialBitstream(idCode);
    //XilinxConfigurationSpecification spec = fpga.getDeviceSpecification();
   
    // Get the frame address
    //int bramContentFAR = FrameAddressRegister.getBRAMContentFrameAddress(spec);
    //int numBramContentFrames = FrameAddressRegister.getNumberOfBRAMContentFrames(spec);
View Full Code Here

    /**
     * Initial packets of a V5 bitstream.
     */
    public PacketListCRC createInitialFullBitstream(int idcode) {
   
        PacketListCRC packets = new PacketListCRC();
   
        packets.add(PacketUtils.NOP_PACKET);
        packets.add(Packet.buildOneWordPacket(PacketOpcode.WRITE, RegisterType.WBSTAR, 0));
        packets.add(PacketUtils.NULL_CMD_PACKET);
        packets.add(PacketUtils.NOP_PACKET);
        packets.add(PacketUtils.RCRC_CMD_PACKET);
        packets.addAll(PacketUtils.NOP_PACKETS(2));
        packets.add(Packet.buildOneWordPacket(PacketOpcode.WRITE, RegisterType.TIMER, 0));
        packets.add(Packet.buildOneWordPacket(PacketOpcode.WRITE, RegisterType.UNKNOWN0, 0));
        packets.add(PacketUtils.COR_PACKET(0x00003FE5));
        packets.add(Packet.buildOneWordPacket(PacketOpcode.WRITE, RegisterType.COR1, 0));
        packets.add(PacketUtils.IDCODE_PACKET(idcode));
        packets.add(PacketUtils.SWITCH_CMD_PACKET);
        packets.add(PacketUtils.NOP_PACKET);
        packets.add(PacketUtils.MASK_PACKET(0x00400000));
        packets.add(PacketUtils.CTL_PACKET(0x00400000));
        packets.add(PacketUtils.MASK_PACKET(0));      
        //packets.add(Packet.buildOneWordPacket(PacketOpcode.WRITE, RegisterType.CTL1, 0));
        packets.add(PacketUtils.DEFAULT_CTL1_PACKET);
        packets.addAll(PacketUtils.NOP_PACKETS(8));
       
        return packets;
    }
View Full Code Here

     * list of packets was created based on a bitstream given to us from
     * Sandia.
     */
    public PacketListCRC createInitialPartialBitstream(int idcode) {
   
        PacketListCRC packets = new PacketListCRC();

        // This turns out to be the same as V4
        packets.add(PacketUtils.NOP_PACKET);
        packets.add(PacketUtils.RCRC_CMD_PACKET);      
        packets.addAll(PacketUtils.NOP_PACKETS(2));
        packets.add(PacketUtils.IDCODE_PACKET(idcode));
        packets.add(PacketUtils.WCFG_CMD_PACKET);      
        packets.add(PacketUtils.NOP_PACKET);
        return packets;
    }
View Full Code Here

    /**
     * The initial packets of a V4 bitstream.
     */
    public PacketListCRC createInitialFullBitstream(int idcode) {
   
        PacketListCRC packets = new PacketListCRC();
   
        packets.add(PacketUtils.NOP_PACKET);
        packets.add(PacketUtils.RCRC_CMD_PACKET);      
        packets.addAll(PacketUtils.NOP_PACKETS(2));
        packets.add(PacketUtils.DEFAULT_COR_PACKET);
        packets.add(PacketUtils.IDCODE_PACKET(idcode));
        packets.add(PacketUtils.SWITCH_CMD_PACKET);
        packets.add(PacketUtils.NOP_PACKET);
        packets.add(PacketUtils.DEFAULT_MASK_PACKET);
        packets.add(PacketUtils.DEFAULT_CTL_PACKET);
        packets.addAll(PacketUtils.NOP_PACKETS(1150));
        packets.add(PacketUtils.DEFAULT_MASK_PACKET);
        packets.add(PacketUtils.NULL_CTL_PACKET);
        packets.add(PacketUtils.NULL_CMD_PACKET);
        packets.add(PacketUtils.NOP_PACKET);       
       
        return packets;
    }
View Full Code Here

    
     * This was created based on Ben Sellers method: Bitstream.CreateBRAMPartialBody
     */
    public PacketListCRC createInitialPartialBitstream(int idcode) {
   
        PacketListCRC packets = new PacketListCRC();
   
        packets.add(PacketUtils.NOP_PACKET);
        packets.add(PacketUtils.RCRC_CMD_PACKET);      
        packets.addAll(PacketUtils.NOP_PACKETS(2));
        packets.add(PacketUtils.IDCODE_PACKET(idcode));
        packets.add(PacketUtils.WCFG_CMD_PACKET);      
        packets.add(PacketUtils.NOP_PACKET);
        return packets;
    }
View Full Code Here

TOP

Related Classes of edu.byu.ece.rapidSmith.bitstreamTools.bitstream.PacketListCRC

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.