Practice problems and solutions for verilog
- Implement an adder supporting N-bit numbers (parameterised)
- Create a module representing the following FSM (TODO: FSM diagram)
- Provide a Verilog module implemented using procedural code with
if-elsefor the following table whereS,R,Dare inputs andYis an output.Xdenotes any value.
| S | R | D | Y |
|---|---|---|---|
| 1 | 1 | X | X |
| 0 | 1 | X | 0 |
| 1 | 0 | X | 1 |
| 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 |
| 0 | 0 | 1 | 1 |
- Implement a flip-flop with an active-low async reset
- Implement an ALU with 3 operations on select:
Y=A+BY=A+1Y=max(A, B)
- Design and implement a single-port RTL RAM module with parameterised address with, data width and depth.
- Provide a module for an N-bit shift register
https://eclipse.umbc.edu/robucci/cmpe415/verilog_practice/index.html
http://www.pldworld.com/_hdl/4/_ref/-bawankule-/verilogcenter/quest.html