This repository contains a Verilog testbench for the CRC_serial16 module, designed for CRC (Cyclic Redundancy Check) calculations.
The CRC_serial16 module is a Verilog implementation of a CRC encoder. This testbench is designed to verify the functionality of the module by applying different test cases and validating the CRC calculations.
LENGTH: Set to 368 bits (you can adjust this as needed).
-
Simulation Setup: To run the simulation, make sure you have a Verilog simulator (e.g., ModelSim) installed.
-
Test Messages: The
msgvariable contains the test message that will be processed by the CRC encoder. You can modify the message by changing themsgassignment. -
Enabling the CRC Encoder: The testbench initializes the CRC encoder by setting
iEnto 1 andiRSTto 0 after a brief reset period. -
Message Encoding: The testbench processes the message bit by bit, sending it to the CRC encoder using the
iMSGinput. -
Results: The simulation displays the original message, the CRC calculation, and a result message indicating whether the CRC calculation is successful or not.
-
Simulation Termination: The simulation stops when it's complete, and the result is displayed.