取消综合失败后的 netlist 展示
This commit is contained in:
parent
9f44885060
commit
0029c7d710
@ -198,7 +198,8 @@
|
|||||||
"xc7a35tftg256-1",
|
"xc7a35tftg256-1",
|
||||||
"xc7a35tcsg324-1",
|
"xc7a35tcsg324-1",
|
||||||
"xc7z035ffg676-2",
|
"xc7z035ffg676-2",
|
||||||
"xc7z020clg484-1"
|
"xc7z020clg484-1",
|
||||||
|
"hello-world"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -178,6 +178,7 @@ function checkResource() {
|
|||||||
export async function openNetlistViewer(context: vscode.ExtensionContext, uri: vscode.Uri, moduleName: string) {
|
export async function openNetlistViewer(context: vscode.ExtensionContext, uri: vscode.Uri, moduleName: string) {
|
||||||
checkResource();
|
checkResource();
|
||||||
const worker = new Worker(workerScriptPath);
|
const worker = new Worker(workerScriptPath);
|
||||||
|
let success = true;
|
||||||
|
|
||||||
worker.on('message', message => {
|
worker.on('message', message => {
|
||||||
const command = message.command;
|
const command = message.command;
|
||||||
@ -185,8 +186,11 @@ export async function openNetlistViewer(context: vscode.ExtensionContext, uri: v
|
|||||||
switch (command) {
|
switch (command) {
|
||||||
case 'error-log-file':
|
case 'error-log-file':
|
||||||
showErrorLogFile(data);
|
showErrorLogFile(data);
|
||||||
|
success = false;
|
||||||
break;
|
break;
|
||||||
|
case 'finish':
|
||||||
|
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -221,8 +225,10 @@ export async function openNetlistViewer(context: vscode.ExtensionContext, uri: v
|
|||||||
|
|
||||||
worker.terminate();
|
worker.terminate();
|
||||||
|
|
||||||
|
if (success) {
|
||||||
const render = new NetlistRender();
|
const render = new NetlistRender();
|
||||||
render.create(moduleName);
|
render.create(moduleName);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function showErrorLogFile(data: any) {
|
async function showErrorLogFile(data: any) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user