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

Subversion Repositories gpio

[/] [gpio/] [tags/] [rel_7/] [bench/] [verilog/] [tb_top.v] - Diff between revs 26 and 37

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 26 Rev 37
Line 42... Line 42...
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
//
//
// CVS Revision History
// CVS Revision History
//
//
// $Log: not supported by cvs2svn $
// $Log: not supported by cvs2svn $
 
// Revision 1.3  2002/03/13 20:56:16  lampret
 
// Removed zero padding as per Avi Shamli suggestion.
 
//
// Revision 1.2  2001/09/18 15:43:28  lampret
// Revision 1.2  2001/09/18 15:43:28  lampret
// Changed gpio top level into gpio_top. Changed defines.v into gpio_defines.v.
// Changed gpio top level into gpio_top. Changed defines.v into gpio_defines.v.
//
//
// Revision 1.1  2001/08/21 21:39:27  lampret
// Revision 1.1  2001/08/21 21:39:27  lampret
// Changed directory structure, port names and drfines.
// Changed directory structure, port names and drfines.
Line 61... Line 64...
`include "timescale.v"
`include "timescale.v"
`include "gpio_defines.v"
`include "gpio_defines.v"
 
 
module tb_top;
module tb_top;
 
 
parameter aw = 32;
parameter aw = `GPIO_ADDRHH+1 ;
parameter dw = 32;
parameter dw = 32;
parameter gw = `GPIO_IOS;
parameter gw = `GPIO_IOS;
 
 
//
//
// Interconnect wires
// Interconnect wires
Line 84... Line 87...
wire    [gw-1:0] gpio_aux;       // GPIO auxiliary signals
wire    [gw-1:0] gpio_aux;       // GPIO auxiliary signals
wire    [gw-1:0] gpio_in;        // GPIO inputs
wire    [gw-1:0] gpio_in;        // GPIO inputs
wire                    gpio_eclk;      // GPIO external clock
wire                    gpio_eclk;      // GPIO external clock
wire    [gw-1:0] gpio_out;       // GPIO outputs
wire    [gw-1:0] gpio_out;       // GPIO outputs
wire    [gw-1:0] gpio_oen;       // GPIO output enables
wire    [gw-1:0] gpio_oen;       // GPIO output enables
 
wire [ 3 : 0 ] tag_o ;
 
 
//
//
// Instantiation of Clock/Reset Generator
// Instantiation of Clock/Reset Generator
//
//
clkrst clkrst(
clkrst clkrst(
Line 111... Line 115...
        .WE_O(we),
        .WE_O(we),
        .STB_O(stb),
        .STB_O(stb),
        .DAT_I(dat_m),
        .DAT_I(dat_m),
        .ACK_I(ack),
        .ACK_I(ack),
        .ERR_I(err),
        .ERR_I(err),
        .RTY_I(0),
        .RTY_I(1'b0),
        .TAG_I(4'b0)
        .TAG_I(4'b0),
 
  .TAG_O ( tag_o )
);
);
 
 
//
//
// Instantiation of PTC core
// Instantiation of PTC core
//
//
gpio_top gpio_top(
gpio_top gpio_top(
        // WISHBONE Interface
        // WISHBONE Interface
        .wb_clk_i(clk),
        .wb_clk_i(clk),
        .wb_rst_i(rst),
        .wb_rst_i(rst),
        .wb_cyc_i(cyc),
        .wb_cyc_i(cyc),
        .wb_adr_i(adr[15:0]),
        .wb_adr_i(adr),
        .wb_dat_i(dat_ptc),
        .wb_dat_i(dat_ptc),
        .wb_sel_i(sel),
        .wb_sel_i(sel),
        .wb_we_i(we),
        .wb_we_i(we),
        .wb_stb_i(stb),
        .wb_stb_i(stb),
        .wb_dat_o(dat_m),
        .wb_dat_o(dat_m),

powered by: WebSVN 2.1.0

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