From 2a7f20b96681e8681e5b18d41f693e1db324dd59 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 4 Jun 2020 21:34:00 +0100 Subject: [PATCH] remove unneeded code --- src/soc/simple/test/test_core.py | 74 -------------------------------- 1 file changed, 74 deletions(-) diff --git a/src/soc/simple/test/test_core.py b/src/soc/simple/test/test_core.py index 6c8e0cd4..96abda8d 100644 --- a/src/soc/simple/test/test_core.py +++ b/src/soc/simple/test/test_core.py @@ -21,59 +21,6 @@ from soc.fu.cr.test.test_pipe_caller import CRTestCase from soc.fu.branch.test.test_pipe_caller import BranchTestCase -def set_cu_input(cu, idx, data): - rdop = cu.get_in_name(idx) - yield cu.src_i[idx].eq(data) - while True: - rd_rel_o = yield cu.rd.rel[idx] - print ("rd_rel %d wait HI" % idx, rd_rel_o, rdop, hex(data)) - if rd_rel_o: - break - yield - yield cu.rd.go[idx].eq(1) - while True: - yield - rd_rel_o = yield cu.rd.rel[idx] - if rd_rel_o: - break - print ("rd_rel %d wait HI" % idx, rd_rel_o) - yield - yield cu.rd.go[idx].eq(0) - yield cu.src_i[idx].eq(0) - - -def get_cu_output(cu, idx, code): - wrmask = yield cu.wrmask - wrop = cu.get_out_name(idx) - wrok = cu.get_out(idx) - fname = find_ok(wrok.fields) - wrok = yield getattr(wrok, fname) - print ("wr_rel mask", repr(code), idx, wrop, bin(wrmask), fname, wrok) - assert wrmask & (1<