From: Luke Kenneth Casson Leighton Date: Wed, 19 Aug 2020 18:58:12 +0000 (+0100) Subject: comments in dcache X-Git-Tag: semi_working_ecp5~288^2~9 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1eb16fd392419e1677e1ae3b125d2181728649e0;p=soc.git comments in dcache --- diff --git a/src/soc/experiment/dcache.py b/src/soc/experiment/dcache.py index 26d961a2..4635b32b 100644 --- a/src/soc/experiment/dcache.py +++ b/src/soc/experiment/dcache.py @@ -877,6 +877,10 @@ class Reservation(RecordObject): # # begin # +"""these, because they are constants, can actually be done *as* + python asserts: + assert LINE_SIZE % ROWSIZE == 0, "line size not ...." +""" # assert LINE_SIZE mod ROW_SIZE = 0 # report "LINE_SIZE not multiple of ROW_SIZE" severity FAILURE; # assert ispow2(LINE_SIZE)