我是靠谱客的博主 耍酷秀发,这篇文章主要介绍fpga-第一次在同一个文件中写两个module模块,其中上面一个模块是作为子模块,现在分享给大家,希望可以做个参考。

module ram(clk,rst,in,out);




           input clk;
           input rst;
           input[31:0]in;
           output[31:0]out;




endmodule






module ram1(clk,rst,indata,outdata);
           input clk;
           input rst;
           input[31:0]indata;
           output[31:0]outdata;
           
           ram u1(
                  .clk(clk),
                  .rst(rst),
                  .in(indata),
                  .out(outdata)
                  );




endmodule

最后

以上就是耍酷秀发最近收集整理的关于fpga-第一次在同一个文件中写两个module模块,其中上面一个模块是作为子模块的全部内容,更多相关fpga-第一次在同一个文件中写两个module模块内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(57)

评论列表共有 0 条评论

立即
投稿
返回
顶部