当前位置:网站首页>VHDL implementation of arbitrary size matrix multiplication

VHDL implementation of arbitrary size matrix multiplication

2022-07-07 03:26:00 QQ_ seven hundred and seventy-eight million one hundred and thi

VHDL Realize matrix multiplication of any size

You can modify the size of the matrix through parameters ;
Use VHDL Language implementation ;
stay vivado Synthesis and Simulation on .

 Insert picture description here
The code is as follows :
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.NUMERIC_STD.ALL;
use work.DigEng.ALL;
entity Top_level is
------------set generic value for N,M,H,data_size--------------------
– Default values 23 matrix A and 32 matrix B to define the size of matrices
generic( M: natural := 3; – the number of columns of A and rows of B
N: natural := 5; – the number of columns of B
H: natural := 4; – the number of rows of A
data_size: natural := 5); – how many bits of binary number representing the data stored in ROM
---------------set inputs and outputs for the matrix multiplication--------
– Define ports in the circuits
Port ( CLK : in STD_LOGIC; – time sequence
RST :

原网站

版权声明
本文为[QQ_ seven hundred and seventy-eight million one hundred and thi]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207062015324077.html