having block declaration from layout , say:
<block type="core/template" name="top.search" as="topSearch" template="catalogsearch/form.mini.phtml"/>
how can i use addblock in a template for displaying the block
/* @var $this Mage_Core_Block_Template */
echo $this->getLayout()->addBlock($block, $blockName)->toHtml() ;