Icarus Verilog Simulator CGI Interface

This computes the number of trailing 0s in a 32-bit value. Notice that the answer is 6 bits long, not 5, because the answer is 32 for input of 0. This example is from these slides.



The C program that generated this page was written by Hank Dietz using the CGIC library to implement the CGI interface.


The Aggregate. Advanced Computer Architecture.