[engine] fix compiler errors
This commit is contained in:
parent
0862eceed0
commit
85bcb36f34
|
@ -106,9 +106,9 @@ int IoLocationMap::write_to_xml_file(const std::string& fname,
|
|||
size_t io_cnt = 0;
|
||||
|
||||
/* Walk through the fabric I/O location map data structure */
|
||||
for (size_t x : io_indices_) {
|
||||
for (size_t y : io_indices_[x]) {
|
||||
for (size_t z : io_indices_[x][y]) {
|
||||
for (size_t x = 0; x < io_indices_.size(); ++x) {
|
||||
for (size_t y = 0; y < io_indices_[x].size(); ++y) {
|
||||
for (size_t z = 0; z < io_indices_[y].size(); ++z) {
|
||||
for (const auto& name_id_pair : io_indices_[x][y][z]) {
|
||||
fp << "\t" << "<io pad=\"" << name_id_pair.first << "[" << name_id_pair.second << "]\"";
|
||||
fp << " " << "x=\"" << x << "\"";
|
||||
|
|
|
@ -191,6 +191,7 @@ int write_fabric_io_info(const OpenfpgaContext& openfpga_ctx,
|
|||
const Command& cmd, const CommandContext& cmd_context) {
|
||||
|
||||
CommandOptionId opt_verbose = cmd.option("verbose");
|
||||
CommandOptionId opt_no_time_stamp = cmd.option("no_time_stamp");
|
||||
|
||||
/* Check the option '--file' is enabled or not
|
||||
* Actually, it must be enabled as the shell interface will check
|
||||
|
|
|
@ -554,7 +554,7 @@ void add_openfpga_setup_commands(openfpga::Shell<OpenfpgaContext>& shell) {
|
|||
*/
|
||||
/* The 'write_fabric_io_info' command should NOT be executed before 'build_fabric' */
|
||||
std::vector<ShellCommandId> cmd_dependency_write_fabric_io_info;
|
||||
cmd_dependency_write_fabric_io_info.push_back(shell_cmd_build_fabric_id);
|
||||
cmd_dependency_write_fabric_io_info.push_back(build_fabric_cmd_id);
|
||||
add_openfpga_write_fabric_io_info_command(shell, openfpga_setup_cmd_class, cmd_dependency_write_fabric_io_info);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue