Change uses of Case() to Default() in preparation for RFC 39.
				
					
				
			This commit is contained in:
		
							parent
							
								
									7e18786c97
								
							
						
					
					
						commit
						ea258fad71
					
				|  | @ -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 | ||||
| 
 | ||||
|  |  | |||
|  | @ -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 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Wanda
						Wanda