修复 windows 上快速仿真的问题
This commit is contained in:
parent
bf97b231ff
commit
5524921da9
@ -90,7 +90,8 @@ class Simulate {
|
|||||||
const setting = vscode.workspace.getConfiguration();
|
const setting = vscode.workspace.getConfiguration();
|
||||||
|
|
||||||
// make simulation dir
|
// make simulation dir
|
||||||
const defaultSimulationDir = hdlPath.join(opeParam.prjInfo.arch.prjPath, 'icarus');
|
const defaultSimulationDir = hdlPath.join(opeParam.prjInfo.prjPath, 'icarus');
|
||||||
|
|
||||||
simConfig.simulationHome = setting.get('digital-ide.function.simulate.simulationHome', '');
|
simConfig.simulationHome = setting.get('digital-ide.function.simulate.simulationHome', '');
|
||||||
if (!fs.existsSync(simConfig.simulationHome)) {
|
if (!fs.existsSync(simConfig.simulationHome)) {
|
||||||
simConfig.simulationHome = defaultSimulationDir;
|
simConfig.simulationHome = defaultSimulationDir;
|
||||||
|
@ -652,6 +652,17 @@ class PrjInfo implements PrjInfoMeta {
|
|||||||
return hdlPath.join(extensionPath, 'library');
|
return hdlPath.join(extensionPath, 'library');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description 获取 prjPath
|
||||||
|
*/
|
||||||
|
public get prjPath(): AbsPath {
|
||||||
|
const prjPath = this.arch.prjPath;
|
||||||
|
if (prjPath === undefined || prjPath.length === 0) {
|
||||||
|
return this._workspacePath;
|
||||||
|
}
|
||||||
|
return prjPath;
|
||||||
|
}
|
||||||
|
|
||||||
public json(): RawPrjInfo {
|
public json(): RawPrjInfo {
|
||||||
return {
|
return {
|
||||||
toolChain: this._toolChain,
|
toolChain: this._toolChain,
|
||||||
|
@ -154,7 +154,7 @@ export class HdlAction extends BaseAction {
|
|||||||
private isvalid(path: AbsPath): boolean {
|
private isvalid(path: AbsPath): boolean {
|
||||||
const prjInfo = opeParam.prjInfo;
|
const prjInfo = opeParam.prjInfo;
|
||||||
if (path.startsWith(prjInfo.hardwareSrcPath) || path.startsWith(prjInfo.hardwareSimPath)) {
|
if (path.startsWith(prjInfo.hardwareSrcPath) || path.startsWith(prjInfo.hardwareSimPath)) {
|
||||||
if (!hdlIgnore.isignore(path)) {
|
if (!hdlIgnore.isignore(path) && hdlFile.isHDLFile(path)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user