update
This commit is contained in:
parent
4861410eab
commit
6834968bc5
@ -198,8 +198,7 @@
|
||||
"xc7a35tftg256-1",
|
||||
"xc7a35tcsg324-1",
|
||||
"xc7z035ffg676-2",
|
||||
"xc7z020clg484-1",
|
||||
"hello-world"
|
||||
"xc7z020clg484-1"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -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')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user