Shop OBEX P1 Docs P2 Docs Learn Events
External RAM adition -- Question to Chip — Parallax Forums

External RAM adition -- Question to Chip

SapiehaSapieha Posts: 2,964
edited 2014-01-12 23:04 in Propeller 2
Hi Chip.

Itis possible that You parallel with SDRAM handler can add handler for SRAMS on same pins.

Example in code section.
module    SRAM_interface( 
                        in_address, 
                        wr_or_rd, 
                        in_data, 
                        //////////// interface cua SRAM /////////////////// 
                        oSRAM_DQ, 
                        oSRAM_ADDR, 
                        oSRAM_UB_N, 
                        oSRAM_LB_N, 
                        oSRAM_WE_N, 
                        oSRAM_CE_N, 
                        oSRAM_OE_N, 
                        /////////// data for ram COG ////////////////////// 
                        data_ram_COG 
                       ); 
input    [17:0]in_address; 
input    wr_or_rd; 
input    [15:0]in_data; 
                     
inout        [15:0]    oSRAM_DQ;            //    SRAM Data bus 16 Bits 
output    [17:0]    oSRAM_ADDR;            //    SRAM Address bus 18 Bits 
output                oSRAM_UB_N;            //    SRAM High-byte Data Mask  
output                oSRAM_LB_N;            //    SRAM Low-byte Data Mask  
output                oSRAM_WE_N;            //    SRAM Write Enable 
output                oSRAM_CE_N;            //    SRAM Chip Enable 
output                oSRAM_OE_N;            //    SRAM Output Enable 
 
output    [15:0]data_ram_COG; 
 
assign oSRAM_UB_N = 0;                    // hi byte select enabled 
assign oSRAM_LB_N = 0;                    // lo byte select enabled 
assign oSRAM_CE_N = 0;                    // chip is enabled 
assign oSRAM_OE_N = ~oSRAM_WE_N;        //output enable is overidden by WE 
 
assign    oSRAM_WE_N        = ~wr_or_rd; 
assign    oSRAM_DQ            = (~wr_or_rd? 16'hzzzz : in_data ); 
assign    data_ram_COG    = oSRAM_DQ; 
assign    oSRAM_ADDR        = in_address; 
 
endmodule 

Comments

  • cgraceycgracey Posts: 14,206
    edited 2014-01-11 23:30
    I think that could be done, but SRAMs are usually no more than 512KB, or 1/64 the size of an SDRAM, so what would be the incentive to use one?
  • SapiehaSapieha Posts: 2,964
    edited 2014-01-11 23:59
    Hi Chip.

    Many times it will be enough.

    But I think You are mising some x512kB

    cgracey wrote: »
    I think that could be done, but SRAMs are usually no more than 512KB, or 1/64 the size of an SDRAM, so what would be the incentive to use one?
  • Cluso99Cluso99 Posts: 18,069
    edited 2014-01-12 01:00
    I expect to build a P2 with SRAM. Probably it will only be byte-wide. But I can use the current features of the P2 to drive this.
  • kwinnkwinn Posts: 8,697
    edited 2014-01-12 10:28
    Sapieha wrote: »
    Hi Chip.

    Many times it will be enough.

    But I think You are mising some x512kB

    Nice chip but a little slow at 55 - 70nS
  • SapiehaSapieha Posts: 2,964
    edited 2014-01-12 10:35
    Hi kwinn.

    It was only to show Chip that it is bigger SRAM's that 512kB

    And how much address lines ( and other signals) we need on that addition
    kwinn wrote: »
    Nice chip but a little slow at 55 - 70nS
  • roglohrogloh Posts: 5,837
    edited 2014-01-12 17:04
    Cluso99 wrote: »
    I expect to build a P2 with SRAM. Probably it will only be byte-wide. But I can use the current features of the P2 to drive this.

    Same here, but I may like to burn some more pins and use 32 bits to get an XMMC type of VM running relatively fast from it (up to ~50MIPs) and use the hub RAM almost entirely as a video buffer. Or alternatively, try to run from hub RAM using hub exec and just use the SRAM as a hires + high color depth video buffer that gets low write latency as well providing good read bandwidth for the applications running. I'm also hoping that this video/hub exec combination may work out well with some multitasking. Who exactly controls the SRAM's I/O pins will no doubt become "interesting" to say the least.

    Using SDRAM would be nice and cheap but it may not cut it for performance in this type of application. I'm still hoping to figure out how to do it though. Time will tell.
  • evanhevanh Posts: 16,031
    edited 2014-01-12 23:04
    I guess I should also mention that async MRAM and async SRAM have the same pin-out and function. Directly interchangeable, afaik.
Sign In or Register to comment.