From 040a0600105dc8d4d4e16af68437d3ed752ef53f Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 5 Oct 2020 12:30:26 +0100 Subject: [PATCH] whoops fix syntax error --- src/soc/experiment/icache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/experiment/icache.py b/src/soc/experiment/icache.py index be30d32b..0213473e 100644 --- a/src/soc/experiment/icache.py +++ b/src/soc/experiment/icache.py @@ -140,7 +140,7 @@ print("WAY_BITS =", WAY_BITS) # from microwatt/utils.vhdl def ispow2(n): - return if ((n << 32) & ((n-1) << 32)) == 0: + return ((n << 32) & ((n-1) << 32)) == 0: assert LINE_SIZE % ROW_SIZE == 0 assert ispow2(LINE_SIZE), "LINE_SIZE not power of 2" -- 2.30.2