code: def _build(self, addr, data, enable):
          
          if self.max_write_ports is not None:
              self.write_ports += 1
              if self.write_ports > self.max_write_ports:
                  raise PyrtlError('maximum number of write ports (%d) exceeded' %
                                   self.max_write_ports)
          writeport_net = LogicNet(
              op='@',
              op_param=(self.id, self),
              args=(addr, data, enable),
              dests=tuple())
          working_block().add_net(writeport_net)
          self.writeport_nets.append(writeport_net)
docs: Builds a write port.