Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a verilog file mux.v and testbench muxTB.v. used ifdef caeses for behavioural model ifdef struct for structural model I have executed these files using the commands

iverilog mux.v muxTB.v -D cases

vvp a.out

gtkwave T.vcd

How can i write a shell script to see the output and whats the syntax for using mux.v and muxTB.v files in script??script should show output wen i give 'run mux cases'.$1 =mux and $2 =cases.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.