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

Subversion Repositories zet86

[/] [zet86/] [trunk/] [boards/] [virtex4-ml403ep/] [dbg/] [sim_serial.v] - Blame information for rev 54

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 45 zeus
`timescale 1ns/10ps
2
 
3
module sim_serial;
4
 
5
  // Registers and nets
6
  reg  clk_100M;
7
  reg  rst;
8
  reg  stb;
9
  wire clk_921600;
10
  wire trx_;
11
  wire rst2;
12
  wire ack;
13
 
14
  // Module instantiation
15
  clk_uart clk0 (
16
    .clk_100M   (clk_100M),
17
    .rst        (rst),
18
    .clk_921600 (clk_921600),
19
    .rst2       (rst2)
20
  );
21
 
22
  send_serial ser0 (
23
    .trx_     (trx_),
24
    .wb_clk_i (clk_921600),
25
    .wb_rst_i (rst2),
26
    .wb_dat_i (8'h4b),
27
    .wb_we_i  (1'b1),
28
    .wb_stb_i (stb),
29
    .wb_cyc_i (1'b1),
30
    .wb_ack_o (ack)
31
  );
32
 
33
  // Behaviour
34
  initial
35
    begin
36
           stb      <= 1'b1;
37
           clk_100M <= 1'b0;
38
           rst      <= 1'b1;
39
      #400 rst      <= 1'b0;
40
      #95490 stb    <= 1'b0;
41
      #40000 stb    <= 1'b1;
42
    end
43
 
44
  // clk_50M
45
  always #5 clk_100M <= !clk_100M;
46
endmodule

powered by: WebSVN 2.1.0

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