Changeset 8 in XOpenSparcT1 for trunk/NOR-flash
- Timestamp:
- 03/22/11 11:51:17 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NOR-flash/WBFLASH.v
r6 r8 47 47 input wb1_cab_i, 48 48 49 output reg [2 4:0] flash_addr,49 output reg [21:0] flash_addr, 50 50 input [15:0] flash_data, 51 51 output flash_oen, 52 52 output flash_wen, 53 output flash_cen ,54 input [ 1:0] flash_rev53 output flash_cen 54 //input [ 1:0] flash_rev 55 55 //output flash_ldn 56 56 ); … … 132 132 assign wb1_dat_o=wb1_dat; 133 133 134 wire [1:0] flash_rev_d;134 //wire [1:0] flash_rev_d; 135 135 136 assign flash_rev_d=wb_rst_i ? flash_rev:flash_rev_d;136 //assign flash_rev_d=wb_rst_i ? flash_rev:flash_rev_d; 137 137 138 always @( * )138 /*always @( * ) 139 139 case({wb1_stb_i,flash_rev_d}) 140 140 3'b000:flash_addr<={wb_adr_i[25:3],wordcnt}+25'h0000000; … … 146 146 3'b110:flash_addr<={wb1_adr_i[25:3],wordcnt}+25'h0400000; 147 147 3'b111:flash_addr<={wb1_adr_i[25:3],wordcnt}+25'h0400000; 148 endcase 148 endcase*/ 149 150 always @( * ) 151 if (wb1_stb_i) 152 flash_addr<={wb_adr_i[25:3],wordcnt}+25'h0400000; 153 else 154 flash_addr<={wb_adr_i[25:3],wordcnt}+25'h0000000; 149 155 150 156 assign flash_oen=((wb_cyc_i && wb_stb_i) || (wb1_cyc_i && wb1_stb_i) ? 0:1);
Note: See TracChangeset
for help on using the changeset viewer.