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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [fpga/] [mc/] [src/] [ser/] [xmtbuf.v] - Diff between revs 288 and 290

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

Rev 288 Rev 290
Line 1... Line 1...
//
//
// xmtbuf.v -- serial line transmitter buffer
// xmtbuf.v -- serial line transmitter buffer
//
//
 
 
 
 
 
`timescale 1ns/10ps
 
`default_nettype none
 
 
 
 
module xmtbuf(clk, reset, write, ready, data_in, serial_out);
module xmtbuf(clk, reset, write, ready, data_in, serial_out);
    input clk;
    input clk;
    input reset;
    input reset;
    input write;
    input write;
    output reg ready;
    output reg ready;
Line 14... Line 18...
  reg [1:0] state;
  reg [1:0] state;
  reg [7:0] data_hold;
  reg [7:0] data_hold;
  reg load;
  reg load;
  wire empty;
  wire empty;
 
 
  xmt xmt1(clk, reset, load, empty, data_hold, serial_out);
  xmt xmt_1(clk, reset, load, empty, data_hold, serial_out);
 
 
  always @(posedge clk) begin
  always @(posedge clk) begin
    if (reset == 1) begin
    if (reset == 1) begin
      state <= 2'b00;
      state <= 2'b00;
      ready <= 1;
      ready <= 1;

powered by: WebSVN 2.1.0

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