Two instances named cnt_inst are declared, which is not allowed.
Step 2: Verify other syntax elements
Semicolons and port order appear correct; output port type mismatch is allowed since output is connected to wire.
Final Answer:
Duplicate instance name 'cnt_inst' used -> Option C
Quick Check:
Instance names must be unique [OK]
Hint: Each instance needs a unique name [OK]
Common Mistakes:
Using same instance name twice
Confusing port order with named connections
Thinking output port must be reg in top
5.
You want to instantiate a module mux2to1 twice inside a top module, connecting inputs a, b, select sel, and outputs out1, out2. Which is the correct way to instantiate both with unique instance names and named port connections?