I would like have a few fixed nodes of size 1cm x 1cm. However, the text inside these nodes should wrap around.
I used the following questions help to figure out about wrapping text. However it doesn't seem to work.
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[node distance=1.75cm,auto , font=\small]
\tikzstyle{block}=[draw, fill=white, text width=1cm, anchor=west, minimum height=1cm]
\node [block] [minimum width=1.5cm, minimum height=1.5cm,align=center] (mb0) {MB};
\node [block] [right of=mb0] (dmem0) {dmem};
\node [block] [left of=mb0] (imem0) {imem};
\node [block] [below of=mb0,align=left] (cmemin0) {cmem\_in};
\node [block] [right of=cmemin0] (dma0) {DMA};
\node [block] [right of=dma0] (cmemout0) {cmem\_out};
\end{tikzpicture}
\end{document}
However you can see in the picture that the text flows outside the box
instead of wrapping around.

How do I resolve this situation?
Thanks !

{sectar-ion}in one of your nodes, it wraps at the hyphen. – Steven B. Segletes Apr 15 '14 at 13:28cmemin0node, but still the text flows out. – knowledge_seeker Apr 15 '14 at 13:30text widthto allow hyphenation. – Ignasi Apr 15 '14 at 13:33text width=1cmin the block style. – knowledge_seeker Apr 15 '14 at 13:34cmem _out) will allow a line break, but that, of course, is not automatic hyphenation. – Steven B. Segletes Apr 15 '14 at 13:34cmem_inhyphenated? TeX only know how to break know words, but not estrange ones even more if it contains - or _ – Ignasi Apr 15 '14 at 13:38cmem_inbyaverylonglongstring. I see that the text still overflows. So probably-or space is a must for breaking text. – knowledge_seeker Apr 15 '14 at 13:41\-. It will break the text at that point if need be, otherwise it will be invisible. Still not 100% automatic of course. – T. Verron Apr 15 '14 at 13:42\allowbreak. You should offer that as an answer. – Steven B. Segletes Apr 15 '14 at 13:44