ArticleslgStudy

computer science

Computing with memory

Computing with memory is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Computing with memory rather than just read about it. In short: Computing with memory (or in-memory computing, IMC) is a paradigm that performs computations directly within memory arrays (RAM, RRAM, PCM) rather than transferring data to a separate CPU, significantly reducing energy consumption and latency. It addresses the von Neumann bottleneck by enabling data-parallel operations, such as for neural networks and big data analytics, at speeds up to thousands of times faster tha…

Key takeaways

  • Computing with memory belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Computing with memory to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Computing with memory from memory before moving on to harder problems.

Reference excerpt

Computing with memory (or in-memory computing, IMC) is a paradigm that performs computations directly within memory arrays (RAM, RRAM, PCM) rather than transferring data to a separate CPU, significantly reducing energy consumption and latency. It addresses the von Neumann bottleneck by enabling data-parallel operations, such as for neural networks and big data analytics, at speeds up to thousands of times faster than traditional storage methods. These paradigms can follow either a purely spatial computing model or a temporal computing model. The latter approach aims at reducing overheads in FPGAs. Computing with memory differs from computing in memory or processor-in-memory concepts.

Details

These paradigms can follow either a purely spatial computing model, as in field-programmable gate array (FPGA), or a temporal computing model, where a function is evaluated across multiple clock cycles. The latter approach aims at reducing the overhead of programmable interconnect in FPGA by folding interconnect resources inside a computing element. It uses dense two-dimensional memory arrays to store large multiple-input multiple-output LUTs. Computing with memory differs from computing in memory or processor-in-memory (PIM) concepts, widely investigated in the context of integrating a processor and memory on the same chip to reduce memory latency and increase bandwidth. These architectures seek to reduce the distance the data travels between the processor and the memory. The Berkeley IRAM project is one notable contribution in the area of PIM architectures. Computing with memory platforms are typically used to provide the benefit of hardware reconfigurability. Reconfigurable computing platforms offer advantages in terms of reduced design cost, early time-to-market, rapid prototyping and easily customizable hardware systems. FPGAs present a popular reconfigurable computing platform for implementing digital circuits. They follow a purely spatial computing model. Since their inception in 1985, the basic structure of the FPGAs has continued to consist of two-dimensional array of configurable logic blocks (CLBs) and a programmable interconnect matrix. FPGA performance and power dissipation is largely dominated by the elaborate programmable interconnect (PI) architecture. An effective way of reducing the impact of the PI architecture in FPGA is to place small LUTs in close proximity (referred as clusters) and to allow intra-cluster communication using local interconnects. Due to the benefits of a clustered FPGA architecture, major FPGA vendors have incorporated it in their commercial products. Investigations have also been made to reduce the overhead due to PI in fine-grained FPGAs by mapping larger multi-input multi-output LUTs to embedded memory blocks. Although it follows a similar spatial computing model, part of the logic functions are implemented using embedded memory blocks while the remaining part is realized using smaller LUTs. Such a heterogeneous mapping can improve the area and performance by reducing the contribution of programmable interconnects. Contrary to the purely spatial computing model of FPGA, a reconfigurable computing platform that employs a temporal computing model (or a combination of both temporal and spatial) has also been investigated in the context of improving performance and energy over conventional FPGA. These platforms, referred as "memory-based computing" (MBC), use dense two-dimensional memory array to store the LUTs. Such frameworks rely on breaking a complex function (f) into small sub-functions; representing the sub-functions as multi-input, multi-output LUTs in the memory array; and evaluating the function f over multiple cycles. MBC can leverage on the high density, low power and high performance advantages of nanoscale memory. Each computing element incorporates a two-dimensional memory array for storing LUTs, a small controller for sequencing evaluation of sub-functions and a set of temporary registers to hold the intermediate outputs from individual partitions. A fast, local routing framework inside each computing block generates the address for LUT access. Multiple such computing elements can be spatially connected using FPGA-like programmable interconnect architecture to enable mapping of large functions. The local time-multiplexed execution inside the computing elements can drastically reduce the requirement of programmable interconnects leading to large improvement in energy-delay product and better scalability of performance across technology generations. The memory array inside each computing element can be realized by content-addressable memory (CAM) to drastically reduce the memory requirement for certain applications.

See also Computational RAM Field-programmable gate array (FPGA) Memoization Reconfigurable computing

References

Worked examples

Example 1 — a first encounter with Computing with memory

Start with the simplest possible case. Write down what Computing with memory claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Computing with memory before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Computing with memory ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Computing with memory

In research
Computing with memory appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Computing with memory in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Computing with memory is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer engineering, Models of computation, so understanding it makes those chapters shorter.
In everyday life
Look for Computing with memory outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Computing with memory” →

How to study Computing with memory in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Computing with memory means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Computing with memory out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Computing with memory in simple terms?

Computing with memory (or in-memory computing, IMC) is a paradigm that performs computations directly within memory arrays (RAM, RRAM, PCM) rather than transferring data to a separate CPU, significantly reducing energy consumption and latency. It addresses the von Neumann bottleneck by enabling dat…

Why does Computing with memory matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Computing with memory?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Computing with memory.

Tags

  • Computer engineering
  • Models of computation

Keep exploring