先贴代码
input clk100m,
input sys_rst,
input [31:0]inter_in_max,
input [31:0]inter_in_min,
input [31:0]inter_in_sample,
input [31:0]inter_in_normal,
input data_en,
input inter_en,
input [3:0]inter_num,
mix inter_max (
.clk100m(clk100m),
.sys_rst(sys_rst),
.data_in(inter_in_max),
.data_en(data_en),
.inter_en(inter_en),
.inter_num(inter_num),
.data_out(inter_out_max_reg),
.data_out_en(inter_out_en_max)
);
mix inter_min (
.clk100m(clk100m),
.sys_rst(sys_rst),
.data_in(inter_in_min),
.data_en(data_en),
.inter_en(inter_en),
.inter_num(inter_num),
.data_out(inter_out_min_reg),
.data_out_en(inter_out_en_min)
);
mix inter_sample (
.clk100m(clk100m),
.sys_rst(sys_rst),
.data_in(inter_in_sample),
.data_en(data_en),
.inter_en(inter_en),
.inter_num(inter_num),
.data_out(inter_out_sample_reg),
.data_out_en(inter_out_en_sample)
);
mix inter_normal (
.clk100m(clk100m),
.sys_rst(sys_rst),
.data_in(inter_in_normal),
.data_en(data_en),
.inter_en(inter_en),
.inter_num(inter_num),
.data_out(inter_out_normal_reg),
.data_out_en(inter_out_en_normal)
);
这四个模块除了数据不一样。其他都一样吧。 |