Verilog Testbench for flowfight Module: con_flowfight1
This code defines a module called 'con_flowfight1' with inputs 'clk' and 'rst' and an output 'led'. It instantiates a module called 'flowfight' and connects its inputs and outputs to the inputs and outputs of the 'con_flowfight1' module.
The 'clk' input is a clock signal that oscillates between 0 and 1 with a period of 'PERIOD' (which is set to 10 in this code). The 'rst' input is a reset signal that is initially set to 0 and then alternates between 0 and 1 with a delay of 100 time units. The 'led' output is a 16-bit signal that is generated by the 'flowfight' module and is connected to the 'led' output of the 'con_flowfight1' module.
Overall, this code sets up a basic testbench for the 'flowfight' module by providing clock and reset signals and monitoring the output 'led' signal.
原文地址: https://www.cveoy.top/t/topic/oR3E 著作权归作者所有。请勿转载和采集!