Home
  • Products
  • Solutions
  • Support
  • Company
  • Products
  • Solutions
  • Support
  • Company
Community Logic Design Can we do synthesis by using variables in generate bloc...

Stats

  • Locked Locked
  • Replies 0
  • Subscribers 68
  • Views 4288
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Can we do synthesis by using variables in generate block

RFStuff
RFStuff over 1 year ago

Dear All,

I  want to synthesize a logic  iteratively based on the values of the some variables by using generate construct.

The portion of the generate block is shown below.

Could any body please tell whether it can be synthesized.

Kind Regards,

............
............

parameter NoOfTaps= 4;

integer CSDTapsSignVal[NoOfTaps-1:0][NoMaxCSDBits-1:0];
integer CSDTapsModHornerAddVal[NoOfTaps-1:0][NoMaxCSDBits-1:0];
integer CSDTapsModHornerMultVal[NoOfTaps-1:0][NoMaxMultFactors-1:0];

......................
......................

reg signed [23:0] Data_in_reg[NoOfTaps-1:0];
reg signed [23:0] r[NoOfTaps-1:0];

genvar i1 ;
integer i2;

generate

for (i1 = 0; i1 <= NoOfTaps-1; i1 = i1 + 1)

     begin
           always @ (Data_in_reg[i1]) begin
                      for (i2 = 1; i2 <= NoOfTaps-1; i2 = i2 + 1)
                      begin
                               if(CSDTapsSignVal[i1][i2] != 0) begin

                                    r[i2] = ( (Data_in_reg[i1] >> CSDTapsModHornerAddVal[i1][i2-1]) ) + ( (Data_in_reg[i1] >> CSDTapsModHornerAddVal[i1][i2]) );      // Shift and Add Iteratively

                               end

                      end


          end
   end
end
// end
endgenerate

  • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2023 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information