Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- These values appear to be constants declared elsewhere. I highly suggest you learn about VHDL before trying to use this code. --- Quote End --- Sorry Tricky, I have learn VHDL before this . Maybe I need to learn more as your suggestion. Btw, can I ask another question? I have convert the constant in MDCTTB_PKG file as shown below: -- quantization matrix used in testbench constant Q_MATRIX_USED : I_MATRIX_TYPE := Q_CANON10D; signal X_size : SIGNED(ROMDATA_W-1 downto 0); constant Ce : COEM_TYPE := ( (to_signed(AP,X_size),to_signed(AP,X_size),to_signed(AP,X_size),to_signed(AP,X_size)), (to_signed(BP,X_size),to_signed(CP,X_size),to_signed(CM,X_size),to_signed(BM,X_size)), (to_signed(AP,X_size),to_signed(AM,X_size),to_signed(AM,X_size),to_signed(AP,X_size)), (to_signed(CP,X_size),to_signed(BM,X_size),to_signed(BP,X_size),to_signed(CM,X_size)) ); When I run, an error said "no feasible entries for subprogram "to_signed"." Did I do the conversion in wrong way? Really appreciated any helps here.Thank you