anchor.diff:        Bit#(1) parity;
         Bool    mux_sel;
         Bit#(53) c_local_out;
  -//      if (is_switch_mode) begin
  -//          c_local_out = c_global + 2;
  -//      end
  -//      else begin
  -//          c_local_out = c_local + 2;
  -//      end
  -      c_local_out = c_local+2; // forward compute parity.
  +      Bit#(53) c_local_next;
  +      if (is_switch_mode) begin
  +          c_local_out = c_global + 2;
  +          c_local_next = c_global+1;
  +      end
  +      else begin
  +          c_local_out = c_local + 2;
  +          c_local_next = c_local+1;
  +      end
  +//      c_local_out = c_local+2; // forward compute parity.
         parity = ^c_local_out[52:0];
   
         if(v[9:2] == 8'h1e) begin
  
positive.code:       dmFifo.enq(?);
        stageOneFifo.enq(TxStageOneBuf{mux_sel: mux_sel,
                                       parity: parity,
                                       c_local: c_local + 1});
        dtpTxInPipelineFifo.enq(v);
     endrule
  
  
negative.code:             if(verbose) $display("%d: %d, Enqueued outgoing ack %d", cycle, id, init_timestamp);
           end
           else if (sel == beacon_type) begin
  //            Bit#(53) tmp;
  //            if (is_switch_mode) begin
  //                tmp = c_global + 1;
  //                parity = ^tmp[52:0];
  //            end
  //            else begin
  //                tmp = c_local+1;
  //            end
              encodeOut = {c_local+1, parity, beacon_type, block_type};
              if(verbose) $display("%d: %d, Enqueued outgoing beacon %d", cycle, id, c_local+1);
           end
           else begin
  