Skip to content

Commit

Permalink
fix: bug in vhdl schematic viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
qarlosalberto committed Jun 19, 2024
1 parent 81d4c80 commit c591e14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/colibri/src/yosys/yosys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export function runYosysGhdl(config: e_config, topTevel: string, sources: t_file

const cmd =
// eslint-disable-next-line max-len
`${preArguments} ${yosysPath} -m ghdl -p 'ghdl --std=08 -fsynopsys ${ghdlArguments} ${cmdFiles} -e ${topTevel}; ${topLevelCmd}; proc; ${customArguments}; write_json ${outputPathFilename}; stat'`;
`${preArguments} ${yosysPath} -m ghdl -p 'ghdl --std=08 -fsynopsys ${ghdlArguments} ${cmdFiles} --work=work -e ${topTevel}; ${topLevelCmd}; proc; ${customArguments}; write_json ${outputPathFilename}; stat'`;

const opt_exec = { cwd: process_utils.get_home_directory() };

Expand Down Expand Up @@ -221,7 +221,7 @@ export async function runYosysStandalone(config: e_config, topTevel: string, sou
}

function getYosysReadFileCommandVhdl(filePath: string, logicalName: string): string {
const libraryCommand = logicalName !== "" ? `--work=${logicalName}` : "";
const libraryCommand = logicalName !== "" ? `--work=${logicalName}` : "--work=work";
return `${libraryCommand} ${filePath}`;
}

Expand Down

0 comments on commit c591e14

Please sign in to comment.