Deleted Added
sdiff udiff text old ( 13322:7391057615bd ) new ( 13325:86323e6cc8ec )
full compact
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

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

45//
46
47#ifndef __SYSTEMC_EXT_DT_FX_SC_FXDEFS_HH__
48#define __SYSTEMC_EXT_DT_FX_SC_FXDEFS_HH__
49
50#include "../../utils/messages.hh"
51#include "../../utils/sc_report_handler.hh"
52#include "../int/sc_nbutils.hh"
53
54#if ULONG_MAX > 0xffffffffUL
55# define SC_LONG_64 1
56#else
57# define SC_LONG_64 0
58#endif
59
60namespace sc_dt

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

244# define SC_ASSERT_(cnd, msg) \
245 SC_ERROR_IF_IMPL_(!(cnd), sc_core::SC_ID_INTERNAL_ERROR_, msg)
246#else
247# define SC_ASSERT_(cnd, msg) (void(0))
248#endif
249
250#define SC_ERROR_IF_(cnd,id) SC_ERROR_IF_IMPL_(cnd, id, 0)
251
252#define SC_CHECK_WL_(wl) SC_ERROR_IF_((wl) <= 0, \
253 "(E300) total wordlength <= 0 is not valid")
254
255#define SC_CHECK_N_BITS_(n_bits) \
256 SC_ERROR_IF_((n_bits) < 0, "number of bits < 0 is not valid")
257
258#define SC_CHECK_DIV_WL_(div_wl) \
259 SC_ERROR_IF_((div_wl) <= 0, "division wordlength <= 0 is not valid")
260
261#define SC_CHECK_CTE_WL_(cte_wl) \
262 SC_ERROR_IF_((cte_wl) <= 0, "constant wordlength <= 0 is not valid")
263
264#define SC_CHECK_MAX_WL_(max_wl) \
265 SC_ERROR_IF_((max_wl) <= 0 && (max_wl) != -1, \
266 "maximum wordlength <= 0 and != -1 is not valid")
267
268
269// ----------------------------------------------------------------------------
270// Generic observer macros.
271// ----------------------------------------------------------------------------
272
273#define SC_OBSERVER_(object, observer_type, event) \
274{ \

--- 16 unchanged lines hidden ---