测试文件如下:
`timescale 1 us/ 1ns
module mix_module_vlg_tst();
reg CLK;
reg RSTn;
wire Flash_LED;
wire [2:0] Run_LED;
mix_module i1
(
.CLK(CLK),
.Flash_LED(Flash_LED),
.RSTn(RSTn),
.Run_LED(Run_LED)
);
initial
begin
CLK=0;
RSTn=0;
#5000 RSTn=1;
end
begin
#50 CLK=~CLK;
end
endmodule
源程序拷贝到黑金的板子上是对的,可是跟modelsim联调的时候,出来的Flash_LED和Run_LED是红色的??为什么 |