put jtag interface straight out, not with bscan etc
[pinmux.git] / src / bsv / peripheral_gen / jtag.py
1 from bsv.peripheral_gen.base import PBase
2
3
4 class jtag(PBase):
5
6 def slowimport(self):
7 return " import jtagtdm::*;\n"
8
9 def extfastifinstance(self, name, count):
10 return self._extifinstance(name, count, "_out", "", True)
11
12
13
14 def fastifdecl(self, name, count):
15 # YUK!
16 return " Ifc_jtagdtm jtag{0}_out;".format(count);
17
18 def mkfast_peripheral(self):
19 return """\
20 Ifc_jtagdtm jtag{0} <-mkjtagdtm(clocked_by tck, reset_by trst);
21 rule drive_tmp_scan_outs;
22 jtag{0}.scan_out_1_i(1'b0);
23 jtag{0}.scan_out_2_i(1'b0);
24 jtag{0}.scan_out_3_i(1'b0);
25 jtag{0}.scan_out_4_i(1'b0);
26 jtag{0}.scan_out_5_i(1'b0);
27 endrule
28 """
29 def axi_slave_name(self, name, ifacenum, typ=''):
30 return ''
31
32 def axi_slave_idx(self, idx, name, ifacenum, typ):
33 return ('', 0)
34
35 def axi_addr_map(self, name, ifacenum):
36 return ''