Untitled

Pasted by Anonymous on Sun Jun 14 09:13: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.we,
			self.r.eq(self.r & ~self.w),
		)