Untitled

Pasted by Anonymous on Sun Jun 14 10:21:47 2020 UTC as Python
1
2
3
4
5
6
7
class CSR_W1C(CSR):
	def __init__(self, size, name):
		CSR.__init__(self, size, name)
		
		self.sync += If(self.re,
			self.w.eq(self.w & ~self.r),
		)