<!--
-
- Copyright (C) 2019 Xilinx, Inc.  All rights reserved.
-
- Permission is hereby granted, free of charge, to any person obtaining a copy of
- this software and associated documentation files (the "Software"), to deal in
- the Software without restriction, including without limitation the rights to
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- of the Software, and to permit persons to whom the Software is furnished to do
- so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be included in all
- copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS  BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- SOFTWARE.
-
-
-
- Author: Michael Chyziak <chyziak@xilinx.com>
-
-->


{% extends "Default/default.html" %}
{% block content %}

<div class="page-header">
  <h1 class="display-4"><b>{% block title %}OpenAMP Matrix Multiplication{% endblock %}</b></h1>
</div>

<h2>Description</h2>
<div class="well">
  <p>The matrix multiplication application example provides a complex test that generates two matrices on the Linux Cortex-A53 master. These matrices are then sent to the Cortex-R5 remote, which is used to multiply the matrices. The remote then sends the result back to the master, which display the result.</p>
  <p>The Linux master boots the bare-metal remote firmware using <b>remoteproc</b>. It then trasmits two randomly-generated matrices using RPMsg.</p>
  <p>The bare-metal firmware multiplies the two matrices and transmits the result back to the master using RPMsg.<p>
  <p>More information can be found in the latest <a href="https://www.xilinx.com/scr/search?output=xml_no_dtd&ie=UTF-8&oe=UTF-8&getfields=*&filter=0&site=EntireSite&num=200&client=allsite&proxystylesheet=allsite&show_dynamic_navigation=0&allVersions=1&sort=meta:Last%2520Modified%2520Date%3AD%3AED&emsingleres=/scr&cqroot=&proxyreload=0&requiredfields=-XilinxRobots:noindex&resultsView=&q=+inmeta:Document%2520Class%3DDocument+inmeta:Product%2520Type%3DSilicon%2520Devices+inmeta:Product%2520Type%3DDesign%2520Tools+inmeta:Document%2520ID%3DUG1186">UG1186</a> documentation (an internet connection is required to view this page).</p>
</div>

<form action="matrix_mult.html" method="post" id="matrix_form">
  <center><button type="submit" class="btn btn-primary" id="grey_out" onclick="greyButton()">Run Project</button></center>
</form>

<script>
  function greyButton() {
    document.getElementById("matrix_form").submit();
    document.getElementById("grey_out").disabled = true;
  }
</script>

<div>
  <label for="textarea"><h2>Output</h2></label>
  <textarea readonly class="form-control" id="textarea" rows="12">{{ output }}</textarea>
<div>

{% endblock %}
