forked from M-Labs/artiq-zynq
pipeline GW: refactor to use KCode dict
This commit is contained in:
parent
d2b9c06c58
commit
04e8a7d59f
|
@ -168,9 +168,9 @@ class Packet_Wrapper(Module):
|
||||||
self.source = pak_end.source
|
self.source = pak_end.source
|
||||||
|
|
||||||
self.comb += [
|
self.comb += [
|
||||||
pak_start.data.eq(K(27, 7)),
|
pak_start.data.eq(KCode["pak_start"]),
|
||||||
pak_start.k.eq(1),
|
pak_start.k.eq(1),
|
||||||
pak_end.data.eq(K(29, 7)),
|
pak_end.data.eq(KCode["pak_end"]),
|
||||||
pak_end.k.eq(1),
|
pak_end.k.eq(1),
|
||||||
|
|
||||||
pak_start.source.connect(pak_end.sink),
|
pak_start.source.connect(pak_end.sink),
|
||||||
|
@ -227,11 +227,11 @@ class TX_Trigger(Module, AutoCSR):
|
||||||
inserter_once.k.eq(1),
|
inserter_once.k.eq(1),
|
||||||
inserter_twice.k.eq(1),
|
inserter_twice.k.eq(1),
|
||||||
If((self.linktrig_mode == 0) | (self.linktrig_mode == 2),
|
If((self.linktrig_mode == 0) | (self.linktrig_mode == 2),
|
||||||
inserter_once.data.eq(K(28, 2)),
|
inserter_once.data.eq(KCode["trig_indic_28_2"]),
|
||||||
inserter_twice.data.eq(K(28, 4)),
|
inserter_twice.data.eq(KCode["trig_indic_28_4"]),
|
||||||
).Else(
|
).Else(
|
||||||
inserter_once.data.eq(K(28, 4)),
|
inserter_once.data.eq(KCode["trig_indic_28_4"]),
|
||||||
inserter_twice.data.eq(K(28, 2)),
|
inserter_twice.data.eq(KCode["trig_indic_28_2"]),
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -256,7 +256,7 @@ class Trigger_ACK(Module):
|
||||||
code_src.stb.eq(self.ack),
|
code_src.stb.eq(self.ack),
|
||||||
code_src.data.eq(0x01),
|
code_src.data.eq(0x01),
|
||||||
code_src.k.eq(0),
|
code_src.k.eq(0),
|
||||||
k_code_inserter.data.eq(K(28, 6)),
|
k_code_inserter.data.eq(KCode["io_ack"]),
|
||||||
k_code_inserter.k.eq(1),
|
k_code_inserter.k.eq(1),
|
||||||
|
|
||||||
code_src.source.connect(k_code_inserter.sink)
|
code_src.source.connect(k_code_inserter.sink)
|
||||||
|
|
Loading…
Reference in New Issue