public static void RegisterCSRHandlerFromFile(this BaseRiscV cpu, ulong csr, string path, bool initable = false)
        {
            var engine = new RiscVCsrPythonEngine(cpu, csr, initable, path: path);

            cpu.RegisterCSR(csr, engine.CsrReadHook, engine.CsrWriteHook);
        }
        public static void RegisterCSRHandlerFromString(this BaseRiscV cpu, ulong csr, string pythonScript, bool initable = false)
        {
            var engine = new RiscVCsrPythonEngine(cpu, csr, initable, script: pythonScript);

            cpu.RegisterCSR(csr, engine.CsrReadHook, engine.CsrWriteHook);
        }