search.noResults

search.searching

saml.title
dataCollection.invalidEmail
note.createNoteMessage

search.noResults

search.searching

orderForm.title

orderForm.productCode
orderForm.description
orderForm.quantity
orderForm.itemPrice
orderForm.price
orderForm.totalPrice
orderForm.deliveryDetails.billingAddress
orderForm.deliveryDetails.deliveryAddress
orderForm.noItems
Feature: Embedded design


most important benefits from moving the algorithm’s execution from an MCU to an FPGA become apparent – as a reference, this step is equivalent to the ‘system management through a microcontroller’ setup, described earlier. Modern FPGA tools allow for a suite of optimisations and enhancements that greatly enhance the performance of complex algorithms. Before analysing the results, there are


some important terms to bear in mind: • Latency – The number of clock cycles required to execute all iterations of the loop;


• Interval – The number of clock cycles before the next iteration of a loop begins to process data;


• Block random access memory (BRAM); • DSP48E – Digital signal processing slice for the UltraScale architecture;


• Flipflop (FF); • Look-up table (LUT); • Unified Random-Access Memory (URAM) – which can be a single transistor.


Default Te default optimisation setting comes from the unaltered result of translating the C-based algorithm to synthesisable HDL. No optimisations are enabled, and this can be used as a performance reference to better understand the other optimisations.


Pipeline Inner Loop Te PIPELINE directive instructs Vivado HLS to unroll the inner loops so that new data can start being processed with earlier data still in the pipeline. Tus, new data does not have to wait for the existing data to complete before its processing begins.


Pipeline Outer Loop Applying the PIPELINE directive to the outer loop makes it pipelined. However, the inner loops’ operations now occur concurrently. Both the latency and interval time are cut in half through applying this directly to the outer loop.


Array Partition This directive maps the contents of the loops to the arrays and thus flattens all of the memory access to single elements within them. Hence, more RAM is consumed, but again, the execution time of this algorithm is halved.


Dataflow This directive allows the designer to specify a target number of clock cycles between each input read. This directive is only supported for top-level functions. Only loops and functions exposed to this level will benefit from this directive.


Inline The INLINE directive flattens all loops, both inner and outer, so that both row and column processes can execute concurrently. The number of required clock cycles is minimised, even if this consumes more FPGA resources.


Table 1: FPGA algorithm execution optimisation findings – latency and interval


Table 2: FPGA algorithm execution optimisation findings – resource utilisation


www.electronicsworld.co.uk May 2022 23


Page 1  |  Page 2  |  Page 3  |  Page 4  |  Page 5  |  Page 6  |  Page 7  |  Page 8  |  Page 9  |  Page 10  |  Page 11  |  Page 12  |  Page 13  |  Page 14  |  Page 15  |  Page 16  |  Page 17  |  Page 18  |  Page 19  |  Page 20  |  Page 21  |  Page 22  |  Page 23  |  Page 24  |  Page 25  |  Page 26  |  Page 27  |  Page 28  |  Page 29  |  Page 30  |  Page 31  |  Page 32  |  Page 33  |  Page 34  |  Page 35  |  Page 36  |  Page 37  |  Page 38  |  Page 39  |  Page 40  |  Page 41  |  Page 42  |  Page 43  |  Page 44  |  Page 45  |  Page 46  |  Page 47  |  Page 48  |  Page 49  |  Page 50  |  Page 51  |  Page 52