From 68200dda70ec28c0e8ec808fa09570eb376b4bbd Mon Sep 17 00:00:00 2001 From: Steven Herbst Date: Mon, 20 Jan 2020 18:29:54 -0800 Subject: [PATCH] separate flag for range assertions --- setup.py | 2 +- svreal/svreal.sv | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index f4dc37a..daaaf80 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages name = 'svreal' -version = '0.1.8' +version = '0.1.9' DESCRIPTION = '''\ Library for working with fixed-point numbers in SystemVerilog\ diff --git a/svreal/svreal.sv b/svreal/svreal.sv index d4f10de..7fe4772 100644 --- a/svreal/svreal.sv +++ b/svreal/svreal.sv @@ -136,7 +136,7 @@ endfunction localparam real `RANGE_PARAM_REAL(``name``) = ``range_expr``; \ localparam integer `WIDTH_PARAM_REAL(``name``) = ``width_expr``; \ localparam integer `EXPONENT_PARAM_REAL(``name``) = ``exponent_expr`` \ - `ifdef FLOAT_REAL \ + `ifdef RANGE_ASSERTIONS \ ; `ASSERTION_REAL(``name``) \ `endif