先腐蚀后膨胀
FPGA实现
`timescale 1ns / 1ps
//
// Company:
// Engineer:
//
// Create Date: 2024/08/22 22:00:36
// Design Name:
// Module Name: top
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//
module top(
input clk ,
input rst ,
input [ 10: 0] img_width ,
input [ 10: 0] img_height ,
input [ 23: 0] img_data_i ,
input valid_i ,
output [ 23: 0] img_data_o ,
output valid_o
);
//参数定义
wire