From a7a1fe8a746c44a7a49d1c83fef5da201fa6f9b0 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Fri, 24 Jan 2020 16:57:14 -0700 Subject: [PATCH] simplify openfpga title page and add command dependency on read_arch and write_arch --- openfpga/src/base/openfpga_setup_command.cpp | 2 ++ openfpga/src/base/openfpga_title.cpp | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/openfpga/src/base/openfpga_setup_command.cpp b/openfpga/src/base/openfpga_setup_command.cpp index 99d827bfb..322378b07 100644 --- a/openfpga/src/base/openfpga_setup_command.cpp +++ b/openfpga/src/base/openfpga_setup_command.cpp @@ -36,6 +36,8 @@ void add_openfpga_setup_commands(openfpga::Shell& shell) { ShellCommandId shell_cmd_write_arch_id = shell.add_command(shell_cmd_write_arch, "write OpenFPGA architecture file"); shell.set_command_class(shell_cmd_write_arch_id, openfpga_setup_cmd_class); shell.set_command_const_execute_function(shell_cmd_write_arch_id, write_arch); + /* The 'write_openfpga_arch' command should be executed before 'read_openfpga_arch' */ + shell.set_command_dependency(shell_cmd_write_arch_id, std::vector(1, shell_cmd_read_arch_id)); } } /* end namespace openfpga */ diff --git a/openfpga/src/base/openfpga_title.cpp b/openfpga/src/base/openfpga_title.cpp index 4a33bb72e..8a3917ead 100644 --- a/openfpga/src/base/openfpga_title.cpp +++ b/openfpga/src/base/openfpga_title.cpp @@ -14,11 +14,9 @@ const char* create_openfpga_title() { title += std::string("\n"); title += std::string(" OpenFPGA: An Open-source FPGA IP Generator\n"); title += std::string("\n"); - title += std::string("Contributors: Xifan Tang\tAurelien Alacchi\tBaudouin Chauviere\n"); + title += std::string(" This is a free software under the MIT License\n"); title += std::string("\n"); - title += std::string("The MIT License\n"); - title += std::string("\n"); - title += std::string("Copyright (c) 2018 LNIS - The University of Utah\n"); + title += std::string(" Copyright (c) 2018 LNIS - The University of Utah\n"); title += std::string("\n"); title += std::string("Permission is hereby granted, free of charge, to any person obtaining a copy\n"); title += std::string("of this software and associated documentation files (the \"Software\"), to deal\n");