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 --- 57 unchanged lines hidden (view full) --- 66#include "base/compiler.hh" 67#include "systemc/ext/dt/bit/sc_bv_base.hh" 68#include "systemc/ext/dt/bit/sc_lv_base.hh" 69#include "systemc/ext/dt/fx/scfx_ieee.hh" 70#include "systemc/ext/dt/fx/scfx_pow10.hh" 71#include "systemc/ext/dt/fx/scfx_rep.hh" 72#include "systemc/ext/dt/fx/scfx_utils.hh" 73#include "systemc/ext/utils/endian.hh" |
74#include "systemc/ext/utils/messages.hh" |
75 76namespace sc_dt 77{ 78 79// ---------------------------------------------------------------------------- 80// some utilities 81// ---------------------------------------------------------------------------- 82 --- 991 unchanged lines hidden (view full) --- 1074 case SC_OCT_US: 1075 step = 3; 1076 break; 1077 case SC_HEX: 1078 case SC_HEX_US: 1079 step = 4; 1080 break; 1081 default: |
1082 SC_REPORT_FATAL(sc_core::SC_ID_ASSERTION_FAILED_, 1083 "unexpected sc_numrep"); |
1084 sc_core::sc_abort(); 1085 } 1086 1087 msb = (int)std::ceil(double(msb + 1) / step) * step - 1; 1088 1089 lsb = (int)std::floor(double(lsb) / step) * step; 1090 1091 if (msb < 0) { --- 1563 unchanged lines hidden --- |