1 |
3 |
vk.semicon |
Simulation Files description:
|
2 |
|
|
-------------------------------------------
|
3 |
|
|
|
4 |
|
|
1. RS_dec_tb.v:
|
5 |
|
|
-----------------------
|
6 |
|
|
Verilog test bench to test the Reed Solomon Decoder core,
|
7 |
|
|
by feeding input test cases to the core and compare outputs of
|
8 |
|
|
the core with true outputs, (using input and output files), the test
|
9 |
|
|
bench is configured to make a functional simulation to the core, in case
|
10 |
|
|
of post place and route simulation you should uncomment the timescale
|
11 |
|
|
on the first line of the test bench and set the required clock value by
|
12 |
|
|
configuring the value of the parameter pclk.
|
13 |
|
|
|
14 |
|
|
2.input_RS_blocks:
|
15 |
|
|
-----------------------------
|
16 |
|
|
the inputs file, the test bench uses this file to feed inputs to the core, the file
|
17 |
|
|
should contain the input bytes in binary format, every line should contain
|
18 |
|
|
a single byte.
|
19 |
|
|
|
20 |
|
|
2.output_RS_blocks:
|
21 |
|
|
-------------------------------
|
22 |
|
|
the outputs file, the test bench uses this file to verify the outputs from the core, the file
|
23 |
|
|
should contain the true output bytes in binary format, every line should contain
|
24 |
|
|
a single byte.
|
25 |
|
|
|
26 |
|
|
3.RS_test_vectors.m:
|
27 |
|
|
--------------------------------
|
28 |
|
|
MATLAB script to generate test vectors for the core, it will generate random data and
|
29 |
|
|
encode it using MATLAB rs_enc then put errors on the code from 0:8 byte errors
|
30 |
|
|
on every codeword, then it will generate inputs and outputs test files to be used
|
31 |
|
|
by the Verilog test bench.
|
32 |
|
|
|
33 |
|
|
4.wave.do
|
34 |
|
|
----------------
|
35 |
|
|
Modelsim wave file contain inputs and outputs port of the design.
|
36 |
|
|
|
37 |
|
|
5.do.do
|
38 |
|
|
-------------
|
39 |
|
|
Modelsim macro to compile the verilog files, load the wave file, and start functional simulation.
|
40 |
|
|
and the file depends on directory structure of simulation and rtl directories.(must use
|
41 |
|
|
the same directory structure to work in a proper way).
|