update
This commit is contained in:
parent
dbd4e430d4
commit
2886673c94
@ -124,5 +124,7 @@
|
||||
"error.not-valid-browser": "{0} ist kein gültiger Browser-Pfad!",
|
||||
"info.config-browser-path": "Browser-Pfad konfigurieren",
|
||||
"info.pdf.exporting": "PDF wird nach {0} exportiert",
|
||||
"info.generate-pdf-to": "PDF wurde unter {0} generiert"
|
||||
"info.generate-pdf-to": "PDF wurde unter {0} generiert",
|
||||
"info.vivado-gui.started": "Vivado GUI wird gestartet, bitte warten Sie einen Moment",
|
||||
"ok": "Gut"
|
||||
}
|
@ -124,5 +124,7 @@
|
||||
"error.not-valid-browser": "{0} is not a valid browser path!",
|
||||
"info.config-browser-path": "Configure browser path",
|
||||
"info.pdf.exporting": "Exporting PDF to {0}",
|
||||
"info.generate-pdf-to": "PDF has been generated to {0}"
|
||||
"info.generate-pdf-to": "PDF has been generated to {0}",
|
||||
"info.vivado-gui.started": "Vivado GUI is starting, please wait a moment",
|
||||
"ok": "Good"
|
||||
}
|
@ -124,5 +124,7 @@
|
||||
"error.not-valid-browser": "{0} は有効なブラウザのパスではありません!",
|
||||
"info.config-browser-path": "ブラウザのパスを設定",
|
||||
"info.pdf.exporting": "PDFを{0}にエクスポート中",
|
||||
"info.generate-pdf-to": "PDFは{0}に生成されました"
|
||||
"info.generate-pdf-to": "PDFは{0}に生成されました",
|
||||
"info.vivado-gui.started": "Vivado GUI を起動しています、少々お待ちください",
|
||||
"ok": "良い"
|
||||
}
|
@ -124,5 +124,7 @@
|
||||
"error.not-valid-browser": "{0} 并不是一个有效的浏览器路径!",
|
||||
"info.config-browser-path": "配置浏览器路径",
|
||||
"info.pdf.exporting": "正在导出 pdf 到 {0}",
|
||||
"info.generate-pdf-to": "pdf 已经生成至 {0}"
|
||||
"info.generate-pdf-to": "pdf 已经生成至 {0}",
|
||||
"info.vivado-gui.started": "Vivado GUI 正在启动中,稍等片刻",
|
||||
"ok": "好的"
|
||||
}
|
@ -124,5 +124,7 @@
|
||||
"error.not-valid-browser": "{0} 並不是一個有效的瀏覽器路徑!",
|
||||
"info.config-browser-path": "配置瀏覽器路徑",
|
||||
"info.pdf.exporting": "正在導出PDF到{0}",
|
||||
"info.generate-pdf-to": "PDF 已生成至 {0}"
|
||||
"info.generate-pdf-to": "PDF 已生成至 {0}",
|
||||
"info.vivado-gui.started": "Vivado GUI 正在啟動中,稍等片刻",
|
||||
"ok": "好的"
|
||||
}
|
18
resources/script/xilinx/simulate.tcl
Normal file
18
resources/script/xilinx/simulate.tcl
Normal file
@ -0,0 +1,18 @@
|
||||
|
||||
if {[current_sim] != ""} {
|
||||
relaunch_sim -quiet
|
||||
} else {
|
||||
launch_simulation -quiet
|
||||
}
|
||||
|
||||
set curr_wave [current_wave_config]
|
||||
if { [string length $curr_wave] == 0 } {
|
||||
if { [llength [get_objects]] > 0} {
|
||||
add_wave /
|
||||
set_property needs_save false [current_wave_config]
|
||||
} else {
|
||||
send_msg_id Add_Wave-1 WARNING "No top level signals found. Simulator will start without a wave window. If you want to open a wave window go to 'File->New Waveform Configuration' or type 'create_wave_config' in the TCL console."
|
||||
}
|
||||
}
|
||||
run 1us
|
||||
file delete c:/Users/11934/Project/Digital-IDE/digital-ide/resources/script/xilinx/simulate.tcl -force
|
@ -20,7 +20,6 @@ interface SimpleOpe {
|
||||
extensionPath: string
|
||||
}
|
||||
|
||||
const workerScriptPath = hdlPath.join(__dirname, 'worker.js');
|
||||
|
||||
class NetlistRender {
|
||||
panel?: vscode.WebviewPanel;
|
||||
@ -177,6 +176,7 @@ function checkResource() {
|
||||
|
||||
export async function openNetlistViewer(context: vscode.ExtensionContext, uri: vscode.Uri, moduleName: string) {
|
||||
checkResource();
|
||||
const workerScriptPath = hdlPath.join(opeParam.extensionPath, 'out', 'function', 'dide-netlist', 'worker.js');
|
||||
const worker = new Worker(workerScriptPath);
|
||||
let success = true;
|
||||
|
||||
@ -245,6 +245,7 @@ async function showErrorLogFile(data: any) {
|
||||
|
||||
export async function runYsScript(context: vscode.ExtensionContext, uri: vscode.Uri) {
|
||||
checkResource();
|
||||
const workerScriptPath = hdlPath.join(opeParam.extensionPath, 'out', 'function', 'dide-netlist', 'worker.js');
|
||||
const worker = new Worker(workerScriptPath);
|
||||
|
||||
worker.on('message', message => {
|
||||
|
@ -444,6 +444,10 @@ class XilinxOperation {
|
||||
* @param context
|
||||
*/
|
||||
public refresh(context: PLContext) {
|
||||
vscode.window.showInformationMessage(
|
||||
"Xilinx: Refresh",
|
||||
{ title: 'ok', value: true }
|
||||
);
|
||||
const cmd = this.getRefreshXprDesignSourceCommand();
|
||||
context.process?.stdin.write(cmd + '\n');
|
||||
}
|
||||
@ -477,6 +481,11 @@ class XilinxOperation {
|
||||
}
|
||||
|
||||
public simulateGui(context: PLContext) {
|
||||
vscode.window.showInformationMessage(
|
||||
"Xilinx: Simulate GUI",
|
||||
{ title: 'ok', value: true }
|
||||
);
|
||||
|
||||
const scriptPath = `${this.xilinxPath}/simulate.tcl`;
|
||||
|
||||
const script = `
|
||||
@ -508,6 +517,11 @@ file delete ${scriptPath} -force\n`;
|
||||
}
|
||||
|
||||
public simulateCli(context: PLContext) {
|
||||
vscode.window.showInformationMessage(
|
||||
"Xilinx: Simulate CLI",
|
||||
{ title: 'ok', value: true }
|
||||
);
|
||||
|
||||
const scriptPath = hdlPath.join(this.xilinxPath, 'simulate.tcl');
|
||||
const script = `
|
||||
if {[current_sim] != ""} {
|
||||
@ -536,6 +550,11 @@ file delete ${scriptPath} -force\n`;
|
||||
}
|
||||
|
||||
public synth(context: PLContext) {
|
||||
vscode.window.showInformationMessage(
|
||||
"Xilinx: Synth",
|
||||
{ title: 'ok', value: true }
|
||||
);
|
||||
|
||||
let quietArg = '';
|
||||
if (opeParam.prjInfo.enableShowLog) {
|
||||
quietArg = '-quiet';
|
||||
@ -550,6 +569,11 @@ file delete ${scriptPath} -force\n`;
|
||||
}
|
||||
|
||||
impl(context: PLContext) {
|
||||
vscode.window.showInformationMessage(
|
||||
"Xilinx: Impl",
|
||||
{ title: 'ok', value: true }
|
||||
);
|
||||
|
||||
let quietArg = '';
|
||||
if (opeParam.prjInfo.enableShowLog) {
|
||||
quietArg = '-quiet';
|
||||
@ -566,6 +590,10 @@ file delete ${scriptPath} -force\n`;
|
||||
}
|
||||
|
||||
build(context: PLContext) {
|
||||
vscode.window.showInformationMessage(
|
||||
"Xilinx: Build",
|
||||
{ title: 'ok', value: true }
|
||||
);
|
||||
let quietArg = '';
|
||||
if (this.prjConfig.enableShowLog) {
|
||||
quietArg = '-quiet';
|
||||
@ -595,6 +623,11 @@ file delete ${scriptPath} -force\n`;
|
||||
|
||||
|
||||
generateBit(context: PLContext) {
|
||||
vscode.window.showInformationMessage(
|
||||
"Xilinx: BitStream",
|
||||
{ title: 'ok', value: true }
|
||||
);
|
||||
|
||||
let scripts: string[] = [];
|
||||
let core = this.prjConfig.soc.core;
|
||||
let sysdefPath = `${this.prjInfo.path}/${this.prjInfo.name}.runs` +
|
||||
@ -626,6 +659,11 @@ file delete ${scriptPath} -force\n`;
|
||||
}
|
||||
|
||||
program(context: PLContext) {
|
||||
vscode.window.showInformationMessage(
|
||||
"Xilinx: Program",
|
||||
{ title: 'ok', value: true }
|
||||
);
|
||||
|
||||
let scriptPath = `${this.xilinxPath}/program.tcl`;
|
||||
let script = `
|
||||
open_hw -quiet
|
||||
@ -672,6 +710,10 @@ file delete ${scriptPath} -force\n`;
|
||||
}
|
||||
|
||||
tclProcess.stdin.write('start_gui -quiet\n');
|
||||
vscode.window.showInformationMessage(
|
||||
t('info.vivado-gui.started'),
|
||||
{ title: t('ok'), value: true }
|
||||
);
|
||||
HardwareOutput.report(t('info.pl.gui.report-title'), {
|
||||
level: ReportType.Info
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user