From c28b117d0ac55f2061f393b9b75f90750e740365 Mon Sep 17 00:00:00 2001 From: Cesar Fuguet Date: Tue, 10 Dec 2024 10:33:22 +0100 Subject: [PATCH] Add assertion on the number of words in a cacheline --- rtl/src/hpdcache.sv | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rtl/src/hpdcache.sv b/rtl/src/hpdcache.sv index 4e3606c..c2f55e9 100644 --- a/rtl/src/hpdcache.sv +++ b/rtl/src/hpdcache.sv @@ -1225,6 +1225,9 @@ import hpdcache_pkg::*; refill_access_width_assert: assert (HPDcacheCfg.u.clWords >= HPDcacheCfg.u.accessWords) else $fatal("cache access width shall be l.e. to cache-line width"); + cl_words_assert: + assert (HPDcacheCfg.u.clWords > 1) else + $fatal("cacheline words shall be greater than 1"); mem_width_assert: assert (HPDcacheCfg.u.memDataWidth >= HPDcacheCfg.reqDataWidth) else $fatal("memory interface data width shall be g.e. to req data width");