Skip to content

Commit f28f5b4

Browse files
committed
Merge branch 'fix_read_ram_error_check' into develop
2 parents bfd7fb2 + 2525a42 commit f28f5b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

veriloggen/stream/stypes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3493,10 +3493,10 @@ def _implement(self, m, seq, svalid=None, senable=None):
34933493
(self.latency, 2))
34943494

34953495
if len(self.args) == 3 and self.latency == 2:
3496-
raise ValueError('Output register is required for when option')
3496+
raise ValueError('latency = 2 is not allowed, if when option is used.')
34973497

3498-
if senable is not None:
3499-
raise NotImplementedError('senable is not supported.')
3498+
if senable is not None and self.latency == 2:
3499+
raise NotImplementedError('senable is not supported, if when option is used.')
35003500

35013501
datawidth = self.bit_length()
35023502
signed = self.get_signed()

0 commit comments

Comments
 (0)