Forum Discussion
Altera_Forum
Honored Contributor
16 years ago --- Quote Start --- I'm working on a project that requires me to improve on an already existing project. The contains this syntax wire [15:0]music1=(instru)?music1_ramp:music1_sin; which is to choose between music1_ramp and music1_sin. I want to expand this in such a way that I can choose between more than two options (say five), please can anyone tell me a syntax I could use to do this as I am still new to the language --- Quote End --- assign music1 = (instru1) ? music1_ramp: (instru2) ? music2_ramp: (instru3) ? music3_ramp: music5_sin; //default