verilog: use a wider example and include an img

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2019-06-18 16:06:09 -07:00
parent 9901b83844
commit 03aab024d6
2 changed files with 12 additions and 11 deletions

BIN
img/verilog-synthesis.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -155,15 +155,16 @@
<section> <section>
<h2>What is an FPGA?</h2> <h2>What is an FPGA?</h2>
<pre><code class="verilog" data-trim> <pre><code class="verilog" data-trim>
module DFF (output reg Q, input C, D, R); module example (output reg [0:5] Q, input C);
reg [0:8] counter;
always @(posedge C) always @(posedge C)
if (~R) begin begin
Q <= 1'b0; counter <= counter + 1'b1;
end else begin Q = counter[7] ^ counter[5] | counter<<2;
Q <= D;
end end
endmodule endmodule
</code></pre> </code></pre>
<img class="fragment" data-src="img/verilog-synthesis.png" alt="Verilog Synthesis">
</section> </section>
<section> <section>
@ -172,10 +173,10 @@
<li>5280 4-input LUTs (LC)</li> <li>5280 4-input LUTs (LC)</li>
<li>16 kilobytes BRAM</li> <li>16 kilobytes BRAM</li>
<li class="fragment highlight-blue">128 kilobytes "SPRAM"</li> <li class="fragment highlight-blue">128 kilobytes "SPRAM"</li>
<li>Current-limited 3-channel LED</li> <li>Current-limited 3-channel LED driver</li>
<li>2x I2C and 2x SPI</li> <li>2x I2C and 2x SPI</li>
<li>8 16-bit DSP units</li> <li>8 16-bit DSP units</li>
<li>Warmboot capability</li> <li class="fragment highlight-blue">Warmboot capability</li>
</ol> </ol>
</section> </section>