sylefeb / Silice

Silice is an easy-to-learn, powerful hardware description language, that simplifies designing hardware algorithms with parallelism and pipelines.
Other
1.28k stars 77 forks source link

Algorithm inputs not allowed as circuit outputs #201

Open rob-ng15 opened 2 years ago

rob-ng15 commented 2 years ago

Given this circuit:

circuitry copycoordinates( input x, input y, output x1, output y1 ) { x1 = x; y1 = y; } Using outputs from an algorithm as inputs works:

( bitmap_x_write, bitmap_y_write ) = copycoordinates( GPUline.bitmap_x_write, GPUline.bitmap_y_write );

But using inputs to an algorithm as an output gives an error:

( GPU.gpu_x, GPU.gpu_y ) = copycoordinates( queue_x, queue_y );