Quantcast
Channel: Cadence Functional Verification Forum
Viewing all articles
Browse latest Browse all 1074

Crossbararray in Veriloga with for loop

$
0
0

Hello, cadence beginner here.

I want to create a crossbararray in Veriloga with two for loops, but I get the errormessage from the parser: 

 ERROR (VACOMP-2259): "for<<--? (i = 1; i < `size; i = i + 1) begin :
        gen_loop_i"

here is the code:

`define size 4

module crossbar_array_4x4_crossbar_schematic ( I, V );

output    [`size:1]I;

input    [`size:1]V;

genvar i,j;

generate
for(i = 1; i < `size; i = i + 1) begin : gen_loop_i
    for(j = 1; j <= `size; j = j + 1) begin : gen_loop_j
        JART_VCM_2 'i'_'j' ( V[j] , I[i] );
    end
end
endgenerate

endmodule

the VCM module definition is included in the file as well as the constants.vams and disciplines.vams


Viewing all articles
Browse latest Browse all 1074

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>