23
FE-I4 Digital Test Bench Tomasz Hemperek

FE-I4 Digital Test Bench

  • Upload
    gefjun

  • View
    41

  • Download
    0

Embed Size (px)

DESCRIPTION

FE-I4 Digital Test Bench. Tomasz Hemperek. Introduction. SystemVerilog OVM Methodology Can to use rtl, syntchesis, post route/layout models. 2. FE-I4 Top View. ANALOG ARRAY (digital part). DIGITAL ARRAY. END OF COLUMN. END OF CHIP. COMMA N D DECODER. PLL. PLL. REGISTER MEMORY. - PowerPoint PPT Presentation

Citation preview

Page 1: FE-I4 Digital Test Bench

FE-I4 Digital Test Bench

Tomasz Hemperek

Page 2: FE-I4 Digital Test Bench

Introduction

2

SystemVerilog OVM Methodology Can to use rtl, syntchesis, post route/layout

models

2

Page 3: FE-I4 Digital Test Bench

3

FE-I4 Top View

ANALOGARRAY

(digital part)

DIGITALARRAY

END OF COLUMN

END OF CHIP

COMMAND DECODER

REGISTER MEMORY

PLL

PLL

DATA OUTPUT

- verilog model

- Implementation (rtl/gate)

Page 4: FE-I4 Digital Test Bench

Chip Interface overview

4

FE-I4

DETECTOR(PIX)

OUTPUT(RECIVE)

MANUAL

SLOW COMAND(CMD)

4

Page 5: FE-I4 Digital Test Bench

OVM OVC (Open Verification Component)

Transaction

Sequences

5

Example Sequence of Transaction:

- send reset

- write register 10

- send trigger

Page 6: FE-I4 Digital Test Bench

Slow control transaction

Transaction is an abstract (human readable) information that will be translated (by driver) to correct signal sequence

File: /digital/FEI4_A\/TB/cmd/sv/cmd_transfer.sv

6

Page 7: FE-I4 Digital Test Bench

Slow control sequence

Sequence define transaction sequence. It is possible to run one sequence inside another one.

File: digital/FEI4_A/TB/cmd/sv/cmd_master_seq_lib.sv

7

Page 8: FE-I4 Digital Test Bench

Verification environment (test)

Verification environment connect all interfaces (OVC) blocks.

8

For FE-I4 we heve 4 OVC:

- PIX

- CMD

- REVEIVE

- MANUAL

Page 9: FE-I4 Digital Test Bench

9

Virtual sequence

Virtual Sequence defines top sequence of sequences. Sequences can be from different interfaces! Can be started in parallel or one after another.

MANUAL(rst):- reset hi- reseet low

CMD (rst):

- reset cmd. - clear reg. - clear sr

CMD (defult)

- reg 12 val X - reg 25 val X.....

PIX (random hits)

- pix. 5 hit=100ns - pix 2000. hit=40ns...

Page 10: FE-I4 Digital Test Bench

10

Scoreboard

FE-I4

COMMANDS

PIXEL HITS

RECEIVED DATA

SCOREBOARD:

CHECK !

Page 11: FE-I4 Digital Test Bench

11

Test

TEST

TOP SEQUENCER

SEQ A

SEQ DSEQ B

SEQ C

SEQ E

SCOREBOARD

Page 12: FE-I4 Digital Test Bench

12

Example test

TEST : clear_sr

SEQUENCER: clear_sr_top_seq

reset_seq configure_seq

clear_sr_seq

SCOREBOARD : clear_sr_scoreboard

read_sr_seq

Page 13: FE-I4 Digital Test Bench

Example result

13

Page 14: FE-I4 Digital Test Bench

14

Status

All blocks are instantiated and connected (need some polishing and sync with main integration)

Few test are written and are working but needs much more

Need to define manual interface

Page 15: FE-I4 Digital Test Bench

15

BACKUP SLIDES

Page 16: FE-I4 Digital Test Bench

Slow control transaction

Transaction is an abstract (human readable) information that will be translated (by driver) to correct signal sequence

File: /digital/FEI4_A\/TB/cmd/sv/cmd_transfer.sv

16

Page 17: FE-I4 Digital Test Bench

Slow control sequence

Sequence define transaction sequence. It is possible to run one sequence inside another one.

File: digital/FEI4_A/TB/cmd/sv/cmd_master_seq_lib.sv

17

Page 18: FE-I4 Digital Test Bench

Virtual sequence

Virtual Sequence defines top sequence of sequences. Sequences can be from different interfaces! Can be started in parallel or one after another.

File: digital/FEI4_A/TB/top_tb/sv/top_seq_lib.sv

18

Page 19: FE-I4 Digital Test Bench

Receive transaction

File: digital/FEI4_A/TB/receive/sv/receive_transfer.sv

19

Page 20: FE-I4 Digital Test Bench

Example scoreboard

Scoreboard receives information from monitors (inputs, outputs). Gathered data can be checked for correctness.

File: digital/FEI4_A/TB/top_tb/sv/cmd_scoreboard_lib.sv

20

Page 21: FE-I4 Digital Test Bench

Test DefinitionTest organize everything together. You have multiple tests to test different functions.

File: digital/FEI4_A/TB/top_tb/tests/top_test_lib.sv

21

Page 22: FE-I4 Digital Test Bench

Example result

22

Page 23: FE-I4 Digital Test Bench

How to add test Create sequences Create a scoreboard Create a test Run simulation

How to run simulation:- see vsim_top procedure in digital/FEI4_A/TB/vsim.tcl

- change the parameter OVM_TESTNAME to your test class name

“vsim +OVM_TESTNAME=test_example_top -novopt top_tb_top”

23