1 from bsv
.peripheral_gen
.base
import PBase
6 def axi_slave_name(self
, name
, ifacenum
):
9 def axi_slave_idx(self
, idx
, name
, ifacenum
):
12 def axi_addr_map(self
, name
, ifacenum
):
15 def slowifdeclmux(self
):
16 return " method Action jtag_ms (Bit#(1) in);\n" + \
17 " method Bit#(1) jtag_di;\n" + \
18 " method Action jtag_do (Bit#(1) in);\n" + \
19 " method Action jtag_ck (Bit#(1) in);"
21 def slowifinstance(self
):
22 return jtag_method_template
# bit of a lazy hack this...
25 jtag_method_template
= """\
26 method Action jtag_ms (Bit#(1) in);
27 pinmux.peripheral_side.jtag_ms(in);
29 method Bit#(1) jtag_di=pinmux.peripheral_side.jtag_di;
30 method Action jtag_do (Bit#(1) in);
31 pinmux.peripheral_side.jtag_do(in);
33 method Action jtag_ck (Bit#(1) in);
34 pinmux.peripheral_side.jtag_ck(in);