Commit 5f0013d8 authored by Hejing Li's avatar Hejing Li Committed by Jonas Kaufmann
Browse files

impl.py: add corundum verilator

parent fec1a467
...@@ -156,6 +156,23 @@ class CorundumBMNICSim(NICSim): ...@@ -156,6 +156,23 @@ class CorundumBMNICSim(NICSim):
class CorundumVerilatorNICSim(NICSim):
def __init__(self, e: exp.Experiment):
super().__init__(e)
self.clock_freq = 250 # MHz
def resreq_mem(self) -> int:
# this is a guess
return 512
def run_cmd(self, env: ExpEnv) -> str:
return self.basic_run_cmd(
env, '/corundum/corundum_verilator', str(self.clock_freq)
)
class HostSim(Simulator): class HostSim(Simulator):
def __init__(self, e: exp.Experiment): def __init__(self, e: exp.Experiment):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment