diff --git a/project/property-schema.json b/project/property-schema.json index 2a329ee..364c338 100644 --- a/project/property-schema.json +++ b/project/property-schema.json @@ -198,8 +198,7 @@ "xc7a35tftg256-1", "xc7a35tcsg324-1", "xc7z035ffg676-2", - "xc7z020clg484-1", - "hello-world" + "xc7z020clg484-1" ] } }, diff --git a/src/function/dide-netlist/index.ts b/src/function/dide-netlist/index.ts index 5e89233..ff8470b 100644 --- a/src/function/dide-netlist/index.ts +++ b/src/function/dide-netlist/index.ts @@ -182,8 +182,10 @@ class Netlist { basepreopens[realMount.toLowerCase()] = realMount; basepreopens[realMount.toUpperCase()] = realMount; } + } else { + basepreopens['/'] = '/'; } - return basepreopens + return basepreopens; } private async makeWasi(target: string, logName: string) { @@ -192,8 +194,6 @@ class Netlist { hdlFile.removeFile(logFilePath); const logFd = fs.openSync(logFilePath, 'a'); - console.log(target); - try { const wasiOption = { version: 'preview1', @@ -288,34 +288,6 @@ class Netlist { return html; } - public async export(type: string, svg: string) { - switch (type) { - case "svg": - await this.exportSvg(svg); - break; - - default: break; - } - } - - public async exportSvg(svg: string) { - const filter = { 'svg': ['svg'] }; - const fileInfos = await vscode.window.showSaveDialog({ filters: filter }); - - if (fileInfos && fileInfos.path) { - let savePath = fileInfos.path; - - if (savePath[0] === '/' && require('os').platform() === 'win32') { - savePath = savePath.substring(1); - } - - hdlFile.writeFile(savePath, svg); - - vscode.window.showInformationMessage('Schematic saved in ' + savePath); - YosysOutput.report('Schematic saved in ' + savePath); - } - } - public getJsonPathFromYs(path: AbsPath): AbsPath | undefined { for (const line of fs.readFileSync(path, { encoding: 'utf-8' }).split('\n')) { if (line.trim().startsWith('write_json')) {