1 |
19 |
sckoarn |
This file contains the users interface instructions for the packet generator BFM.
|
2 |
|
|
|
3 |
|
|
To trigger the generation of a new packet on the packet_out interface, a rising edge
|
4 |
|
|
must be applied to the request input pin. The output ready is indicated by the
|
5 |
|
|
packet_out.drdy output pin going high. The BMF must also be configured to be enabled.
|
6 |
|
|
|
7 |
|
|
|
8 |
|
|
The stimulus access port address mapping is presented below:
|
9 |
|
|
|
10 |
|
|
---
|
11 |
|
|
Name Address Bit(s) Description
|
12 |
|
|
|
13 |
|
|
Control Register 0 0 Enable
|
14 |
|
|
1 Open file trigger, Write a '1'
|
15 |
|
|
to this bit to trigger file open
|
16 |
|
|
This bit is self clearing.
|
17 |
|
|
31 - 2 Don't care
|
18 |
|
|
|
19 |
|
|
Configuration 1 3-0 Data coding mode
|
20 |
|
|
Register 0000 Incrementing
|
21 |
|
|
0001 Random
|
22 |
|
|
0010 Load from file
|
23 |
|
|
0011 User Data
|
24 |
|
|
31 - 4 Don't care
|
25 |
|
|
|
26 |
|
|
Error Register 2 Read only definition of error indications
|
27 |
|
|
|
28 |
|
|
Seed Register 3 31-0 Seed value for random number
|
29 |
|
|
generation
|
30 |
|
|
|
31 |
|
|
User Data Memory 0x1000 – 0x107F Bits 7 downto 0 of the data are written to the
|
32 |
|
|
addressed location.
|
33 |
|
|
|
34 |
|
|
|
35 |
|
|
The fname, stm_text type, input enables the definition of a file name to be dynamic.
|
36 |
|
|
Set the file name, stm_text input, to the file you wish to open for loading data
|
37 |
|
|
from. Then write the open file trigger bit to open the file. Any previouslly
|
38 |
|
|
opened files will be closed first, so you do not have to worry about that. Once
|
39 |
|
|
a file is opened, it will be read from until there is no more lines to read, or,
|
40 |
|
|
the output packet size has been met. The next request will have the file being
|
41 |
|
|
loaded from where it left off on the last load. This enables many packets to be
|
42 |
|
|
placed in one file, and loaded request to request without having to deal with file
|
43 |
|
|
details.
|
44 |
|
|
|
45 |
|
|
To set the user data, write the desired packet to the User Data Memory before the
|
46 |
|
|
request for data. Configure generation to be User Data.
|
47 |
|
|
|
48 |
|
|
The generic on the BFM enables a particular BMF to be identified if there are
|
49 |
|
|
more than one of this type in an environment.
|