Skip to content
Snippets Groups Projects
Commit 3fbe30ba authored by Matthieu Cattin's avatar Matthieu Cattin
Browse files

Add .dot file for the DMA controller state machine.

parent 44c9759a
No related branches found
No related tags found
No related merge requests found
......@@ -4,11 +4,17 @@ TEXFILE_FUNC_SPEC= func_spec_GN4124_core.tex
TEXFILE_TECH_SPEC= tech_spec_GN4124_core.tex
DIAG_FUNC_SPEC= images/GN4124core.svg
DIAG_TECH_SPEC= images/GN4124core_arch.svg \
images/GN4124core_DMA_controller.svg images/State_Machine_DMA_controller.svg images/State_Machine_DMA_controller_0.svg \
images/GN4124core_L2P_DMA_master.svg images/GN4124core_P2L_DMA_master.svg
DIAG_ALL= images/GN4124core.svg images/GN4124core_arch.svg \
images/GN4124core_DMA_controller.svg images/State_Machine_DMA_controller.svg images/State_Machine_DMA_controller_0.svg \
images/GN4124core_L2P_DMA_master.svg images/GN4124core_P2L_DMA_master.svg
images/GN4124core_DMA_controller.svg \
images/State_Machine_DMA_controller.svg \
images/GN4124core_L2P_DMA_master.svg \
images/GN4124core_P2L_DMA_master.svg
DOT_TECH_SPEC= images/dma_controller_state_machine.dot
DIAG_ALL= images/GN4124core.svg \
images/GN4124core_arch.svg \
images/GN4124core_DMA_controller.svg \
images/State_Machine_DMA_controller.svg \
images/GN4124core_L2P_DMA_master.svg \
images/GN4124core_P2L_DMA_master.svg
.PHONY: clean view
......@@ -23,7 +29,7 @@ $(TEXFILE_FUNC_SPEC:.tex=.pdf): $(TEXFILE_FUNC_SPEC) $(DIAG_FUNC_SPEC:.svg=.pdf)
# Not very nice hack to get references right
pdflatex $(TEXFILE_FUNC_SPEC)
$(TEXFILE_TECH_SPEC:.tex=.pdf): $(TEXFILE_TECH_SPEC) $(DIAG_TECH_SPEC:.svg=.pdf)
$(TEXFILE_TECH_SPEC:.tex=.pdf): $(TEXFILE_TECH_SPEC) $(DIAG_TECH_SPEC:.svg=.pdf) $(DOT_TECH_SPEC:.dot=.pdf)
pdflatex $(TEXFILE_TECH_SPEC)
# Not very nice hack to get references right
pdflatex $(TEXFILE_TECH_SPEC)
......@@ -37,9 +43,11 @@ $(TEXFILE_TECH_SPEC:.tex=.pdf): $(TEXFILE_TECH_SPEC) $(DIAG_TECH_SPEC:.svg=.pdf)
%.png: %.svg
inkscape $< -d 120 -D -e $@
%.pdf: %.dot
dot -Tpdf -o $@ $<
view: $(TEXFILE_FUNC_SPEC:.tex=.pdf)
evince $(TEXFILE_FUNC_SPEC:.tex=.pdf)
view: $(TEXFILE_TECH_SPEC:.tex=.pdf)
evince $(TEXFILE_TECH_SPEC:.tex=.pdf)
clean:
@rm -f \
......@@ -61,5 +69,6 @@ clean:
$(DIAG_TECH_SPEC:.svg=.pdf) \
$(DIAG_ALL:.svg=.pdf) \
$(DIAG_ALL:.svg=.png) \
$(DOT_TECH_SPEC:.dot=.pdf)\
diag: $(DIAG_ALL:.svg=.pdf) $(DIAG_ALL:.svg=.png)
......@@ -149,4 +149,4 @@
\end{titlepage}
\setcounter{page}{2}
}
\ No newline at end of file
}
digraph dma_controller{
Idle -> StartTransfer;
Error -> StartTransfer;
Abort -> StartTransfer;
StartTransfer -> Transfer;
Transfer -> Idle;
Transfer -> Error;
Transfer -> Abort;
Transfer -> StartChain;
StartChain -> Chain;
Chain -> StartTransfer;
Chain -> Error;
Chain -> Abort;
}
\ No newline at end of file
......@@ -122,10 +122,11 @@ After the end of a transfer, if this transfer is not the last, the controller as
%\end{figure}
\begin{figure}[!ht]
\centering
\includegraphics[width=0.8\textwidth]{State_Machine_DMA_controller.pdf}
\caption{DMA controller state machine}
\label{fig:GN4124core_dma_ctrl_state_machine}
\centering
%\includegraphics[width=0.8\textwidth]{State_Machine_DMA_controller.pdf}
\includegraphics[width=0.8\textwidth]{images/dma_controller_state_machine.pdf}
\caption{DMA controller state machine}
\label{fig:GN4124core_dma_ctrl_state_machine}
\end{figure}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment