For this exercise, we will try to recreate the figure in simplearch_ref.pdf
:
- Clone the repository
- Compile the
simplearch.tex
file to see what you have so far - Change the documentclass to
standalone
and recompile - Add a block for the memory with a narrower defined width, placing it beside the Accelerator block using relative positioning
- Draw a thick line for the bus (use the
line width
parameter), from below the bottom left corner of accelerator to the bottom right corner of memory - Draw the arrows between the top blocks and the bus
- Place two small blocks, using the style below the bus, using the 0.25 and 0.75 positions
- Connect up the final blocks to complete the diagram (You can specify a point that is the intersection of two lines from two points using
(a |- b)
as the coordinate)
##PGFPlots For this exercise, we will take a basic plot, add more data points and add a pre-determined function line:
- Compile
simpleplot.tex
, and change to the standalone class - Modify the plot so that only the marks are shown
- Add the second data series from the file
plot2.data
- Modify the colours so the two plots are distinct
- Now add a third mathematical plot:
\addplot {expression}
where the expression is for 3x^2-2x+4 - Add
domain=0:20
do get the line to draw for the required range - Modify the style so the expression plot stands out from the others
- Label the axes x and y