Skip to content

Commit acead1e

Browse files
committed
access to memblock.read_ports now and error
1 parent cade7f7 commit acead1e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyrtl/memory.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ def __init__(self, bitwidth, addrwidth, name='', max_read_ports=2, max_write_por
166166
self.num_write_ports = 0
167167
self.writeport_nets = []
168168

169+
@property
170+
def read_ports(self):
171+
raise PyrtlError('read_ports now called num_read_ports for clarity')
172+
169173
def __getitem__(self, item):
170174
""" Builds circuitry to retrieve an item from the memory """
171175
item = as_wires(item, bitwidth=self.addrwidth, truncating=False)

0 commit comments

Comments
 (0)