projects
/
gram.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aea3ffa
)
Use If instead of a Switch
author
Jean THOMAS
<git0@pub.jeanthomas.me>
Mon, 27 Jul 2020 14:41:58 +0000
(16:41 +0200)
committer
Jean THOMAS
<git0@pub.jeanthomas.me>
Mon, 27 Jul 2020 14:41:58 +0000
(16:41 +0200)
gram/phy/ecp5ddrphy.py
patch
|
blob
|
history
diff --git
a/gram/phy/ecp5ddrphy.py
b/gram/phy/ecp5ddrphy.py
index 6d579c6618d06ca89d3ecce4084016ded234de41..f477a73d953e89cdfa8c3488599d0d41a7489fe4 100644
(file)
--- a/
gram/phy/ecp5ddrphy.py
+++ b/
gram/phy/ecp5ddrphy.py
@@
-371,11
+371,10
@@
class ECP5DDRPHY(Peripheral, Elaboratable):
)
m.d.sync += dq_o_data_d.eq(dq_o_data)
- with m.Switch(bl8_chunk):
- with m.Case(0):
- m.d.sync += dq_o_data_muxed.eq(dq_o_data[:4])
- with m.Case(1):
- m.d.sync += dq_o_data_muxed.eq(dq_o_data_d[4:])
+ with m.If(bl8_chunk):
+ m.d.sync += dq_o_data_muxed.eq(dq_o_data_d[4:])
+ with m.Else():
+ m.d.sync += dq_o_data_muxed.eq(dq_o_data[:4])
m.submodules += [
Instance("ODDRX2DQA",