Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
|
|
sim:start [2023/04/16 11:30] rajit [Exported processes] |
sim:start [2023/04/16 11:31] (current) rajit [Exported processes] |
defproc file_source(chan!(int<W>) O); | defproc file_source(chan!(int<W>) O); |
</code> | </code> |
This process is also a ''W''-bit source, except the values produced are taken from a file. The identified ''ID'' is used to determine the file name, and the file is assumed to have at least one data value. By default, the file name is ''_infile_.{ID}''. The file format is a sequence of hexadecimal values, one per line. If ''LOOP'' is set to true, then the sequence of values specified in the file is repeated forever. The file name can be modified using [[run-time configuration options|tools:actsim#standard_sim_namespace_helper_functions]]. | This process is also a ''W''-bit source, except the values produced are taken from a file. The identified ''ID'' is used to determine the file name, and the file is assumed to have at least one data value. By default, the file name is ''_infile_.{ID}''. The file format is a sequence of hexadecimal values, one per line. If ''LOOP'' is set to true, then the sequence of values specified in the file is repeated forever. The file name can be modified using [[tools:actsim#standard_sim_namespace_helper_functions|run-time configuration options]]. |
| |
<code act> | <code act> |