Skip to content

Commit f20a16c

Browse files
committed
Specify that granularity is only allowed for unsigned Shape.
1 parent 4a78334 commit f20a16c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

text/0040-arbitrary-memory-shape.md

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ The `Memory.width` attribute is deprecated and removed in a later Amaranth versi
4747

4848
`ReadPort.data` and `WritePort.data` are updated to be `Signal(memory.shape)`.
4949

50+
`WritePort.__init__()` raises an exception if `granularity` is specified and `shape` is not an unsigned `Shape`.
51+
5052
`DummyPort.__init__()` gets a new `data_shape` argument. `data_width` is deprecated and removed in a later Amaranth version.
5153

5254
## Drawbacks

0 commit comments

Comments
 (0)