mirror of
https://github.com/openhwgroup/cve2.git
synced 2025-04-25 06:27:22 -04:00
* rename files and modules to cve2 Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com> * updated tb files Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com> * remaining references to ibex: gitignore, examples, etc. Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com> Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com> Co-authored-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
26 lines
701 B
C++
26 lines
701 B
C++
// Copyright lowRISC contributors.
|
|
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
#include "verilated_toplevel.h"
|
|
#include "verilator_memutil.h"
|
|
|
|
class SimpleSystem {
|
|
public:
|
|
SimpleSystem(const char *ram_hier_path, int ram_size_words);
|
|
virtual ~SimpleSystem() {}
|
|
virtual int Main(int argc, char **argv);
|
|
|
|
// Return an ISA string, as understood by Spike, for the system being
|
|
// simulated.
|
|
std::string GetIsaString() const;
|
|
|
|
protected:
|
|
cve2_simple_system _top;
|
|
VerilatorMemUtil _memutil;
|
|
MemArea _ram;
|
|
|
|
virtual int Setup(int argc, char **argv, bool &exit_app);
|
|
virtual void Run();
|
|
virtual bool Finish();
|
|
};
|