Changeset 56 for sources/test_regression/07052005
- Timestamp:
- May 29, 2013, 6:05:44 PM (11 years ago)
- Location:
- sources/test_regression/07052005
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/test_regression/07052005/Makefile
r55 r56 4 4 5 5 test: all 6 @echo-ne "| Testing $$(basename $$(pwd)): " ;7 @./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null ;8 @./$(EXE_SC) > $(LOG_SC) 2> /dev/null9 @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)" ; \ 12 12 fi ; 13 13 -
sources/test_regression/07052005/system.cpp
r55 r56 21 21 sc_uint<16> g; 22 22 sc_uint<8> h; 23 sc_uint<32> i; 24 sc_uint<17> j; 23 25 24 26 b = 0x7; 25 27 c1 = 0x3; 26 28 c2 = 0x1; 27 d = 0xA 0;29 d = 0xA; 28 30 e = 0x11; 29 31 g = 0xabcd; 30 32 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); 33 36 34 37 f = b.range (0, 0); 35 36 38 h = g.range (11, 4); 39 i = e; 37 40 38 41 cout << "a = 0x" << hex << (unsigned int) a << " = " << a.to_string(SC_BIN) << "\n"; … … 45 48 //ASSERT(h.to_string(SC_BIN) == "0b010111100"); 46 49 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"; 48 52 49 53 return 0;
Note: See TracChangeset
for help on using the changeset viewer.