<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Computer Architecture on Blogs</title><link>https://hbisheng.github.io/blogs/computer-architecture/</link><description>Recent content in Computer Architecture on Blogs</description><generator>Hugo</generator><language>en-us</language><copyright>Bisheng Huang</copyright><lastBuildDate>Mon, 13 Feb 2023 00:00:00 +0000</lastBuildDate><atom:link href="https://hbisheng.github.io/blogs/computer-architecture/index.xml" rel="self" type="application/rss+xml"/><item><title>A mental model of program execution from logical functions</title><link>https://hbisheng.github.io/blogs/computer-architecture/program-exec-mental-model/</link><pubDate>Tue, 04 Oct 2022 00:00:00 +0000</pubDate><guid>https://hbisheng.github.io/blogs/computer-architecture/program-exec-mental-model/</guid><description>&lt;p&gt;This post is about my mental model of program execution based on the building blocks of computer—logical functions.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; Every bit of magic in computer science starts from logical gates.&lt;/p&gt;&#10;&lt;h3 id="logical-function"&gt;Logical function&lt;/h3&gt;&#10;&lt;p&gt;A function is a many-to-one relation. Each function has an &lt;strong&gt;input&lt;/strong&gt; (domain) and an &lt;strong&gt;output&lt;/strong&gt; (converse domain).&lt;/p&gt;</description></item><item><title>CPU &lt;-&gt; memory interaction</title><link>https://hbisheng.github.io/blogs/computer-architecture/cpu-mem/</link><pubDate>Mon, 06 Feb 2023 00:00:00 +0000</pubDate><guid>https://hbisheng.github.io/blogs/computer-architecture/cpu-mem/</guid><description>&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; CPU interacts with the main memory on the motherboard using the BUS protocol. There is a hierarchy of CPU caches (L1, L2, L3) between them.&lt;/p&gt;&#10;&lt;p&gt;We talked about the CPU and main memory as separate components. In this post, we&amp;rsquo;ll look further into how they interact.&lt;/p&gt;</description></item><item><title>CPU hyperthreading</title><link>https://hbisheng.github.io/blogs/computer-architecture/hyperthreading/</link><pubDate>Fri, 10 Feb 2023 00:00:00 +0000</pubDate><guid>https://hbisheng.github.io/blogs/computer-architecture/hyperthreading/</guid><description>&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; Hyperthreading turns a physical core into multiple logical cores and allows starting multiple instructions per cycle. But it can not achieve the same performance as having real physical cores due to shared resources (e.g. CPU caches).&lt;/p&gt;</description></item><item><title>NUMA and cache coherence protocols</title><link>https://hbisheng.github.io/blogs/computer-architecture/multi-core-cpu/</link><pubDate>Mon, 13 Feb 2023 00:00:00 +0000</pubDate><guid>https://hbisheng.github.io/blogs/computer-architecture/multi-core-cpu/</guid><description>&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; Modern CPUs have multiple cores and multiple memory banks. Different cores have their own cache and they adopt a cache coherence protocol to maintain memory coherence.&lt;/p&gt;&#10;&lt;p&gt;This &lt;a href="https://www.youtube.com/playlist?list=PLeWkeA7esB-OgNoVkE2lW2cVBxpDbu92h"&gt;series of videos&lt;/a&gt; is very helpful in building an understanding of multicore architectures.&lt;/p&gt;</description></item><item><title>Definitions of software and hardware</title><link>https://hbisheng.github.io/blogs/computer-architecture/software-vs-hardware/</link><pubDate>Sat, 05 Nov 2022 00:00:00 +0000</pubDate><guid>https://hbisheng.github.io/blogs/computer-architecture/software-vs-hardware/</guid><description>&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; Software is instruction. Hardware is the physical material that takes instructions.&lt;/p&gt;&#10;&lt;hr&gt;&#10;&lt;p&gt;What is &lt;strong&gt;software&lt;/strong&gt; and what is &lt;strong&gt;hardware&lt;/strong&gt;? Here is a basic non-formal definition for myself:&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Hardware&lt;/strong&gt; are the physical devices in the physical world. They are atoms arranged in a way that achieve certain functionalities.&lt;/p&gt;</description></item></channel></rss>