From: Andrey Miroshnikov Date: Tue, 7 Dec 2021 17:21:01 +0000 (+0000) Subject: Removed redunant jtag files that already reside in soc repo X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d00e364e41596dec5518a678741eacf6bab22b8c;p=pinmux.git Removed redunant jtag files that already reside in soc repo --- diff --git a/src/spec/jtagremote.py b/src/spec/jtagremote.py deleted file mode 100644 index 013c473..0000000 --- a/src/spec/jtagremote.py +++ /dev/null @@ -1,54 +0,0 @@ -#The server code -import socket -from socket import close, AF_INET, SOCK_STREAM -import sys -import select -import time - -from jtagutils import JTAGServer, JTAGClient - - -def test_clientserver_jtagremote(): - s = JTAGServer() - c = JTAGClient() - s.get_connection() - - c.jtagremote_client_send((1, 0, 1)) - while True: - resp = s.jtagremote_server_recv(1) - if resp is not None: - print ("response", resp) - break - - while True: - resp = s.jtagremote_server_recv(1) - if resp is not None: - print ("response", resp) - break - - tdo = c.jtagremote_client_recv() - print ("client recv", tdo) - - s.close() - c.close() - - -def test_clientserver(): - s = JTAGServer() - c = JTAGClient() - s.get_connection() - - c.send(str.encode("h")) - while True: - resp = s.get_data() - if resp is not None: - print ("response", resp) - break - s.close() - c.close() - - -if __name__ == '__main__': - #test_clientserver() - test_clientserver_jtagremote() - diff --git a/src/spec/jtagutils.py b/src/spec/jtagutils.py deleted file mode 100644 index a642bd1..0000000 --- a/src/spec/jtagutils.py +++ /dev/null @@ -1,223 +0,0 @@ -#The server code -import socket -from socket import close, AF_INET, SOCK_STREAM -import sys -import select -import time - - -def client_sync(dut): - tck = yield dut.cbus.tck - tms = yield dut.cbus.tms - tdi = yield dut.cbus.tdi - dut.c.jtagremote_client_send((tck, tms, tdi)) - #print ("about to client recv") - while True: - tdo = dut.c.jtagremote_client_recv(timeout=0) - if tdo is not None: - break - yield - yield dut.cbus.tdo.eq(tdo) - - -def tms_state_set(dut, bits): - for bit in bits: - yield dut.cbus.tms.eq(bit) - yield from client_sync(dut) - yield dut.cbus.tck.eq(1) - yield from client_sync(dut) - yield - yield dut.cbus.tck.eq(0) - yield from client_sync(dut) - yield - yield from client_sync(dut) - yield dut.cbus.tms.eq(0) - yield from client_sync(dut) - - -def tms_data_getset(dut, tms, d_len, d_in=0): - res = 0 - yield dut.cbus.tms.eq(tms) - for i in range(d_len): - tdi = 1 if (d_in & (1<