UltraGreen
Junior Member level 3
help in understanding code ( verilog )
Hello All, I am very new to System verilog and I do not understand the code below. i.e. after 1 bit hold and 128 bit Out has been declared as logic, what is CGlobal CGlobal(); means ?
Also after that, what does the assign statements do here. i.e. clkA is assigned to CGlobal.clkA
is it an array ? if it is then, how is the indexing happening here ?
Similarly such notations are also there in other files inside port declaration -
Thanks in advance
Hello All, I am very new to System verilog and I do not understand the code below. i.e. after 1 bit hold and 128 bit Out has been declared as logic, what is CGlobal CGlobal(); means ?
Also after that, what does the assign statements do here. i.e. clkA is assigned to CGlobal.clkA
is it an array ? if it is then, how is the indexing happening here ?
Code:
.
.
logic hold;
logic [127:0] Out;
CGlobal CGlobal();
assign CGlobal.clkA = clkA ;
assign CGlobal.clkB = clkB ;
.
.
Similarly such notations are also there in other files inside port declaration -
Code:
.
.
.
input logic [11:0] wr_xtern,
CGlobal.slave CGlobal
);
Thanks in advance