Easy · Combinational logic01. Route a data word
A sensor front end has four 8-bit channels. Route the selected word to a shared bus without storing any state.
Specification
- Module top_module: inputs a, b, c, d (8 bits) and sel (2 bits); output y (8 bits).
- sel=0 selects a, 1 selects b, 2 selects c, and 3 selects d.
- The output must respond to both selection changes and data changes.
64 supplied checksRun uses the testbench in tb.sv. Submit checks your design with the original supplied testbench, even if you edit tb.sv.
Practice results stay in this browser. They do not count as server-verified scores.
Language and tools
Choose Verilog 2005 or SystemVerilog 2012. Icarus supports a subset of SystemVerilog; classes, UVM and full SVA are outside this runtime. Download the project to continue in OSS CAD Suite with Icarus, Yosys and GTKWave.
Open-source credits and runtime provenance
Drag the dividers to resize. Focus a divider and use its arrow keys for precise adjustments.