
module main(
inputclk,
inputrst,
output reg [7:0] led
)
(*mark_debug = "true"*)reg [23:0] counter
always @(posedge clk) begin
if(rst) begin
counter <= 0
led <= 8'b00000001
这是你交叉`include出现的问题推荐你在divd.v
开头写上
`ifndef DIVD_V
`define DIVD_V
在最后写上
`endif
这样只要文件之前被include过了,就会有DVID_V这个define,这样就能避免同一个文件在不同的地方被include造成的重复declare
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)