anchor.diff:              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 = {tmp, parity, beacon_type, block_type};
  +//            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
  
positive.code:       dmFifo.enq(?);
        stageOneFifo.enq(TxStageOneBuf{mux_sel: mux_sel,
                                       parity: parity,
                                       c_local: c_local + 1});
        dtpTxInPipelineFifo.enq(v);
     endrule
  
  
negative.code:       Bit#(1) parity;
        Bool    mux_sel;
        Bit#(53) c_local_out;
        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
  