예제 #1
0
        public static void CreateBitStream(string moduleName)
        {
            var config           = Env.RC;
            var hdlPath          = Path.Combine(config.Config.ProjectLocation, moduleName);
            var manualAssetsPath = Path.Combine(Env.AssetsLocation, moduleName);

            var tcl = new VivadoTCL();

            tcl
            .TCLContent(Path.Combine(Env.ScriptsLocation, "errors.tcl"))
            .set_msg_config(id: "filemgmt 20-742", new_severity: "ERROR")
            .create_project("test", part: "xc7z020clg400-1", verbose: true)
            .SetProperty("target_language", "Verilog", tcl.CurrentProject)
            .SetProperty("board_part", "digilentinc.com:arty-z7-20:part0:1.0", tcl.CurrentProject)
            .SetProperty("platform.board_id", "arty-z7-20", tcl.CurrentProject)
            .AddSources(hdlPath, "*.v")
            .AddSources(manualAssetsPath)
            .update_compile_order(fileset: "sources_1")
            .SetProperty("top", "top", tcl.CurrentFileSet)
            .SetProperty("SOURCE_SET", "sources_1", tcl.Sim1)
            .launch_runs("impl_1", to_step: "write_bitstream", jobs: 4)
            .wait_on_run("impl_1")
            .Text("exitIfFailed")
            ;

            var va = new VivadoAdapter(Env.VivadoProjectLocation);

            va.CleanupVivado();
            va.SaveTCL(tcl);
            va.RunScript();
        }
예제 #2
0
        public static void RunCurrentTCL()
        {
            var va = new VivadoAdapter(Env.VivadoProjectLocation);

            va.CleanupVivado();
            va.RunScript();
        }