Friday, 17 May 2019

voltage - SRAM Design Problem


So, for a project, I had to design a 4bit SRAM circuit with 4 inputs and an output. There's an enable, write, and 2 address pins, and an output read pin.


For the most part, I got the entire circuit working. I was able to get the individual SRAM circuits working, and also get them working when hooking up directly a 2bit in 4 output decoder for selecting each cell. The problem comes when I want to add the enable switch (during testing, I bypassed the enable switch by just using the address output as enable). Any suggestions on how to get around this? I'd post a schematic but I only have drawings and I'd have to completely redraw them to look nice anyways.


EDIT: rough schematic photo


The way we are supposed to do this is using an n-channel MOSFET hooking the address decoder output to the gate, the enable to siurce, and the drain connects to a small dual AND gate to pass both write and not(write) to the SRAM cell.


Enable works fine enabling the the write, but there comes a problem when I want to write to different cells. The circuit basically acts unpredictably - I do a write operation to a second cell and the first cell get written to as well, but if I do the first cell alone it works fine. Sometimes it doesn't write to 2 of them sometimes it works fine but most of the time now. And I've noticed when probing around the when I probe the gates of, say, the first SRAM enable MOSFET, it'll suddenly turn off that cell if it wasn't supposed to be on.



A somewhat solution I found was putting a resistor from the drain MOSFET to ground but then I ran into the problem that I don't have a high enough value resistor to pull the voltage high enough to write to the cell. I guess I've boiled it down to come weird parasitic voltage on the MOSFET but for the life of me can't figure out how to fix that.


Also, as a note, the class is requiring me to use a CD4007 for the FETs, I've actually tried with BJT's and the circuit works fine that way but we aren't allowed to use those....




No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...