Synthesized away the following RAM node help
Hi all,
when I compile my code, I receive the warning which my RAM nodes q_a is synthesized away. (Not sure what does this mean)
I have two RAMs, m1 and m2, both 32x128 true dual port rams. What I do is the following:
1. Read 2 numbers from m1, and input q_a & q_b into a compare module and save the smaller one to m2. (Try to implement Merge Sort between 2 RAMs)
2. After all the number is compared, transfer data back to m1.
The following is the code of connecting the components (RAM1, RAM2 to compare hardware module)
Code:
... ...
MgHwM : merg_hw_module
PORT MAP (
... ...
ToM1AdrA => m1_adr_a,
ToM1AdrB => m1_adr_b,
ToM1DataA => m1_data_a,
ToM1DataB => m1_data_b,
ToM1RdenA => m1_rden_a,
ToM1RdenB => m1_rden_b,
ToM1WrenA => m1_wren_a,
ToM1WrenB => m1_wren_b,
FromM1QA => m1_q_a, ------------------------------------------------- q_a of m1 is enter via this port
FromM1QB => m1_q_b, ------------------------------------------------- q_b of m1 is enter via this port
ToM2AdrA => m2_adr_a,
ToM2AdrB => m2_adr_b,
ToM2DataA => m2_data_a,
ToM2DataB => m2_data_b,
ToM2RdenA => m2_rden_a,
ToM2RdenB => m2_rden_b,
ToM2WrenA => m2_wren_a,
ToM2WrenB => m2_wren_b,
FromM2QA => m2_q_a, ----------------------------------------------- q_a of m2 is enter via this port
FromM2QB => m2_q_b ------------------------------------------------ q_b of m2 is enter via this port
);
And attached is the compare code:
For some reason, the q_a for m1 (which corresponding the FromM1QA), the q_b for m2 (which corresponding to FromM2QB ) are synthesized away.
Can anyone help?
Thanks.