From 1eb16fd392419e1677e1ae3b125d2181728649e0 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 19 Aug 2020 19:58:12 +0100 Subject: [PATCH] comments in dcache --- src/soc/experiment/dcache.py | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.30.2