Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 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