cores/jtag: cleanup instances.

This commit is contained in:
Florent Kermarrec 2021-01-25 12:31:32 +01:00
parent 0b5df58a1b
commit 8cada67f32
1 changed files with 25 additions and 23 deletions

View File

@ -22,20 +22,23 @@ class JTAGAtlantic(Module):
self.specials += Instance("alt_jtag_atlantic", self.specials += Instance("alt_jtag_atlantic",
# Parameters # Parameters
p_LOG2_RXFIFO_DEPTH="5", # FIXME: expose? p_LOG2_RXFIFO_DEPTH = "5", # FIXME: expose?
p_LOG2_TXFIFO_DEPTH="5", # FIXME: expose? p_LOG2_TXFIFO_DEPTH = "5", # FIXME: expose?
p_SLD_AUTO_INSTANCE_INDEX="YES", p_SLD_AUTO_INSTANCE_INDEX = "YES",
# Clk/Rst # Clk/Rst
i_clk=ClockSignal("sys"), i_clk = ClockSignal("sys"),
i_rst_n=~ResetSignal("sys"), i_rst_n = ~ResetSignal("sys"),
# TX # TX
i_r_dat=sink.data, i_r_dat = sink.data,
i_r_val=sink.valid, i_r_val = sink.valid,
o_r_ena=sink.ready, o_r_ena = sink.ready,
# RX # RX
o_t_dat=source.data, o_t_dat = source.data,
i_t_dav=source.ready, i_t_dav = source.ready,
o_t_ena=source.valid, o_t_ena = source.valid,
) )
# Xilinx JTAG -------------------------------------------------------------------------------------- # Xilinx JTAG --------------------------------------------------------------------------------------
@ -54,19 +57,18 @@ class XilinxJTAG(Module):
# # # # # #
self.specials += \ self.specials += Instance(primitive,
Instance(primitive, p_JTAG_CHAIN = chain,
p_JTAG_CHAIN=chain,
o_RESET=self.reset, o_RESET = self.reset,
o_CAPTURE=self.capture, o_CAPTURE = self.capture,
o_SHIFT=self.shift, o_SHIFT = self.shift,
o_UPDATE=self.update, o_UPDATE = self.update,
o_TCK=self.tck, o_TCK = self.tck,
o_TMS=self.tms, o_TMS = self.tms,
o_TDI=self.tdi, o_TDI = self.tdi,
i_TDO=self.tdo, i_TDO = self.tdo,
) )
class S6JTAG(XilinxJTAG): class S6JTAG(XilinxJTAG):