Write an RTL Verilog code that can convert any input rising edge to a five-clock period pulse.
Input:
Clock
Hint: Use a counter.
In your homework, attach both the RTL and Testbench code, and simulation result.
2. Corrected_text: Write an RTL Verilog code for a PISO (parallel input serial output). The input is 8-bit, and the output is 1-bit. The output clock is 8 times faster than the input clock. The circuit is triggered by posedge clk and reset, and a load signal is used to write the input data into the circuit.
Hint: Use an 8-bit shift register.
In your homework, attach both the RTL and Testbench code, and simulation result.