OpenCores
URL https://opencores.org/ocsvn/sc2v/sc2v/trunk

Subversion Repositories sc2v

[/] [sc2v/] [trunk/] [examples/] [dummy2.h] - Diff between revs 24 and 25

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 24 Rev 25
Line 13... Line 13...
   sc_in<bool> input1, input2;
   sc_in<bool> input1, input2;
   sc_out<sc_uint<2> > a,b,w;
   sc_out<sc_uint<2> > a,b,w;
 
 
   void regs();
   void regs();
   void fsm_proc();
   void fsm_proc();
 
   void dummy_proc();
 
 
   sc_signal<sc_uint<2> > state,next_state;
   sc_signal<sc_uint<2> > state,next_state;
   sc_signal< sc_uint<32> > array[12];
   sc_signal< sc_uint<32> > array[12];
 
 
   SC_CTOR(fsm){
   SC_CTOR(fsm){
Line 26... Line 27...
     sensitive_neg(rst);
     sensitive_neg(rst);
 
 
     SC_METHOD(fsm_proc);
     SC_METHOD(fsm_proc);
     sensitive(state);
     sensitive(state);
     sensitive << input1;
     sensitive << input1;
     sensitive << array[3];
     sensitive << array;
     sensitive(input2);
     sensitive(input2);
 
 
 
     SC_METHOD(dummy_proc);
 
     sensitive << input1;
 
 
 }
 }
};
};
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.