Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

x.bv.width -> len(x)

  • Loading branch information...
commit 768a3a826af4502690759e35e062f9dfdc711422 1 parent 809cd99
Sébastien Bourdeauducq authored July 13, 2012
6  milkymist/asmicon/multiplexer.py
@@ -29,7 +29,7 @@ def __init__(self, requests, tagbits):
29 29
 		self.want_reads = Signal()
30 30
 		self.want_writes = Signal()
31 31
 		# NB: cas_n/ras_n/we_n are 1 when stb is inactive
32  
-		self.cmd = CommandRequestRW(self.requests[0].a.bv.width, self.requests[0].ba.bv.width, tagbits)
  32
+		self.cmd = CommandRequestRW(len(self.requests[0].a), len(self.requests[0].ba), tagbits)
33 33
 	
34 34
 	def get_fragment(self):
35 35
 		comb = []
@@ -102,7 +102,7 @@ def __init__(self, timing_settings, command, dfi, hub):
102 102
 	def get_fragment(self):
103 103
 		comb = []
104 104
 		sync = []
105  
-		tagbits = self.hub.tag_call.bv.width
  105
+		tagbits = len(self.hub.tag_call)
106 106
 		
107 107
 		rd_valid = Signal()
108 108
 		rd_tag = Signal(BV(tagbits))
@@ -169,7 +169,7 @@ def get_fragment(self):
169 169
 		
170 170
 		# Command choosing
171 171
 		requests = [bm.cmd for bm in self.bank_machines]
172  
-		tagbits = self.hub.tag_call.bv.width
  172
+		tagbits = len(self.hub.tag_call)
173 173
 		choose_cmd = _CommandChooser(requests, tagbits)
174 174
 		choose_req = _CommandChooser(requests, tagbits)
175 175
 		comb += [
8  milkymist/dfii/__init__.py
@@ -16,11 +16,11 @@ def __init__(self, phase):
16 16
 		self._command = RegisterFields("command",
17 17
 			[self._cs, self._we, self._cas, self._ras, self._wren, self._rden])
18 18
 		
19  
-		self._address = RegisterField("address", self.phase.address.bv.width)
20  
-		self._baddress = RegisterField("baddress", self.phase.bank.bv.width)
  19
+		self._address = RegisterField("address", len(self.phase.address))
  20
+		self._baddress = RegisterField("baddress", len(self.phase.bank))
21 21
 		
22  
-		self._wrdata = RegisterField("wrdata", self.phase.wrdata.bv.width)
23  
-		self._rddata = RegisterField("rddata", self.phase.rddata.bv.width, READ_ONLY, WRITE_ONLY)
  22
+		self._wrdata = RegisterField("wrdata", len(self.phase.wrdata))
  23
+		self._rddata = RegisterField("rddata", len(self.phase.rddata), READ_ONLY, WRITE_ONLY)
24 24
 	
25 25
 	def get_registers(self):
26 26
 		return [self._command,

0 notes on commit 768a3a8

Please sign in to comment.
Something went wrong with that request. Please try again.