13 lines
172 B
Coq
13 lines
172 B
Coq
|
|
module top;
|
||
|
|
integer result;
|
||
|
|
|
||
|
|
initial begin
|
||
|
|
|
||
|
|
result = $countones(top);
|
||
|
|
result = $countones("a string");
|
||
|
|
result = $countones(4'b001, 1'b0);
|
||
|
|
|
||
|
|
end
|
||
|
|
|
||
|
|
endmodule
|