Day 21
Day 21
Day 21
Design and verify a module which finds the second bit set from LSB for a N-bit vector.
Interface Definition
- Output should be produced in a single cycle
- Output must be one-hot or zero
- The module should have the following interface:
module day21 #(
parameter WIDTH = 12
)(
input wire [WIDTH-1:0] vec_i,
output wire [WIDTH-1:0] second_bit_o
);Coding Exercise
You're expected to code both the RTL and testbench for the problem. Your testbench should include the stimulus and checkers.
NOTE
The testcase will show PASSED as long as the RTL and testbench compile, but it doesn't imply that the implemented logic is correct.
Congratulations! What's next?
Congratulations on completing the 21DaysOfRTL challenge! This challenge is a fantastic way to learn the basics of RTL Design and Testbench development. But what’s next?
We offer some of the best hands-on courses on our website, continuously helping hardware engineers enhance their skill set. If you’re interested in diving deeper into complex RTL designs with hands-on implementation and detailed video solutions, I highly recommend checking out the Hands-on RTL Design course.
Or if you'd like to add a cool project on your resume then checkout the RISC-V Processor Design course.
These courses are taken by thousands of hardware engineers and have helped them shape their careers. As always, you could reach out to me via email or discord if you have any questions and I'd be happy to help!
PS: Get a sweet 10% off on your purchase using my referral code: QS-RF-CFUNHYOW
Loading the interactive workspace...