star107460.cpp revision 12855:588919e0e4aa
15661Sgblack@eecs.umich.edu/*****************************************************************************
25661Sgblack@eecs.umich.edu
35661Sgblack@eecs.umich.edu  Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
47087Snate@binkert.org  more contributor license agreements.  See the NOTICE file distributed
57087Snate@binkert.org  with this work for additional information regarding copyright ownership.
67087Snate@binkert.org  Accellera licenses this file to you under the Apache License, Version 2.0
77087Snate@binkert.org  (the "License"); you may not use this file except in compliance with the
87087Snate@binkert.org  License.  You may obtain a copy of the License at
97087Snate@binkert.org
107087Snate@binkert.org    http://www.apache.org/licenses/LICENSE-2.0
117087Snate@binkert.org
125661Sgblack@eecs.umich.edu  Unless required by applicable law or agreed to in writing, software
137087Snate@binkert.org  distributed under the License is distributed on an "AS IS" BASIS,
147087Snate@binkert.org  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
157087Snate@binkert.org  implied.  See the License for the specific language governing
167087Snate@binkert.org  permissions and limitations under the License.
177087Snate@binkert.org
187087Snate@binkert.org *****************************************************************************/
197087Snate@binkert.org
207087Snate@binkert.org/*****************************************************************************
215661Sgblack@eecs.umich.edu
227087Snate@binkert.org  star107460.cpp --
235661Sgblack@eecs.umich.edu
245661Sgblack@eecs.umich.edu  Original Author: Martin Janssen, Synopsys, Inc., 2002-02-15
255661Sgblack@eecs.umich.edu
265661Sgblack@eecs.umich.edu *****************************************************************************/
275661Sgblack@eecs.umich.edu
285661Sgblack@eecs.umich.edu/*****************************************************************************
295661Sgblack@eecs.umich.edu
305661Sgblack@eecs.umich.edu  MODIFICATION LOG - modifiers, enter your name, affiliation, date and
315661Sgblack@eecs.umich.edu  changes you are making here.
325661Sgblack@eecs.umich.edu
335661Sgblack@eecs.umich.edu      Name, Affiliation, Date:
345661Sgblack@eecs.umich.edu  Description of Modification:
355661Sgblack@eecs.umich.edu
365661Sgblack@eecs.umich.edu *****************************************************************************/
375661Sgblack@eecs.umich.edu
385661Sgblack@eecs.umich.edu// If one assigns a sc_lv vector containing X or Z to
395661Sgblack@eecs.umich.edu// sc_bv the error message tells you that this is not
405661Sgblack@eecs.umich.edu// possible, but doesn't tell you where(which variable
415661Sgblack@eecs.umich.edu// at least) this happened. In a large program such a
425661Sgblack@eecs.umich.edu// message is impossible to trace
435661Sgblack@eecs.umich.edu
445661Sgblack@eecs.umich.edu#include "systemc.h"
455661Sgblack@eecs.umich.edu
465661Sgblack@eecs.umich.eduint sc_main(int, char**)
475661Sgblack@eecs.umich.edu{
485661Sgblack@eecs.umich.edu  sc_lv<8> lv("00X0100");
495661Sgblack@eecs.umich.edu  sc_bv<8> bv;
505661Sgblack@eecs.umich.edu
515661Sgblack@eecs.umich.edu  cout << "\nbv = "<<bv <<"\nlv = "<<lv;
525661Sgblack@eecs.umich.edu  bv = lv;
535661Sgblack@eecs.umich.edu  cout << "\nbv = "<<bv <<"\nlv = "<<lv<<"\n";
545661Sgblack@eecs.umich.edu
555661Sgblack@eecs.umich.edu  return 0;
565661Sgblack@eecs.umich.edu}
575661Sgblack@eecs.umich.edu