Сила сигнала
Сила
Определение
Ключевое слово
Является значением по умолчанию для
module strength_example1(output out, input i1, i2);
or(supply1, strong0) o1(out, i1, i2);
and(strong1, supply0) a1(out, i1, i2);
endmodule
module strength_example2(output out, input i1, i2);
assign(supply1, pull0) out = (i1 | i2);
assign(strong1, supply0) out = i1 & i2;
endmodule
module strength_tb;
reg i1, i2;
wire out;
strength_example1 st(out, i1, i2);
//strength_example2 st(out, i1, i2);
initial begin
$monitor("%0t: i1 = %b, i2 = %b -> out = %b", $time, i1, i2, out);
i1 = 0; i2 = 0;
#1 i1 = 0; i2 = 1;
#1 i1 = 1; i2 = 0;
#1 i1 = 1; i2 = 1;
end
endmoduleLast updated