1 from bsv
.peripheral_gen
.base
import PBase
7 return "import jtagdtm::*;\n"
9 def extfastifinstance(self
, name
, count
):
10 return self
._extifinstance
(name
, count
, "_out", "", True)
12 def fastifdecl(self
, name
, count
):
14 return "interface Ifc_jtagdtm jtag{0}_out;".format(count
)
16 def get_clock_reset(self
, name
, count
):
19 def pinname_in(self
, pname
):
24 def pinname_out(self
, pname
):
29 def mkfast_peripheral(self
):
31 Ifc_jtagdtm jtag{0} <-mkjtagdtm(clocked_by tck, reset_by trst);
32 rule drive_tmp_scan_outs;
33 jtag{0}.scan_out_1_i(1'b0);
34 jtag{0}.scan_out_2_i(1'b0);
35 jtag{0}.scan_out_3_i(1'b0);
36 jtag{0}.scan_out_4_i(1'b0);
37 jtag{0}.scan_out_5_i(1'b0);
41 def axi_slave_name(self
, name
, ifacenum
, typ
=None):
44 def axi_slave_idx(self
, idx
, name
, ifacenum
, typ
):
47 def axi_addr_map(self
, name
, ifacenum
, typ
=None):