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

Subversion Repositories zet86

[/] [zet86/] [trunk/] [soc/] [vga/] [sim/] [vdu_tb.v] - Rev 40

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

`timescale 1ns / 1ps
 
module vdu_tb;
 
  reg clk;
  reg rst;
 
  wire [1:0] tft_lcd_r;
  wire [1:0] tft_lcd_g;
  wire [1:0] tft_lcd_b;
  wire       tft_lcd_hsync;
  wire       tft_lcd_vsync;
 
  vdu vdu0 (
    .wb_rst_i    (rst),
    .wb_clk_i    (clk),     // 25MHz	VDU clock
    .vga_red_o   (tft_lcd_r),
    .vga_green_o (tft_lcd_g),
    .vga_blue_o  (tft_lcd_b),
    .horiz_sync  (tft_lcd_hsync),
    .vert_sync   (tft_lcd_vsync),
 
    .wb_dat_i    (16'h0),
    .wb_adr_i    (11'h0),
    .wb_we_i     (1'b0),
    .wb_tga_i    (1'b0),
    .wb_sel_i    (2'b0),
    .wb_stb_i    (1'b0),
    .wb_cyc_i    (1'b0)
  );
 
  always #20 clk <= ~clk;
 
  initial
    begin
      rst <= 1'b0;
      clk <= 1'b0;
      #25 rst <= 1'b1;
      #50 rst <= 1'b0;
    end
 
endmodule
 

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

powered by: WebSVN 2.1.0

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