From 7c9559524b68a2cff0b984d026a4dd191b799c58 Mon Sep 17 00:00:00 2001 From: Peter Rugg Date: Tue, 4 Mar 2025 14:06:41 +0000 Subject: [PATCH] Increase bit-widths of assertion modules These were hardwired for RV64, but I'm assuming having too many bits will not be a problem for RV32? --- assertions.sv | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/assertions.sv b/assertions.sv index 64a06f2..eb51914 100644 --- a/assertions.sv +++ b/assertions.sv @@ -1,8 +1,8 @@ module assert_prop_unique( - input wire [31 : 0] prop_base, - input wire [31 : 0] prop_len, - input wire [31 : 0] prop_newBase, - input wire [31 : 0] prop_newLen + input wire [63 : 0] prop_base, + input wire [63 : 0] prop_len, + input wire [63 : 0] prop_newBase, + input wire [63 : 0] prop_newLen ); wire prop_ok; @@ -20,8 +20,8 @@ module assert_prop_unique( endmodule module assert_prop_exact( - input wire [31 : 0] prop_base, - input wire [31 : 0] prop_len + input wire [63 : 0] prop_base, + input wire [63 : 0] prop_len ); wire prop_ok; @@ -37,8 +37,8 @@ module assert_prop_exact( endmodule module assert_prop_exactConditions( - input wire [31 : 0] prop_base, - input wire [31 : 0] prop_len + input wire [63 : 0] prop_base, + input wire [63 : 0] prop_len ); wire prop_ok; @@ -54,8 +54,8 @@ module assert_prop_exactConditions( endmodule module assert_prop_getBase( - input wire [31 : 0] prop_base, - input wire [31 : 0] prop_len + input wire [63 : 0] prop_base, + input wire [63 : 0] prop_len ); wire prop_ok; @@ -71,9 +71,9 @@ module assert_prop_getBase( endmodule module assert_prop_getTop( - input wire [31 : 0] prop_base, - input wire [31 : 0] prop_len, - input wire [31 : 0] prop_addr + input wire [63 : 0] prop_base, + input wire [63 : 0] prop_len, + input wire [63 : 0] prop_addr ); wire prop_ok; @@ -90,9 +90,9 @@ module assert_prop_getTop( endmodule module assert_prop_getLength( - input wire [31 : 0] prop_base, - input wire [31 : 0] prop_addr, - input wire [31 : 0] prop_len + input wire [63 : 0] prop_base, + input wire [63 : 0] prop_addr, + input wire [63 : 0] prop_len ); wire prop_ok; @@ -109,9 +109,9 @@ module assert_prop_getLength( endmodule module assert_prop_isInBounds( - input wire [31 : 0] prop_base, - input wire [31 : 0] prop_len, - input wire [31 : 0] prop_addr + input wire [63 : 0] prop_base, + input wire [63 : 0] prop_len, + input wire [63 : 0] prop_addr ); wire prop_ok; @@ -128,9 +128,9 @@ module assert_prop_isInBounds( endmodule module assert_prop_setAddr( - input wire [31 : 0] prop_base, - input wire [31 : 0] prop_len, - input wire [31 : 0] prop_addr + input wire [63 : 0] prop_base, + input wire [63 : 0] prop_len, + input wire [63 : 0] prop_addr ); wire prop_ok;