成功加载软件
This commit is contained in:
@@ -102,7 +102,7 @@ int main(int argc, char **argv, char **env) {
|
||||
char * temp[2];
|
||||
char cmd[64] = "+";
|
||||
strcat(cmd, img);
|
||||
// strcat(cmd, ".hex");
|
||||
strcat(cmd, ".verilog");
|
||||
temp[0] = "Verilated";
|
||||
temp[1] = cmd;
|
||||
char **argv_temp = temp;
|
||||
@@ -118,7 +118,7 @@ int main(int argc, char **argv, char **env) {
|
||||
Verilated::traceEverOn(true);
|
||||
top->trace(tfp, 99); // Trace 99 levels of hierarchy
|
||||
|
||||
tfp->open("./build/wave.fst");
|
||||
tfp->open("./tb/build/wave.fst");
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -140,7 +140,7 @@ int main(int argc, char **argv, char **env) {
|
||||
#endif
|
||||
|
||||
if ( flag_limitEnable ) {
|
||||
if ( main_cycle > 300000 ){
|
||||
if ( main_cycle > 3000 ){
|
||||
std::cout << "Timeout!!!!!" << std::endl;
|
||||
sim_exit();
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user