From: Florent Kermarrec Date: Sun, 14 Dec 2014 09:57:16 +0000 (+0100) Subject: remove transport_tb (transport will be tested in command_tb) X-Git-Tag: 24jan2021_ls180~2572^2~131 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1e68b1a90712d260b13bb25c65a77101711e2ec3;p=litex.git remove transport_tb (transport will be tested in command_tb) --- diff --git a/lib/sata/common.py b/lib/sata/common.py index 0ae7f0c5..c8e3ce38 100644 --- a/lib/sata/common.py +++ b/lib/sata/common.py @@ -136,7 +136,7 @@ def transport_rx_description(dw): ] return EndpointDescription(layout, packetized=True) -# Command Layer constants / functions +# Command Layer regs = { "WRITE_DMA_EXT" : 0x35, "READ_DMA_EXT" : 0x25, diff --git a/lib/sata/test/Makefile b/lib/sata/test/Makefile index 7806d1ff..ffee2fdd 100644 --- a/lib/sata/test/Makefile +++ b/lib/sata/test/Makefile @@ -17,13 +17,10 @@ scrambler_tb: link_tb: $(CMD) link_tb.py -transport_tb: - $(CMD) transport_tb.py - command_tb: $(CMD) command_tb.py -all: crc_tb scrambler_tb link_tb +all: crc_tb scrambler_tb link_tb command_tb clean: rm crc scrambler *.vcd diff --git a/lib/sata/test/transport_tb.py b/lib/sata/test/transport_tb.py deleted file mode 100644 index b49d1ed5..00000000 --- a/lib/sata/test/transport_tb.py +++ /dev/null @@ -1,47 +0,0 @@ -import random - -from migen.fhdl.std import * -from migen.genlib.record import * -from migen.sim.generic import run_simulation - -from lib.sata.common import * -from lib.sata.link import SATALink -from lib.sata.transport import SATATransport - -from lib.sata.test.bfm import * -from lib.sata.test.common import * - -class TB(Module): - def __init__(self): - self.submodules.bfm = BFM(phy_debug=False, - link_random_level=0, transport_debug=True, transport_loopback=True) - self.submodules.link = SATALink(self.bfm.phy) - self.submodules.transport = SATATransport(self.link) - - def gen_simulation(self, selfp): - for i in range(100): - yield - selfp.transport.sink.stb = 1 - selfp.transport.sink.sop = 1 - selfp.transport.sink.eop = 1 - selfp.transport.sink.type = fis_types["REG_H2D"] - selfp.transport.sink.lba = 0x0123456789 - yield - while selfp.transport.sink.ack == 0: - yield - - for i in range(32): - selfp.transport.sink.stb = 1 - selfp.transport.sink.sop = (i==0) - selfp.transport.sink.eop = (i==31) - selfp.transport.sink.type = fis_types["DATA"] - selfp.transport.sink.data = i - if selfp.transport.sink.ack == 1: - yield - else: - while selfp.transport.sink.ack == 0: - yield - selfp.transport.sink.stb = 0 - -if __name__ == "__main__": - run_simulation(TB(), ncycles=512, vcd_name="my.vcd", keep_files=True)