Ignore:
Timestamp:
May 29, 2013, 6:05:44 PM (11 years ago)
Author:
meunier
Message:
  • Tried to fix a problem with echo
  • Started to resolve some tests failing (often because of the test itself)
Location:
sources/test_regression/07052005
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sources/test_regression/07052005/Makefile

    r55 r56  
    44
    55test: all
    6         @echo -ne "| Testing $$(basename $$(pwd)): " ;
    7         @./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null ;
    8         @./$(EXE_SC) > $(LOG_SC) 2> /dev/null
    9         @if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \
    10     echo "OK" ; \
    11     else echo "KO" ; \
     6        $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ;
     7        $(SILENCE)./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null ;
     8        $(SILENCE)./$(EXE_SC) > $(LOG_SC) 2> /dev/null
     9        $(SILENCE)if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \
     10    $(ECHO) -e "$(OK)" ; \
     11    else $(ECHO) -e "$(KO)" ; \
    1212    fi ;
    1313
  • sources/test_regression/07052005/system.cpp

    r55 r56  
    2121    sc_uint<16> g;
    2222    sc_uint<8>  h;
     23    sc_uint<32> i;
     24    sc_uint<17> j;
    2325
    2426    b  = 0x7;
    2527    c1 = 0x3;
    2628    c2 = 0x1;
    27     d  = 0xA0;
     29    d  = 0xA;
    2830    e  = 0x11;
    2931    g  = 0xabcd;
    3032
    31     // bit vector concatenation and boolean concatenation
    32     a = (b, (c1 | c2), d & (b, c1), e);
     33    // Concatenation
     34    a = (b, (c1 | c2),  d & (b, c1), e);
     35    j = (b, c1, d , e);
    3336
    3437    f = b.range (0, 0);
    35 
    3638    h = g.range (11, 4);
     39    i = e;
    3740
    3841    cout << "a = 0x" << hex << (unsigned int) a << " = " << a.to_string(SC_BIN) << "\n";
     
    4548    //ASSERT(h.to_string(SC_BIN) == "0b010111100");
    4649
    47     cout << "Test OK.\n";
     50    cout << "i = 0x" << hex << (unsigned int) i << " = " << i.to_string(SC_BIN) << "\n";
     51    cout << "j = 0x" << hex << (unsigned int) j << " = " << j.to_string(SC_BIN) << "\n";
    4852
    4953    return 0;
Note: See TracChangeset for help on using the changeset viewer.