|
Message
From: OpenCores CVS Agent<cvs@o...>
Date: Mon Jan 17 12:04:45 CET 2005
Subject: [cvs-checkins] MODIFIED: sc2v ...
Date: 00/05/01 17:12:04 Modified: sc2v/examples fsm.cpp Log: Version 0.2.1. elseif bug corrected. Added true and false translation Revision Changes Path 1.2 +6 -0 sc2v/examples/fsm.cpp http://www.opencores.org/cvsweb.shtml/sc2v/examples/fsm.cpp.diff?r1=1.1&r2=1.2 (In the diff below, changes in quantity of whitespace are not shown.) Index: fsm.cpp =================================================================== RCS file: /cvsroot/jcastillo/sc2v/examples/fsm.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- fsm.cpp 20 Dec 2004 17:49:04 -0000 1.1 +++ fsm.cpp 17 Jan 2005 11:04:43 -0000 1.2 @@ -27,6 +27,12 @@ case S0 : if(input1.read()){ next_state.write(S1); + a.write(true); + }else if (input2.read()){ + next_state.write(S2); + a.write(false); + }else{ + next_state.write(S0); a.write(1); } break;
|