there are results for this prog itself stating the total no: of logic elements consumed for a particular device. so there should be some mistake which i am not able to fig out in my code rite? could u tel me whether that loop which runs so many times creates the problem ?
another doubt it in the prog, the j[n] get allocated for 652 index and then referencing is made and then that func returns the value. this happens 163*652*163 times. instead if i give a case statement , first itself the reg will be assigned for 652 indexes and only referencing will be made each time the func is called. is this correct or not?