sc_fxdefs.hh (12853:e23d6f09069a) sc_fxdefs.hh (13160:1e959d3afc64)
1/*****************************************************************************
2
3 Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
4 more contributor license agreements. See the NOTICE file distributed
5 with this work for additional information regarding copyright ownership.
6 Accellera licenses this file to you under the Apache License, Version 2.0
7 (the "License"); you may not use this file except in compliance with the
8 License. You may obtain a copy of the License at

--- 229 unchanged lines hidden (view full) ---

238 SC_ERROR_IF_IMPL_(!(cnd), "internal error", msg)
239#else
240# define SC_ASSERT_(cnd, msg) (void(0))
241#endif
242
243#define SC_ERROR_IF_(cnd,id) SC_ERROR_IF_IMPL_(cnd, id, 0)
244
245#define SC_CHECK_WL_(wl) SC_ERROR_IF_((wl) <= 0, \
1/*****************************************************************************
2
3 Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
4 more contributor license agreements. See the NOTICE file distributed
5 with this work for additional information regarding copyright ownership.
6 Accellera licenses this file to you under the Apache License, Version 2.0
7 (the "License"); you may not use this file except in compliance with the
8 License. You may obtain a copy of the License at

--- 229 unchanged lines hidden (view full) ---

238 SC_ERROR_IF_IMPL_(!(cnd), "internal error", msg)
239#else
240# define SC_ASSERT_(cnd, msg) (void(0))
241#endif
242
243#define SC_ERROR_IF_(cnd,id) SC_ERROR_IF_IMPL_(cnd, id, 0)
244
245#define SC_CHECK_WL_(wl) SC_ERROR_IF_((wl) <= 0, \
246 "total wordlength <= 0 is not valid")
246 "(E300) total wordlength <= 0 is not valid")
247
248#define SC_CHECK_N_BITS_(n_bits) \
249 SC_ERROR_IF_((n_bits) < 0, "number of bits < 0 is not valid")
250
251#define SC_CHECK_DIV_WL_(div_wl) \
252 SC_ERROR_IF_((div_wl) <= 0, "division wordlength <= 0 is not valid")
253
254#define SC_CHECK_CTE_WL_(cte_wl) \

--- 29 unchanged lines hidden ---
247
248#define SC_CHECK_N_BITS_(n_bits) \
249 SC_ERROR_IF_((n_bits) < 0, "number of bits < 0 is not valid")
250
251#define SC_CHECK_DIV_WL_(div_wl) \
252 SC_ERROR_IF_((div_wl) <= 0, "division wordlength <= 0 is not valid")
253
254#define SC_CHECK_CTE_WL_(cte_wl) \

--- 29 unchanged lines hidden ---