我画了一个时序图TikZ-timing
。整体时序太长。因此,该图显示了信号时序的开始和结束。这应在所有行中用虚线表示
- 公共汽车
- 访问计数器
- 空闲总线位周期计数器
虚线应在 x=4,8 至 x=5.8 的范围内。最低信号在此处显示得更陡峭。
如何才能使相应范围的所有水平线都变为虚线?
\documentclass{article}
\usepackage{tikz-timing}
\begin{document}
\begin{tikzpicture}
%[node a/.style={ font=\tiny}]
%\draw (0,0) node[a]{Counter};
\node at (0,0.0) [font=\tiny] {Counter};
\node at (0,0.2) [font=\tiny] {Bit-period};
\node at (0,0.4) [font=\tiny] {Idle Bus};
\node at (0,3.2) [font=\tiny]{Access-};
\node at (0,3.0) [font=\tiny]{counter};
\node at (0,3.6) [font=\tiny]{Bus};
\node at (0,4.0) [font=\tiny]{Action};
% Action
\draw[<->] (2.5,4) -- (7.3,4);
\draw (2.5,4.1) -- (2.5,3.9);
\draw (7.3,4.1) -- (7.3,3.9);
\draw (6.5,4.1) -- (6.5,3.9);
\node at (4.8,4.1) [font=\tiny]{Idle bus};
\node at (6.9,4.1) [font=\tiny]{Sync};
% Bus
\timing(1,3.5) {3U20H3U3H};
% Accesscounter
\timing(1,3) {5D X 2D{1} 2D{2} 2D{3} 2D{4} 8D{~~~~~~~~~~~~~~3} D{4} 6D{1} };
% Idle bus bit-period counter
\timing(1,0) {LLL!{ -- +(12,4.3) -- +(17,9.5) -- +(19,10) -- +(19,0)
-- +(23,0) -- +(26,2) } };
% Bit-perion counter values
\draw (2.8,0.50) node [font=\tiny]{40};
\draw (3.2,0.65) node [font=\tiny]{50};
\draw (3.6,0.80) node [font=\tiny]{60};
\draw (4.0,0.95) node [font=\tiny]{70};
\draw (4.4,1.10) node [font=\tiny]{80};
\draw (6.2,2.50) node [font=\tiny]{360};
% left and right border
\draw (1,-0.2) -- (1,4.2);
\draw (8,-0.2) -- (8,4.2);
% \draw[help lines] (0,0) grid (10,4);
\end{tikzpicture}
\end{document}
目前结果: