Skip to content

Commit

Permalink
Clean up generic register interface notes.
Browse files Browse the repository at this point in the history
  • Loading branch information
norumwe12 committed Jul 25, 2022
1 parent e69fccb commit acf3c74
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions BWUDP_manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,21 +140,13 @@ <h2>Firmware</h2>
<ul>
<li>The processor communicates with the Badger firmware through a
group of registers provided by an AXI4-Lite generic register
block design component so the design must provide one.&nbsp; In
the application top level module provide the generic register
boilerplate:<br>
<code>// General-purpose I/O register glue</code><br>
<code>wire [31:0] GPIO_OUT;</code><br>
<code>wire [GPIO_IDX_COUNT-1:0] GPIO_STROBES;</code><br>
<code>wire [31:0] GPIO_IN [0:GPIO_IDX_COUNT-1];</code><br>
<code>wire [(GPIO_IDX_COUNT*32)-1:0] GPIO_IN_FLATTENED;</code><br>
<code>genvar i;</code><br>
<code>generate</code><br>
<code>for (i = 0 ; i &lt; GPIO_IDX_COUNT ; i = i + 1) begin</code><br>
<code>&nbsp;&nbsp;&nbsp; assign GPIO_IN_FLATTENED[i*32+:32] =
GPIO_IN[i];</code><br>
<code>end</code><br>
<code>endgenerate</code></li>
block design component which the design must provide.&nbsp; The
driver uses the following register index names:<br>
<code>GPIO_IDX_NET_CONFIG_CSR</code><code><br>
</code><code>GPIO_IDX_NET_TX_CSR</code><code><br>
</code><code>GPIO_IDX_NET_RX_CSR</code><code><br>
</code><code>GPIO_IDX_NET_RX_DATA</code><br>
<span style="font-family: monospace;"></span><code></code><code></code><code></code><code></code><code></code><code></code><code></code><code></code><code></code><code></code><code></code></li>
<li>Copy badger.v and sup/Makefile from the bantamweight UDP
source directory and gmii_to_rgmii.v from the bedrock source to
a source directory in the Vivado application.Edit the Makefile
Expand Down Expand Up @@ -194,8 +186,6 @@ <h2>Firmware</h2>
</code><code>&nbsp;&nbsp;&nbsp; .RGMII_TX_CTRL(RGMII_TX_CTRL),</code><code><br>
</code><code>&nbsp;&nbsp;&nbsp; .RGMII_TXD(RGMII_TXD));</code></li>
</ul>
<p><br>
</p>
<h2>Software<br>
</h2>
<p>Copy bwudp.c, bwudp.h, and badger.c from the bantamweight UDP
Expand Down

0 comments on commit acf3c74

Please sign in to comment.