多模块定义
genvar i ;
generate
for (i=0 ; i<8; i=i+1)begin
xdc xdc_u(
.d1 (d1 ) ,
.d2 (d2 ) ,
.d3 (d3 )
);
end
endgenerate
条件判断
generate begin
if(DEBUG =="ON")begin
ila ila_u
(
.clk(clk),
.probe0
(
{
A1,
A2,
A3,
A4
}
)
);
end
end
endgenerate
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18