OpenCores
URL https://opencores.org/ocsvn/miniuart2/miniuart2/trunk

Subversion Repositories miniuart2

[/] [miniuart2/] [trunk/] [sim/] [rtl_sim/] [bin/] [TESTRxLimit.CMD] - Blame information for rev 7

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 7 philippe
| Script file for testing the minimal an maximal Baudrate excursion around the
2
| nominal Baudrate of 125kHz (in term of %)
3
 
4
| Initial settings
5
delete_waveforms
6
restart
7
stepsize 50nS
8
 
9
| Watched Signals and Vectors
10
watch WB_CLK_I | Wishbone clock
11
watch WB_RST_I
12
 
13
vector RxData RxData7 RxData6 RxData5 RxData4 RxData3 RxData2 RxData1 RxData0
14
watch RxD_PAD_I | RS232 Rx Line
15
watch IntRx_O   | Emit Buffer is empty
16
watch BR_Clk_I
17
watch EnabRx
18
 
19
| Stimulators Assignment
20
clock WB_CLK_I  1 0     | BR_CLK_I=10MHz
21
wfm WB_RST_I    @1nS=L 100nS=H 100nS=L
22
assign WB_STB_I 0
23
assign WB_WE_I 0
24
 
25
wfm BR_Clk_I  @0nS=L (0.946uS=H 1uS=L)*8000 | BR_Clk_I=500kHz
26
| BRDIVISOR=1. Baudrate=500000/1/4=125kHz (Bit period=8uS)
27
| Below is a generation of 50 same frames, coding 40h.
28
wfm RxD_PAD_I    @0nS=H +
29
           102.7uS=H (8uS=L 8uS=L 8uS=L 8uS=L 8uS=L 8uS=L 8uS=L 8uS=H 8uS=L 8uS=H)*150 8uS=H
30
 
31
| Perform Simulation
32
sim 10mS
33
 
34
| Results:
35
| max BR_Clk_I: 2.118uS
36
| min BR_Clk_I: 1.946uS
37
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.