Change uses of Case() to Default() in preparation for RFC 39.

This commit is contained in:
Wanda 2024-01-11 05:38:26 +01:00 committed by Catherine
parent 7e18786c97
commit ea258fad71
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ class Encoder(Elaboratable):
for j in range(self.width):
with m.Case(1 << j):
m.d.comb += self.o.eq(j)
with m.Case():
with m.Default():
m.d.comb += self.n.eq(1)
return m

View file

@ -509,7 +509,7 @@ class SimulatorIntegrationTestCase(FHDLTestCase):
self.m.d.sync += self.o.eq(self.a + self.b)
with self.m.Case(1):
self.m.d.sync += self.o.eq(self.a - self.b)
with self.m.Case():
with self.m.Default():
self.m.d.sync += self.o.eq(0)
self.m.domains += self.sync