我正在使用tikz-timing
包创建总线时序图:
\begin{tikztimingtable}[timing/slope=0.5]
DT & 2D{}12D{}1D\\
CK & [H] 1H2{6T}2T\\
\end{tikztimingtable}
现在发现的斜率D{}D
是的斜率的两倍T
。这在某种程度上是合乎逻辑的,因为T
只有一个字符(这是原因吗?),但我现在想要一种巧妙的方法让斜率均匀。
答案1
您需要设置单独的斜率。包装手册第 7 页表 4 中的规定:
timing/slope=<0.0 – 1.0> Sets slope for logic transitions.
This also sets dslope = 2 * slope,
zslope = slope / 2.
timing/lslope=<0.0 – 1.0> Sets slope for logic transitions only. Default: 0.1
timing/dslope=<0.0 – 1.0> Sets slope for data transitions. Default: 0.2
timing/zslope=<0.0 – 1.0> Sets slope for Z transitions. Default: 0.05
代码
\documentclass[tikz]{standalone}
\usepackage{tikz-timing}
\begin{document}
\begin{tikztimingtable}[
timing/lslope=.5,
timing/dslope=.5,
]
DT & 2D{}12D{}1D \\
CK & [H] 1H2{6T}2T \\
\end{tikztimingtable}
\end{document}