|HOME |ABOUT |ARTICLES |ACK |FEEDBACK |TOC |LINKS |BLOG |JOBS |


Tutorials



INTERFACE


Creat an interface .Define modport to specifies direction. These are used to connect testbench environment and dut in top module.

CODE:interface
`ifndef INTF
`define INTF

interface switch_if();
bit           data_status;
bit     [7:0] data_in;
wire    [3:0][7:0] data_out;
wire         [3:0] ready;
bit         [3:0] read;
bit        [7:0] mem_data;
bit        [1:0] mem_add;
bit reset;
bit mem_en;
bit mem_rd_wr;
bit clock;

modport TB(
output    data_status,
output    data_in,
input     data_out,
input     ready,
output    read,
output     mem_data,
output      mem_add,
output reset,
output mem_en,
output mem_rd_wr
);

endinterface:switch_if
`endif


Index
Avm Introduction
Dut Specification
Rtl
Top
Interface
Environment
Packet
Packet Generator
Configuration
Driver
Reciever
Scoreboard

Report a Bug or Comment on This section - Your input is what keeps Testbench.in improving with time!





<< PREVIOUS PAGE

TOP

NEXT PAGE >>

copyright © 2007-2017 :: all rights reserved www.testbench.in::Disclaimer