30.04.2013 Views

BSV by Example - Computation Structures Group

BSV by Example - Computation Structures Group

BSV by Example - Computation Structures Group

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Integer inx = 0;<br />

Bool arr1[4];<br />

arr1[inx] = True;<br />

inx = inx + 1;<br />

arr1[inx] = False;<br />

inx = inx + 1;<br />

arr1[inx] = True;<br />

inx = inx + 1;<br />

arr1[inx] = True;<br />

You can also create a loop with the integer variable. In order to convert an Integer value to a sized<br />

value, such as Int#(32), you need to use the fromInteger overloaded conversion function.<br />

Int#(32) arr2[16];<br />

for (Integer i=0; i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!