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

Subversion Repositories socgen

[/] [socgen/] [trunk/] [Projects/] [opencores.org/] [logic/] [ip/] [micro_bus/] [rtl/] [verilog/] [top.body.exp9] - Blame information for rev 131

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

Line No. Rev Author Line
1 131 jt_eaton
 
2
reg [7:0]  rdata_out_reg;
3
 
4
 
5
always@(posedge clk)
6
rdata_out_reg     <= mas_0_rdata_in  &
7
                     mas_1_rdata_in  &
8
                     mas_2_rdata_in  &
9
                     mas_3_rdata_in  &
10
                     mas_4_rdata_in  &
11
                     mas_5_rdata_in  &
12
                     mas_6_rdata_in  &
13
                     mas_7_rdata_in  &
14
                     mas_8_rdata_in;
15
 
16
assign mas_0_rd_out    = rd_in;
17
assign mas_1_rd_out    = rd_in;
18
assign mas_2_rd_out    = rd_in;
19
assign mas_3_rd_out    = rd_in;
20
assign mas_4_rd_out    = rd_in;
21
assign mas_5_rd_out    = rd_in;
22
assign mas_6_rd_out    = rd_in;
23
assign mas_7_rd_out    = rd_in;
24
assign mas_8_rd_out    = rd_in;
25
 
26
assign mas_0_wr_out    = wr_in;
27
assign mas_1_wr_out    = wr_in;
28
assign mas_2_wr_out    = wr_in;
29
assign mas_3_wr_out    = wr_in;
30
assign mas_4_wr_out    = wr_in;
31
assign mas_5_wr_out    = wr_in;
32
assign mas_6_wr_out    = wr_in;
33
assign mas_7_wr_out    = wr_in;
34
assign mas_8_wr_out    = wr_in;
35
 
36
assign mas_0_wdata_out = wdata_in;
37
assign mas_1_wdata_out = wdata_in;
38
assign mas_2_wdata_out = wdata_in;
39
assign mas_3_wdata_out = wdata_in;
40
assign mas_4_wdata_out = wdata_in;
41
assign mas_5_wdata_out = wdata_in;
42
assign mas_6_wdata_out = wdata_in;
43
assign mas_7_wdata_out = wdata_in;
44
assign mas_8_wdata_out = wdata_in;
45
 
46
assign mas_0_addr_out  = addr_in[7:0];
47
assign mas_1_addr_out  = addr_in[7:0];
48
assign mas_2_addr_out  = addr_in[7:0];
49
assign mas_3_addr_out  = addr_in[7:0];
50
assign mas_4_addr_out  = addr_in[7:0];
51
assign mas_5_addr_out  = addr_in[7:0];
52
assign mas_6_addr_out  = addr_in[7:0];
53
assign mas_7_addr_out  = addr_in[7:0];
54
assign mas_8_addr_out  = addr_in[7:0];
55
 
56
assign  mas_0_cs_out = (addr_in[7:4] == 4'h0) && cs_in;
57
assign  mas_1_cs_out = (addr_in[7:4] == 4'h1) && cs_in;
58
assign  mas_2_cs_out = (addr_in[7:4] == 4'h2) && cs_in;
59
assign  mas_3_cs_out = (addr_in[7:4] == 4'h3) && cs_in;
60
assign  mas_4_cs_out = (addr_in[7:4] == 4'h4) && cs_in;
61
assign  mas_5_cs_out = (addr_in[7:4] == 4'h5) && cs_in;
62
assign  mas_6_cs_out = (addr_in[7:4] == 4'h6) && cs_in;
63
assign  mas_7_cs_out = (addr_in[7:4] == 4'h7) && cs_in;
64
assign  mas_8_cs_out = (addr_in[7:4] == 4'h8) && cs_in;
65
 
66
assign   rdata_out = (rd_in && cs_in)?{8'h00,rdata_out_reg}:16'hffff;
67
 
68
always@(posedge clk)
69
if(reset || enable)
70
   begin
71
   wait_out  <= 1'b1;
72
   end
73
else
74
    wait_out <= 1'b0;
75
 
76
 

powered by: WebSVN 2.1.0

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