module SRsetreset_H (
   s,
   s_ack,
   r,
   r_ack,
   out,
   in
);

   input s;
   output s_ack;
   input r;
   output r_ack;
   output out;
   input in;
   wire w1;

   NA2 I0 (s, w1, out);
   NA2 I1 (in, r, w1);
   OR2 I2 (s, w1, s_ack);
   OR2 I3 (r, in, r_ack);
endmodule

