This repo contains iverilog code for 16-bit barrel shifter which i did as project for our course UE21CS251A - Digital Design and Computer Organization.
To run the code you need have verilog installed in your system, if not then you can follow this installation guide. After installation is complete follow these steps:
git clone https://github.com/sufiiyan/16-bit-Barrel-Shifter
iverilog -o barrel barrel_shifter.v tb_barrel_shifter.v
vvp barrel
gtkwave tb_barrel_shifter.vcd