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

Subversion Repositories socgen

[/] [socgen/] [trunk/] [common/] [opencores.org/] [Testbench/] [bfms/] [spi_host/] [rtl/] [verilog/] [top.syn] - Blame information for rev 135

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 135 jt_eaton
module spi_host_def
2
 
3
(
4
input  wire         clk,
5
input  wire         reset,
6
input  wire         busy,
7
 
8
input  wire [7:0]   rx_data,
9
input  wire         rx_read,
10
input  wire         rx_full,
11
input  wire         rx_parity_error,
12
input  wire         rx_parity_rcv,
13
input  wire         rx_parity_cal,
14
input  wire         rx_frame_error,
15
inout  wire         tx_ack_error,
16
 
17
output  reg         rx_clr,
18
output reg [7:0]    tx_data,
19
output reg          tx_write
20
);
21
 
22
 
23
reg                 exp_tx_ack_err;
24
reg                 mask_tx_ack_err;
25
 
26
reg   [7:0]         exp_rcv_byte;
27
reg   [7:0]         mask_rcv_byte;
28
 
29
 
30
always@(posedge clk)
31
  if(reset)
32
    begin
33
    tx_data              <= 8'h00;
34
    tx_write             <= 1'b0;
35
    rx_clr               <= 1'b0;
36
    exp_tx_ack_err       <= 1'b0;
37
    mask_tx_ack_err      <= 1'b0;
38
    exp_rcv_byte         <= 8'h00;
39
    mask_rcv_byte        <= 8'h00;
40
 end
41
 
42
 
43
 
44
 
45
 
46
 
47
 
48
endmodule
49
 

powered by: WebSVN 2.1.0

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