Skip to content

Commit 2a8a2b7

Browse files
committed
deps: Update to LiteX 2023.12 and Amaranth 0.4.0.
1 parent afbe0b9 commit 2a8a2b7

12 files changed

Lines changed: 13 additions & 16 deletions

File tree

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
[submodule "deps/amaranth"]
22
path = deps/amaranth
33
url = https://github.com/amaranth-lang/amaranth.git
4-
[submodule "deps/amaranth-boards"]
5-
path = deps/amaranth-boards
6-
url = https://github.com/amaranth-lang/amaranth-boards.git
74
[submodule "deps/python-usb-protocol"]
85
path = deps/python-usb-protocol
96
url = https://github.com/usb-tools/python-usb-protocol.git

deps/amaranth

Submodule amaranth updated 189 files

deps/amaranth-boards

Lines changed: 0 additions & 1 deletion
This file was deleted.

deps/litex

Submodule litex updated 229 files

deps/luna

Submodule luna updated 152 files

deps/pythondata-cpu-vexriscv

orbtrace/debug/cmsis_dap.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ def RESP_Transfer_Process(self, m):
665665
with m.If(self.streamOut.valid & self.streamOut.ready):
666666
m.d.sync+=[
667667
# Beware, state used to select byte in word construction
668-
self.tfrData.word_select(self.tfr_txb.bit_select(0,3)-2,8).eq(self.streamOut.payload),
668+
self.tfrData.word_select((self.tfr_txb.bit_select(0,3)-2).as_unsigned(),8).eq(self.streamOut.payload),
669669
self.tfr_txb.eq(self.tfr_txb+1)
670670
]
671671

@@ -747,7 +747,7 @@ def RESP_Transfer_Process(self, m):
747747
with m.Case(10,11,12):
748748
with m.If(self.streamIn.ready):
749749
m.d.sync += [
750-
self.streamIn.payload.eq(self.txBlock.word_select(self.tfr_txb-10,8)),
750+
self.streamIn.payload.eq(self.txBlock.word_select((self.tfr_txb-10).as_unsigned(),8)),
751751
self.streamIn.valid.eq(1),
752752
self.tfr_txb.eq(self.tfr_txb+1),
753753
self.streamIn.last.eq(self.isV2 & (self.tfr_txb==12) & (self.tfrram.adr==0))
@@ -941,7 +941,7 @@ def RESP_Transfer_Complete(self, m):
941941
with m.If(self.streamIn.ready & self.streamIn.valid):
942942
m.d.sync += [
943943
self.txb.eq(self.txb+1),
944-
self.streamIn.payload.eq(self.tfrram.dat_r.word_select(self.txb-2,8)),
944+
self.streamIn.payload.eq(self.tfrram.dat_r.word_select((self.txb-2).as_unsigned(),8)),
945945
# 5 because of pipeline
946946
self.streamIn.last.eq(self.isV2 & (~self.transferCCount.bool()) & (self.txb==5)),
947947
self.streamIn.valid.eq(self.txb!=6)

orbtrace/microsoft_wcid/luna/gateware/usb/requests/windows/descriptorSet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def elaborate(self, platform) -> Module:
223223
m.d.comb += [
224224
self.tx.valid.eq(1),
225225
readPort.addr.eq(descriptorDataBaseAddress + wordInStream),
226-
self.tx.payload.eq(readPort.data.word_select(3 - byteInStream, 8)),
226+
self.tx.payload.eq(readPort.data.word_select(~byteInStream, 8)),
227227
self.tx.first.eq(onFirstPacket),
228228
self.tx.last.eq(onLastPacket),
229229
]

0 commit comments

Comments
 (0)