# This file is Copyright (c) 2020 LambdaConcept <contact@lambdaconcept.com>
import random
+import unittest
from nmigen import *
from nmigen.asserts import Assert, Assume
from gram.core.multiplexer import _AntiStarvation
from gram.test.utils import *
+
class DDR3SoC(SoC, Elaboratable):
def __init__(self, *, clk_freq, dramcore_addr,
ddr_addr):
self.assertEqual(0xFACE0000 | i, (yield from wb_read(soc.bus, (0x10000000 >> 2) + i, 0xF, 256)))
runSimulation(soc, process, "test_soc_continuous_memtest.vcd")
+
+
+if __name__ == '__main__':
+ unittest.main()
from contextlib import contextmanager
from nmigen import *
-from nmigen.sim.pysim import *
+from nmigen.sim import *
from nmigen.hdl.ir import Fragment
from nmigen.back import rtlil
from nmigen._toolchain import require_tool