X-Git-Url: https://git.libre-soc.org/?p=ieee754fpu.git;a=blobdiff_plain;f=src%2Fadd%2Ftest_buf_pipe.py;h=fa23eac0a79b7ae205d56b624db3d562682bc5e3;hp=2a068933e7bf8f0d843d7480e71945b05095a745;hb=b13c8a7a5368a53bedc71e5b8969c721103144c4;hpb=a36447fcd4d4f049b7127e1fc02dc1390d05fa75 diff --git a/src/add/test_buf_pipe.py b/src/add/test_buf_pipe.py index 2a068933..fa23eac0 100644 --- a/src/add/test_buf_pipe.py +++ b/src/add/test_buf_pipe.py @@ -1,6 +1,6 @@ from nmigen import Module, Signal from nmigen.compat.sim import run_simulation -from example_buf_pipe import BufPipe +from example_buf_pipe import ExampleBufPipe from random import randint @@ -171,7 +171,7 @@ def testbench4(dut): break -class BufPipe2: +class ExampleBufPipe2: """ connect these: ------|---------------| v v @@ -180,8 +180,8 @@ class BufPipe2: stage.i_data >>in pipe1 o_data out>> stage.i_data >>in pipe2 """ def __init__(self): - self.pipe1 = BufPipe() - self.pipe2 = BufPipe() + self.pipe1 = ExampleBufPipe() + self.pipe2 = ExampleBufPipe() # input self.i_p_valid = Signal() # >>in - comes in from PREVIOUS stage @@ -217,18 +217,18 @@ class BufPipe2: if __name__ == '__main__': print ("test 1") - dut = BufPipe() + dut = ExampleBufPipe() run_simulation(dut, testbench(dut), vcd_name="test_bufpipe.vcd") print ("test 2") - dut = BufPipe2() + dut = ExampleBufPipe2() run_simulation(dut, testbench2(dut), vcd_name="test_bufpipe2.vcd") print ("test 3") - dut = BufPipe() + dut = ExampleBufPipe() test = Test3(dut) run_simulation(dut, [test.send, test.rcv], vcd_name="test_bufpipe3.vcd") print ("test 4") - dut = BufPipe2() + dut = ExampleBufPipe2() run_simulation(dut, testbench4(dut), vcd_name="test_bufpipe4.vcd")