Changeset 56 for sources/test_regression/09092005c
- Timestamp:
- May 29, 2013, 6:05:44 PM (11 years ago)
- Location:
- sources/test_regression/09092005c
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/test_regression/09092005c/Makefile
r55 r56 4 4 5 5 test: all 6 @echo-ne "| Testing $$(basename $$(pwd)): " ;7 @./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null8 @./$(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/09092005c/system.cpp
r55 r56 32 32 void f() { 33 33 int t = (int) (sc_time_stamp().to_double()); 34 #ifdef SYSTEMCASS_SPECIFIC 35 t = t * 1000; 36 #endif 34 37 o.write(t); 35 38 } … … 38 41 generator(sc_module_name) : clk("clk"), o("o") { 39 42 SC_METHOD(f); 40 sensitive << clk. neg();43 sensitive << clk.pos(); 41 44 dont_initialize(); 42 45 } … … 60 63 g("generator"), 61 64 obs1("observer1"), 62 obs2("observer2") {65 obs2("observer2") { 63 66 g.clk(clk); 64 67 obs1.clk(clk); … … 74 77 75 78 int sc_main (int argc, char ** argv) { 76 sc_clock clk("top_clk");79 sc_clock clk("top_clk", sc_time(1, sc_core::SC_NS)); 77 80 sc_signal<int> out("top_out"); 78 81 … … 80 83 81 84 t.clk(clk); 82 t.o 85 t.o(out); 83 86 84 87 // QM : pourquoi est-ce tout commenté ??
Note: See TracChangeset
for help on using the changeset viewer.