基于FPGA的图像卷积运算(支持多通道,多分辨率)

`timescale 1 ps / 1 ps
module tst_tb;

regclk ;
regrst_n ;
initial
begin
clk = 0 ;
rst_n = 0;
#100 rst_n =1 ;
end
【基于FPGA的图像卷积运算(支持多通道,多分辨率)】

always #5 clk <= ~clk ;
///----------------------------------------------------------------
reg[7:0] data_buf [0:3071] ;
reg[7:0] data_buf1 [0:8];
reg[7:0] data_buf2 [0:8];
//path_d = 'E:/MATLAB/file/lei/data_input/dat_in.txt'
initial
begin
//$readmemb()
$readmemh ("E:/MATLAB/file/lei/data_input/dat_in32.txt", data_buf) ;
$readmemh ("E:/MATLAB/file/lei/data_input/dat3_3_in.txt", data_buf1) ;
$readmemh ("E:/MATLAB/file/lei/data_input/dat_biao.txt", data_buf2) ;
end
parameter WIDTH=10'd32-1;
parameter WIDTH1=10'd32;
parameter CH_NUM=10'd3;
parameter M=12'd1024;

reg [7:0] data_2 ;
reg [3:0] cnt_2 ;
always @(posedge

    推荐阅读