From 9194790a629d6797467ce32845b699c47ffb8c69 Mon Sep 17 00:00:00 2001
From: Carlos Alberto
Date: Wed, 13 Apr 2022 00:15:49 +0200
Subject: [PATCH] Compile order
---
resources/release_notes/release-notes.html | 1 +
src/lib/project_manager/project_manager.ts | 6 +++++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/resources/release_notes/release-notes.html b/resources/release_notes/release-notes.html
index 40675100..50543cfc 100644
--- a/resources/release_notes/release-notes.html
+++ b/resources/release_notes/release-notes.html
@@ -31,6 +31,7 @@ New features
- Support for SystemVerilog interfaces in Documenter.
+ - Automatic detection of compile order in tool manager.
diff --git a/src/lib/project_manager/project_manager.ts b/src/lib/project_manager/project_manager.ts
index 4c562f9c..7abc6616 100644
--- a/src/lib/project_manager/project_manager.ts
+++ b/src/lib/project_manager/project_manager.ts
@@ -246,7 +246,7 @@ export class Project_manager {
let toml = "[libraries]\n\n";
toml += 'lib.files = [\n';
for (let i = 0; i < compile_order.length; i++) {
- const element = compile_order[i];
+ const element = compile_order[i]['name'];
toml += `'${element}'\n,`;
}
toml += ']\n';
@@ -499,12 +499,16 @@ export class Project_manager {
async run_edalize_tests(tests, gui) {
let selected_project = this.edam_project_manager.selected_project;
let prj = this.edam_project_manager.get_project(selected_project);
+ let pypath = await this.config_reader.get_python_path_binary(false);
+ await prj.order_project(pypath);
+
let edam = prj.export_edam_file();
let tool_configuration = this.config_file.get_config_of_selected_tool();
edam.tool_options = tool_configuration;
let toplevel = await this.get_toplevel_selected_prj(false);;
edam.toplevel = toplevel;
+
let results = <[]>await this.edalize.run_simulation(edam, toplevel, gui);
this.last_edalize_results = results;