langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
10
Task/Loops-Foreach/SystemVerilog/loops-foreach.v
Normal file
10
Task/Loops-Foreach/SystemVerilog/loops-foreach.v
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
program main;
|
||||
int values[$];
|
||||
|
||||
initial begin
|
||||
values = '{ 1, 3, 7, 11 };
|
||||
foreach (values[i]) begin
|
||||
$display( "%0d --> %0d", i, values[i] );
|
||||
end
|
||||
end
|
||||
endprogram
|
||||
Loading…
Add table
Add a link
Reference in a new issue