展开全部
/newcommand{/tabincell}[2]{/begin{tabular}{@{}#1@{}}#2/end{tabular}}
%然后使用&/tabincell{c}{}&就可以在表格中自动换行
%比如这么用
/begin{tabular}{|62616964757a686964616fe4b893e5b19e31333431373931c|c|}
/hline
1&thefirstline//
/hline
2&/tabincell{c}{haha//heihei//zeze}//
/hline
/end{tabular}
扩展资料
每行文字太长,需要强制换行
\newcommand{\tabincell}[2]{\begin{tabular}{@{}#1@{}}#2\end{tabular}}
\begin{table}[!hpb]
\caption{VerilogHDL语言能力总结}
\label{verilog}
\centering
\begin{tabular}
{@{}cccc@{}}\toprule
%\multicolumn{2}{c}{Item}\\\cmidrule(r){1-2}
\hei{描述级别}&\hei{抽象级别}&\hei{功能描述}&\hei{物理模型}\\\midrule
&\song{系统级}&\tabincell{c}{用语言提供的高级结构能够实现\\所设计模块外部性能的模型}&
\tabincell{c}{芯片、电路板和物理\\划分的子模块}\\\cmidrule{2-4}
行为级&算法级&\tabincell{c}{用语言提供的高级功能\\能够实现算法运行的模型}&
部件之间的物理连接,电路板\\\cmidrule{2-4}
&RTL级&\tabincell{c}{描述数据如何在寄存器之间流动和\\如何处理、控制这些数据流动的模型}&
芯片、宏单元\\\midrule
逻辑级&门级&描述逻辑门与逻辑门之间连接的模型&标准单元布图\\\midrule
电路级&开关级&\tabincell{c}{描述器件中三极管和存储节点\\以及他们之间连接的模型}&晶体管布图\\\bottomrule
\end{tabular}
\end{table}