1 Star 1 Fork 1

李亚伟/verilog_progen

forked from qiankun214/verilog_progen 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
new_test.v 2.39 KB
一键复制 编辑 原始数据 按行查看 历史
qiankun214 提交于 2020-11-30 01:29 . rebuild markdown decoder
// pro-gen:start here,you can edit before this line
module test #(
parameter DWIDTH = 16,
parameter AWIDTH = 16,
parameter OWIDTH = 8,
parameter PWIDTH = 4,
parameter PE_ROW = 12,
parameter PE_COL = 12
) (
input clk,
input rst_n,
input cfg_valid,
output cfg_busy,
input [DATA_CWIDTH - 1 : 0] cfg_data_data,
input [WICP_CWIDTH - 1 : 0] cfg_wicp_data,
input [TMPC_CWIDTH - 1 : 0] cfg_tmpc_data,
input [POST_CWIDTH - 1 : 0] cfg_post_data,
input [AWIDTH - 1 : 0] outside_memory_addr,
input outside_memory_wreq,
input [DWIDTH * PE_ROW - 1 : 0] outside_memory_din,
output [DWIDTH * PE_ROW - 1 : 0] outside_memory_dout
);
// pro-gen:stop here,you can edit after this line
// pro-gen:start here,you can edit before this line
// submodule here
//instance inst_test_a module test_dout
parameter inst_test_a_DWIDTH = DWIDTH;
wire inst_test_a_clk;
wire inst_test_a_rst_n;
wire inst_test_a_dout_valid;
wire [inst_test_a_DWIDTH - 1:0] inst_test_a_dout_data;
test_dout #(
.DWIDTH(inst_test_a_DWIDTH)
) inst_test_a (
.clk(inst_test_a_clk),
.rst_n(inst_test_a_rst_n),
.dout_valid(inst_test_a_dout_valid),
.dout_data(inst_test_a_dout_data)
);
//instance inst_test_b module test_din
parameter inst_test_b_DWIDTH = DWIDTH;
wire inst_test_b_clk;
wire inst_test_b_rst_n;
wire inst_test_b_din_valid;
wire [inst_test_b_DWIDTH - 1:0] inst_test_b_din_data;
test_din #(
.DWIDTH(inst_test_b_DWIDTH)
) inst_test_b (
.clk(inst_test_b_clk),
.rst_n(inst_test_b_rst_n),
.din_valid(inst_test_b_din_valid),
.din_data(inst_test_b_din_data)
);
//instance inst_test_c module test_din
parameter inst_test_c_DWIDTH = DWIDTH;
wire inst_test_c_clk;
wire inst_test_c_rst_n;
wire inst_test_c_din_valid;
wire [inst_test_c_DWIDTH - 1:0] inst_test_c_din_data;
test_din #(
.DWIDTH(inst_test_c_DWIDTH)
) inst_test_c (
.clk(inst_test_c_clk),
.rst_n(inst_test_c_rst_n),
.din_valid(inst_test_c_din_valid),
.din_data(inst_test_c_din_data)
);
// link here
assign inst_test_b_din_valid = inst_test_a_dout_valid;
assign inst_test_b_din_data = inst_test_a_dout_data;
assign inst_test_c_din_valid = inst_test_a_dout_valid;
assign inst_test_c_din_data = inst_test_a_dout_data;
assign inst_test_c_rst_n = test_rst_n;
assign inst_test_a_rst_n = test_rst_n;
assign inst_test_b_clk = test_clk;
assign inst_test_c_clk = test_clk;
assign inst_test_b_rst_n = test_rst_n;
assign inst_test_a_clk = test_clk;
// pro-gen:stop here,you can edit after this line
endmodule
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/liyw_dv/verilog_progen.git
[email protected]:liyw_dv/verilog_progen.git
liyw_dv
verilog_progen
verilog_progen
master

搜索帮助