예제 #1
0
 public void TranslateInstance()
 {
     QuokkaRunner.FromInstances(
         _configPath,
         new[]
     {
         new RTLModuleConfig()
         {
             Instance = _simulator.TopLevel,
             Name     = moduleType
         }
     });
 }
예제 #2
0
        static void Main(string[] args)
        {
            //var hdl = "vhdl";
            var hdl = "verilog";

            var qargs = new string[]
            {
                "-s",
                Path.Combine(SolutionDir(), "qvr"),
                // "-w", // watch for changes
                "-c",
                $"{hdl}.json"
            };

            QuokkaRunner.Default(qargs);
        }
예제 #3
0
        static void Main(string[] args)
        {
            Console.WriteLine($"Running from {Directory.GetCurrentDirectory()}");
            Console.WriteLine($"Quokka.FPGA version: {typeof(QuokkaRunner).Assembly.GetName().Version}");
            Console.WriteLine($"Quokka.RTL version: {typeof(RTLBitArray).Assembly.GetName().Version}");

            Console.WriteLine("Cleaning up ...");

            var tempFolder = Path.Combine(Path.GetTempPath(), "quokka");

            if (Directory.Exists(tempFolder))
            {
                Directory.Delete(tempFolder, true);
            }

            QuokkaRunner.Default(args);
        }
예제 #4
0
        static void RunInCurrentLocation(string[] args)
        {
            Console.WriteLine($"Environment: {RuntimeInformation.OSDescription}, {RuntimeInformation.OSArchitecture}, {RuntimeInformation.FrameworkDescription}, {RuntimeInformation.ProcessArchitecture}");
            Console.WriteLine($"Current location: {Directory.GetCurrentDirectory()}");
            Console.WriteLine($"Quokka.FPGA version: {typeof(QuokkaRunner).Assembly.GetName().Version}");
            Console.WriteLine($"Quokka.RTL version: {typeof(RTLBitArray).Assembly.GetName().Version}");
            Console.WriteLine($"Quokka.RISCV.Integration version: {typeof(RISCVIntegrationClient).Assembly.GetName().Version}");
            Console.WriteLine($"Quokka.RISCV.CS2CPP version: {typeof(CSharp2CPPTranslator).Assembly.GetName().Version}");

            Console.WriteLine("Cleaning up ...");

            var tempFolder = Path.Combine(Path.GetTempPath(), "quokka");

            if (Directory.Exists(tempFolder))
            {
                Directory.Delete(tempFolder, true);
            }

            QuokkaRunner.Default(args);
        }
예제 #5
0
 static void Main(string[] args)
 {
     QuokkaRunner.Default(args);
 }
예제 #6
0
 public static void FunctionsPipelineModule()
 {
     QuokkaRunner.FromConfig(Env.RTLVerilogConfig, new[] { nameof(FunctionsPipelineModule) });
 }
예제 #7
0
 public static void IntDividerPipelineModule()
 {
     QuokkaRunner.FromConfig(Env.RTLVerilogConfig, new[] { nameof(IntDividerPipelineModule) });
 }
 public static void VGAAlienArtModule()
 {
     QuokkaRunner.FromConfig(Env.RTLVerilogConfig, new[] { nameof(VGAAlienArtModule) });
 }
예제 #9
0
 public void TranslateModule()
 {
     QuokkaRunner.FromConfig(_configPath, new[] { moduleType });
 }