
//Accumulator
module acc (CLK,RST,IN,OUT);
 input CLK,RST;
 input [3:0] IN;
 output [3:0] OUT;
 wire [3:0] W0;
 add4 myAdd (.S(W0), .A(IN), .B(OUT));
 reg4 myReg (.CLK(CLK), .Q(OUT), .D(W0), .RST(RST));
endmodule // acc
