// A stimulus file provides inputs signals to the design under test (DUT). // This stimulus module is designed to be compatible with verilog simulators, // emulators, and FPGA prototyping. This is akin to a simple test vector generator // No looping supported! // // Memory format: // b0 = valid, // b1-7 = wait time // b8-bxxx = packet // // Test Process: // 1. Zero out memory (or write program) // 2. Set go signal // module stimulus #( parameter DW = 32, // Memory width=DW+ parameter MAW = 15, // Memory address width parameter HEXFILE = "NONE" // Name of hex file ) ( //Asynchronous Stimulus Reset input nreset, input ext_start, // Start driving stimulus input use_timestamps,//b1-7 used for timestamps input ignore_valid,//b0 valid bit ignored //External Load port input ext_clk,// External clock for write path input ext_access, // Valid packet for memory input [DW-1:0] ext_packet, // Packet for memory //DUT Drive port input dut_clk, // DUT side clock input dut_wait, // DUT stall signal output stim_access, // Access signal output [DW-1:0] stim_packet, // Packet output stim_done // Stimulus program done ); localparam MD = 1<