Не понимаю почему на выходе при моделировании всегда 0? Кто-нибудь сталкивался с таким? как можно решить?
CODE
`timescale 1 ps / 1 ps
module after_definder (
input wire clk
);
wire out_pll;
wire loc;
pll_1 pll_x8(
.inclk0(clk),
.areset(1'b1),
.c0(out_pll),
.locked(loc)
);
endmodule
//testbentch
`timescale 1 ps / 1 ps
module after_definder_tb;
reg clk;
after_definder model(.clk(clk));
initial
begin
clk=0;
end
always
begin
#5000 clk=~clk;
end
endmodule
module after_definder (
input wire clk
);
wire out_pll;
wire loc;
pll_1 pll_x8(
.inclk0(clk),
.areset(1'b1),
.c0(out_pll),
.locked(loc)
);
endmodule
//testbentch
`timescale 1 ps / 1 ps
module after_definder_tb;
reg clk;
after_definder model(.clk(clk));
initial
begin
clk=0;
end
always
begin
#5000 clk=~clk;
end
endmodule