orca-sim
|
#include <iostream>
#include <iomanip>
#include <chrono>
#include <cmath>
#include <signal.h>
#include <Event.h>
#include <Simulator.h>
#include <UMemory.h>
#include <THFRiscV.h>
#include <MemoryMap.h>
Go to the source code of this file.
Functions | |
static void | sig_handler (int _) |
Signal handler. More... | |
int | main (int __attribute__((unused)) argc, char **argv) |
Main routine. More... | |
Variables | |
static volatile sig_atomic_t | interruption = 0 |
Implementation file for ORCA-SIM program. More... | |
int main | ( | int __attribute__((unused)) | argc, |
char ** | argv | ||
) |
Main routine.
Instantiate simulator, hardware models, connect these models, and start simulation.
argc | Should be always equals 2 |
argv | One-dimensional array containing the name of binary file to load in the program |
Definition at line 77 of file Orca.cpp.
|
static |
Signal handler.
This handler captures interruption from the keyboard (CTRL+C) and flag the simulation to end in the current epoch. If pressed CTRL+C again, simulation will abort.
_ | This param is unused (must be here to comply with system's API) |
Definition at line 54 of file Orca.cpp.
|
static |
Implementation file for ORCA-SIM program.
This file is part of project URSA. http://https://github.com/andersondomingues/ursa
Copyright (C) 2018 Anderson Domingues, ti.an ders ondom ingu es@gm ail. com
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.