01、8位加法器功能代码module adder_8 ( cout,sum,a,b,cin );input [7:0] a,b;input cin;output cout;output [7:0] sum;assign {cout,sum} = a + b + cin;endmodule2、8位计数器功能代码module counter(out,clk,enable,rst);output[7:0] out;input clk, rst, enable;reg[
fpga开发
2023-05-15
46 点赞
0 评论
69 浏览