Fixed write port bug (updated chipkit resource ctrl)