Changeset 8 in XOpenSparcT1 for trunk/NOR-flash/WBFLASH.v


Ignore:
Timestamp:
03/22/11 11:51:17 (13 years ago)
Author:
pntsvt00
Message:

modifiche per la sintesi su Xilinx

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NOR-flash/WBFLASH.v

    r6 r8  
    4747    input             wb1_cab_i, 
    4848 
    49     output reg [24:0] flash_addr, 
     49    output reg [21:0] flash_addr, 
    5050    input      [15:0] flash_data, 
    5151    output            flash_oen, 
    5252    output            flash_wen, 
    53     output            flash_cen, 
    54     input      [ 1:0] flash_rev 
     53    output            flash_cen 
     54    //input      [ 1:0] flash_rev 
    5555     //output            flash_ldn 
    5656); 
     
    132132assign wb1_dat_o=wb1_dat; 
    133133 
    134 wire [1:0] flash_rev_d; 
     134//wire [1:0] flash_rev_d; 
    135135 
    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; 
    137137 
    138 always @( * ) 
     138/*always @( * ) 
    139139   case({wb1_stb_i,flash_rev_d}) 
    140140      3'b000:flash_addr<={wb_adr_i[25:3],wordcnt}+25'h0000000; 
     
    146146      3'b110:flash_addr<={wb1_adr_i[25:3],wordcnt}+25'h0400000; 
    147147      3'b111:flash_addr<={wb1_adr_i[25:3],wordcnt}+25'h0400000; 
    148    endcase 
     148   endcase*/ 
     149 
     150always @( * ) 
     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; 
    149155 
    150156assign 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.