Пример #1
0
        public static void ProgramDevice()
        {
            string VivadoProjectLocation = Path.Combine(Env.RC.Config.ProjectLocation, "Vivado");

            var bitStreamPath = Directory.EnumerateFiles(VivadoProjectLocation, "*.bit", SearchOption.AllDirectories).ToList();

            if (bitStreamPath.Count == 0)
            {
                throw new Exception($"No bitstream found in project: {VivadoProjectLocation}");
            }

            if (bitStreamPath.Count > 1)
            {
                throw new Exception($"Multiple bitstreams found in project: {VivadoProjectLocation}");
            }

            VivadoTCLBuilder.ProgramBitStream(bitStreamPath[0]);
        }
 public static void VGAStaticQRModule()
 {
     VGAModuleExtension_Translate.VGAStaticQRModule();
     VivadoTCLBuilder.CreateBitStream(nameof(VGAStaticQRModule));
 }
Пример #3
0
 public static void ProgramTest()
 {
     VivadoTCLBuilder.ProgramBitStream(@"C:\code\fpga\Bitstreams\Arty\vga_test.bit");
 }