Igal24
Newbie level 3
hi,
when i make a comparison operation between 32 bit reg,lets say x>y both registers are not from the embedded memory the fpga resources that it require are much less(3 times) than if i will read y from embedded memory in the fpga(of course i put y in the memory in the previous cycles).
my question is how i can avoid this increase in resources? i understand that in the first case the synthesize tool know y reg value but at the second it doesn't,that is all the difference for me,i am sure there is any technique to avoid this increase in resources,after all the use of memory suppose to decrease not to increase the fpga resources(Luts).
this is the instantiation of the ram module without output register:
ram_dq u1(.Clock(clk),.ClockEn(clk_enable),.Reset(~reset),.WE(wr),.Address(addr_hu_rise),.Data(hu_rise_in),.Q(hu_rise));
hu_rise is the output that i make on it a comparison.
when i make a comparison operation between 32 bit reg,lets say x>y both registers are not from the embedded memory the fpga resources that it require are much less(3 times) than if i will read y from embedded memory in the fpga(of course i put y in the memory in the previous cycles).
my question is how i can avoid this increase in resources? i understand that in the first case the synthesize tool know y reg value but at the second it doesn't,that is all the difference for me,i am sure there is any technique to avoid this increase in resources,after all the use of memory suppose to decrease not to increase the fpga resources(Luts).
this is the instantiation of the ram module without output register:
ram_dq u1(.Clock(clk),.ClockEn(clk_enable),.Reset(~reset),.WE(wr),.Address(addr_hu_rise),.Data(hu_rise_in),.Q(hu_rise));
hu_rise is the output that i make on it a comparison.