Changeset 56 for sources/test_regression/14092005
- Timestamp:
- May 29, 2013, 6:05:44 PM (11 years ago)
- Location:
- sources/test_regression/14092005
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/test_regression/14092005/Makefile
r55 r56 9 9 TRACE_REF = trace_file_reference.vcd 10 10 11 # Les traces SC et SCASS diffÚrent (maj de o1 sur le front montant dans SCASS), du coup on ne vérifie que la trace SystemCass 12 11 13 test: all 12 @echo -ne "| Testing $$(basename $$(pwd)): " ; 13 @./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null 14 @mv $(TRACE) $(TRACE1) 15 @./$(EXE_SC) > $(LOG_SC) 2> /dev/null 16 @mv $(TRACE) $(TRACE2) 17 @if tail -n +11 $(TRACE1) | diff $(TRACE_REF) - > /dev/null ; then \ 18 if tail -n +11 $(TRACE2) | diff $(TRACE_REF) - > /dev/null ; then \ 19 echo "OK" ; \ 20 else \ 21 echo "KO" ; \ 22 fi ; \ 14 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 15 $(SILENCE)./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null 16 $(SILENCE)mv $(TRACE) $(TRACE1) 17 $(SILENCE)./$(EXE_SC) > $(LOG_SC) 2> /dev/null 18 $(SILENCE)mv $(TRACE) $(TRACE2) 19 $(SILENCE)if tail -n +11 $(TRACE1) | diff $(TRACE_REF) - > /dev/null ; then \ 20 $(ECHO) -e "$(OK)" ; \ 23 21 else \ 24 echo "KO" ; \22 $(ECHO) -e "$(KO) 2" ; \ 25 23 fi ; 26 24 -
sources/test_regression/14092005/system.cpp
r55 r56 10 10 11 11 struct hard : sc_module { 12 sc_in_clk 13 sc_in<bool> 14 sc_in <int> 15 sc_out<int> 16 sc_signal 12 sc_in_clk clk; 13 sc_in<bool> resetn; 14 sc_in <int> i1; 15 sc_out<int> o1; 16 sc_signal<int> r1; 17 17 18 18 void fg() { … … 49 49 hard a("a"); 50 50 51 a.clk 51 a.clk(clk1); 52 52 a.resetn(resetn); 53 53 … … 56 56 57 57 /* Open trace file */ 58 sc_trace_file * system_trace_file;59 system_trace_file = sc_create_vcd_trace_file 58 sc_trace_file * system_trace_file; 59 system_trace_file = sc_create_vcd_trace_file("trace_file"); 60 60 61 61 /* clks waveforms are always useful */
Note: See TracChangeset
for help on using the changeset viewer.