<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Notes on Yu-Cheng's Notes</title><link>https://linkingmon.github.io/blog/note/</link><description>Recent content in Notes on Yu-Cheng's Notes</description><generator>Hugo -- 0.166.0</generator><language>en-us</language><lastBuildDate>Sat, 14 Nov 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://linkingmon.github.io/blog/note/index.xml" rel="self" type="application/rss+xml"/><item><title>Bringing My LEGO Mindstorms NXT Back to Life - Part 2</title><link>https://linkingmon.github.io/blog/note/nxt2/</link><pubDate>Sat, 14 Nov 2026 00:00:00 +0000</pubDate><guid>https://linkingmon.github.io/blog/note/nxt2/</guid><description>&lt;p&gt;In the previous part, I managed to bring my LEGO Mindstorms NXT back to life. Now that the device could boot up and had a working firmware installed, the next step was to figure out how to program it.&lt;/p&gt;
&lt;h2 id="controlling-the-nxt-with-python"&gt;Controlling the NXT with Python&lt;/h2&gt;
&lt;p&gt;My first attempt was to use Python. With the help of AI, I generated a simple Python script using an existing NXT library. By connecting the NXT to my computer through a USB Type-B cable, I could send commands directly to the device and control its motors. For example, I could specify how much a motor should rotate and simply run the script to make it happen. The same approach could also be used to read sensor data.&lt;/p&gt;</description></item><item><title>Bringing My LEGO Mindstorms NXT Back to Life - Part 1</title><link>https://linkingmon.github.io/blog/note/nxt/</link><pubDate>Mon, 09 Nov 2026 00:00:00 +0000</pubDate><guid>https://linkingmon.github.io/blog/note/nxt/</guid><description>&lt;h2 id="revisiting-a-childhood-robot"&gt;Revisiting a Childhood Robot&lt;/h2&gt;
&lt;p&gt;Today, I want to talk about something I used to play with around 15 years ago — the LEGO Mindstorms NXT.&lt;/p&gt;
&lt;p&gt;The set I had was an educational version of LEGO Mindstorms. It didn&amp;rsquo;t come with a particularly large number of LEGO pieces, but the most interesting part was the NXT itself, a programmable controller that served as the brain of the robot.&lt;/p&gt;
&lt;p&gt;You could build a robot using LEGO pieces, connect different sensors and motors to the controller, and then upload a program to it.&lt;/p&gt;</description></item><item><title>Reconfigure Kobo - Part 2</title><link>https://linkingmon.github.io/blog/note/kobo2/</link><pubDate>Mon, 12 Oct 2026 00:00:00 +0000</pubDate><guid>https://linkingmon.github.io/blog/note/kobo2/</guid><description>&lt;p&gt;In Part 1, I got my Kobo Libra 2 to display an image of my choice. That was fun, but I still had to tell it when to do it. What I really wanted was to wake up in the morning and see my calendar and the weather already on the screen.&lt;/p&gt;
&lt;p&gt;I used Codex to help write the first version. It could update the screen, and it even worked twice in a row. Then the Kobo went to sleep and didn&amp;rsquo;t come back.&lt;/p&gt;</description></item><item><title>Reconfigure Kobo - Part 1</title><link>https://linkingmon.github.io/blog/note/kobo/</link><pubDate>Sun, 11 Oct 2026 00:00:00 +0000</pubDate><guid>https://linkingmon.github.io/blog/note/kobo/</guid><description>&lt;p&gt;Today I want to share what I&amp;rsquo;ve been doing with my Kobo Libra 2. It started with an open-source reader I found online called KOReader. Once I got it running, I had another question. If the Kobo can already draw books and PDFs on its E Ink screen, can I make it draw whatever I want?&lt;/p&gt;
&lt;h2 id="installing-koreader"&gt;Installing KOReader&lt;/h2&gt;
&lt;p&gt;The first thing I did was plug the Kobo into my computer over USB. It showed up as a drive, so I could browse the files on its user storage. What surprised me was that I could use that same drive to install something that wasn&amp;rsquo;t a book.&lt;/p&gt;</description></item><item><title>Linux Kernel - Part 3</title><link>https://linkingmon.github.io/blog/note/linux3/</link><pubDate>Sat, 29 Aug 2026 00:00:00 +0000</pubDate><guid>https://linkingmon.github.io/blog/note/linux3/</guid><description>&lt;p&gt;In this post I would like to review the function for using &lt;code&gt;mmap&lt;/code&gt; that is introduced in &lt;a href="https://www.youtube.com/watch?v=sFYFuBzu9Ow"&gt;Why Linux Has This Syscall?! - Tsoding&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;His repo can be found on &lt;a href="https://github.com/tsoding/mmap"&gt;Github&lt;/a&gt;, where he demos 4 type of usage:&lt;/p&gt;
&lt;p&gt;(1) allocating memroy
(2) reading files
(3) IPC (inter-processing cache)
(4) Precise control over memory protection&lt;/p&gt;
&lt;h2 id="allocating-memory"&gt;Allocating Memory&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-c" data-lang="c"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;#include&lt;/span&gt; &lt;span style="color:#75715e"&gt;&amp;lt;assert.h&amp;gt;&lt;/span&gt;&lt;span style="color:#75715e"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;#include&lt;/span&gt; &lt;span style="color:#75715e"&gt;&amp;lt;sys/mman.h&amp;gt;&lt;/span&gt;&lt;span style="color:#75715e"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;#define N 10
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;int&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;main&lt;/span&gt;(&lt;span style="color:#66d9ef"&gt;int&lt;/span&gt; argc, &lt;span style="color:#66d9ef"&gt;char&lt;/span&gt; &lt;span style="color:#f92672"&gt;*&lt;/span&gt;argv[])
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;{
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;int&lt;/span&gt; &lt;span style="color:#f92672"&gt;*&lt;/span&gt;xs &lt;span style="color:#f92672"&gt;=&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;mmap&lt;/span&gt;(NULL, N &lt;span style="color:#f92672"&gt;*&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;sizeof&lt;/span&gt;(&lt;span style="color:#66d9ef"&gt;int&lt;/span&gt;),
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; PROT_READ &lt;span style="color:#f92672"&gt;|&lt;/span&gt; PROT_WRITE,
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; MAP_PRIVATE &lt;span style="color:#f92672"&gt;|&lt;/span&gt; MAP_ANONYMOUS,
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#ae81ff"&gt;0&lt;/span&gt;, &lt;span style="color:#ae81ff"&gt;0&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;assert&lt;/span&gt;(xs &lt;span style="color:#f92672"&gt;!=&lt;/span&gt; MAP_FAILED);
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;assert&lt;/span&gt;(N &lt;span style="color:#f92672"&gt;&amp;gt;=&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;2&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; xs[&lt;span style="color:#ae81ff"&gt;0&lt;/span&gt;] &lt;span style="color:#f92672"&gt;=&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;0&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; xs[&lt;span style="color:#ae81ff"&gt;1&lt;/span&gt;] &lt;span style="color:#f92672"&gt;=&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;1&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;for&lt;/span&gt; (&lt;span style="color:#66d9ef"&gt;int&lt;/span&gt; i &lt;span style="color:#f92672"&gt;=&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;2&lt;/span&gt;; i &lt;span style="color:#f92672"&gt;&amp;lt;&lt;/span&gt; N; &lt;span style="color:#f92672"&gt;++&lt;/span&gt;i) {
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; xs[i] &lt;span style="color:#f92672"&gt;=&lt;/span&gt; xs[i &lt;span style="color:#f92672"&gt;-&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;1&lt;/span&gt;] &lt;span style="color:#f92672"&gt;+&lt;/span&gt; xs[i &lt;span style="color:#f92672"&gt;-&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;2&lt;/span&gt;];
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; }
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;int&lt;/span&gt; err &lt;span style="color:#f92672"&gt;=&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;munmap&lt;/span&gt;(xs, N &lt;span style="color:#f92672"&gt;*&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;sizeof&lt;/span&gt;(&lt;span style="color:#66d9ef"&gt;int&lt;/span&gt;));
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;assert&lt;/span&gt;(err &lt;span style="color:#f92672"&gt;&amp;gt;=&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;0&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;return&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;0&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The above code request &lt;code&gt;N&lt;/code&gt; int size memory from linux kernel through &lt;code&gt;mmap&lt;/code&gt;, and return the virtual memory in the end by &lt;code&gt;munmap&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>Image processing - Zhang-Suen Thinning</title><link>https://linkingmon.github.io/blog/note/rdp3/</link><pubDate>Wed, 29 Jul 2026 00:00:00 +0000</pubDate><guid>https://linkingmon.github.io/blog/note/rdp3/</guid><description>&lt;h1 id="introduction"&gt;Introduction&lt;/h1&gt;
&lt;p&gt;The next step is to implement the thinning algorithm, where we use the zhang-suen thinning algorithm. This method aims to remove all the points until becoming a single line (skeleton).&lt;/p&gt;
&lt;p&gt;The algoritmh check all colored points (will call black), then see if the neighbor&amp;rsquo;s black and white is under some condition, if the condition mets the black point would be removed (that is become white).&lt;/p&gt;
&lt;h1 id="implementation"&gt;Implementation&lt;/h1&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;CountNonZero8&lt;/code&gt; (result as &lt;code&gt;A&lt;/code&gt;)&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;count how many &lt;code&gt;1&lt;/code&gt;&amp;rsquo;s in the 8 neighbors.&lt;/li&gt;
&lt;/ul&gt;
&lt;ol start="2"&gt;
&lt;li&gt;&lt;code&gt;Transitions01&lt;/code&gt; (results as &lt;code&gt;B&lt;/code&gt;)&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;count how many &lt;code&gt;0&lt;/code&gt; to &lt;code&gt;1&lt;/code&gt; for 8 neighbors.&lt;/li&gt;
&lt;/ul&gt;
&lt;ol start="3"&gt;
&lt;li&gt;Two pass checking (slightly differnet)&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;A&lt;/code&gt; should be &lt;code&gt;2~6&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;B&lt;/code&gt; should be &lt;code&gt;1&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;p2&lt;/code&gt; or &lt;code&gt;p4&lt;/code&gt; or &lt;code&gt;p6&lt;/code&gt; should be &lt;code&gt;0&lt;/code&gt; (&lt;code&gt;p2&lt;/code&gt;, &lt;code&gt;p4&lt;/code&gt;, &lt;code&gt;p8&lt;/code&gt; in second pass)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;p4&lt;/code&gt; or &lt;code&gt;p6&lt;/code&gt; or &lt;code&gt;p8&lt;/code&gt; should be &lt;code&gt;0&lt;/code&gt; (&lt;code&gt;p2&lt;/code&gt;, &lt;code&gt;p6&lt;/code&gt;, &lt;code&gt;p8&lt;/code&gt; in second pass)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;denoting as:&lt;/p&gt;</description></item><item><title>Building RAG + LLM System</title><link>https://linkingmon.github.io/blog/note/rag/</link><pubDate>Fri, 08 May 2026 00:00:00 +0000</pubDate><guid>https://linkingmon.github.io/blog/note/rag/</guid><description>&lt;p&gt;Recently, I have been experimenting with OpenWebUI and trying to understand how it builds a ChatGPT-like interface on top of different language models, tools, RAG pipelines, and memory systems.&lt;/p&gt;
&lt;p&gt;At first glance, OpenWebUI looks like a frontend chat application. But after digging into it more deeply, I found that the interesting part is not only the UI itself. The real value is how it connects many different components together: OpenAI-compatible models, Anthropic-style models, local LLMs, MCP tools, Python interpreters, image analysis tools, web search, RAG, and its own built-in memory system.&lt;/p&gt;</description></item><item><title>Linux Kernel - Part 2</title><link>https://linkingmon.github.io/blog/note/linux2/</link><pubDate>Thu, 30 Apr 2026 00:00:00 +0000</pubDate><guid>https://linkingmon.github.io/blog/note/linux2/</guid><description>&lt;p&gt;Recently learn more linux (materials will be put &lt;a href="https://github.com/linkingmon/tech-lab/tree/master/Linux"&gt;here&lt;/a&gt;).&lt;/p&gt;
&lt;h2 id="mmapbrk-and-memory-allocation-in-c"&gt;mmap/brk and memory allocation in C&lt;/h2&gt;
&lt;p&gt;We try to build some run and use &lt;code&gt;strace&lt;/code&gt; to analyze all the syscalls, such as &lt;code&gt;execve&lt;/code&gt; for execution, &lt;code&gt;brk&lt;/code&gt; and &lt;code&gt;mmap&lt;/code&gt; for requesting the memory, etc.&lt;/p&gt;
&lt;p&gt;I notice that for the C &lt;code&gt;malloc&lt;/code&gt; and C++ &lt;code&gt;new&lt;/code&gt;, we actually call &lt;code&gt;brk&lt;/code&gt; or &lt;code&gt;mmap&lt;/code&gt; for requesting memory and then the allocator would do memory control, and it will continue requesting memory from OS if the allocator found that the current memory is not enough.&lt;/p&gt;</description></item><item><title>Image processing - Chaikin Smoothing</title><link>https://linkingmon.github.io/blog/note/rdp2/</link><pubDate>Fri, 10 Apr 2026 00:00:00 +0000</pubDate><guid>https://linkingmon.github.io/blog/note/rdp2/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Follow by the RDP algorithm, we imeplemtat hte chakin smoothhing algorithm. Rhe algorithm tries to smooth the curve by adding new points witin each segmetns:&lt;/p&gt;
&lt;p&gt;For the following example, we can see that we try to split each edge into 3 segements (that is insert 2 points as the red dots), and then tried to connect them.&lt;/p&gt;
&lt;p&gt;&lt;img loading="lazy" src="../rdp/chaikin.jpg"&gt;&lt;/p&gt;
&lt;h2 id="implementation"&gt;Implementation&lt;/h2&gt;
&lt;p&gt;This function is simple nad the input are a list of points and iteration number. Notice that in each iteration, the number of points would become doubled!&lt;/p&gt;</description></item><item><title>Linux Kernel - Part 1</title><link>https://linkingmon.github.io/blog/note/linux/</link><pubDate>Mon, 06 Apr 2026 00:00:00 +0000</pubDate><guid>https://linkingmon.github.io/blog/note/linux/</guid><description>&lt;p&gt;Recently start to learn some basic stuffs for linux kernel. I&amp;rsquo;m nearly new to this since I used to study Ic desing and accelrators and has no experience in OS. The learning materials will be stored in [https://linkingmon.github.io/Algorithm/Linux](this repo).&lt;/p&gt;
&lt;p&gt;Overall I think this is interesting and I&amp;rsquo;m starting to bridge the gap for my IC design knowldege and C++ programming knowldege.&lt;/p&gt;
&lt;p&gt;Linux kernel is mostly written in C, and the interaction can be classified in 4 class:&lt;/p&gt;</description></item><item><title>Image processing - RDP algorithm</title><link>https://linkingmon.github.io/blog/note/rdp/</link><pubDate>Fri, 20 Mar 2026 00:00:00 +0000</pubDate><guid>https://linkingmon.github.io/blog/note/rdp/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Recently I am working on a small to process hand written curve and come up with the RDP algorithm, which stands for &lt;a href="https://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm"&gt;Ramer–Douglas–Peucker algorithm&lt;/a&gt;. This is the iterative method to simpify the curve by recursively calculateing the distance between the curve, and leave the points that are far away from the curve, and this alogrith ends when the there are no points left.&lt;/p&gt;
&lt;p&gt;The input is a vector of points, and each step we search for all the points distance, and find hte maximum distance one, and then we recursively call the function for two sides.&lt;/p&gt;</description></item><item><title>Gdb skills - part 2</title><link>https://linkingmon.github.io/blog/note/gdb2/</link><pubDate>Tue, 17 Mar 2026 00:00:00 +0000</pubDate><guid>https://linkingmon.github.io/blog/note/gdb2/</guid><description>&lt;p&gt;Keep sharing some gdb skills, more advanced.&lt;/p&gt;
&lt;h2 id="xgdb"&gt;x.gdb&lt;/h2&gt;
&lt;p&gt;Writing the gdb commands inside the x.gdb file so that we don&amp;rsquo;t need to spedify the commands every time.&lt;/p&gt;
&lt;h2 id="set-logging-on"&gt;set logging on&lt;/h2&gt;
&lt;p&gt;Usually the gdb outcome would not be stored, we can use &lt;code&gt;set loging on&lt;/code&gt;, then the output would be stored in &lt;code&gt;gdb.txt&lt;/code&gt;, this is useful when we need to print a lot of things, we can print them all in the log, then review the output later, or we can compare log in different runs.&lt;/p&gt;</description></item><item><title>Gdb skills - part 1</title><link>https://linkingmon.github.io/blog/note/gdb/</link><pubDate>Fri, 13 Mar 2026 00:00:00 +0000</pubDate><guid>https://linkingmon.github.io/blog/note/gdb/</guid><description>&lt;p&gt;Today I like to share some gdb skills that I&amp;rsquo;ve learned in the pass few years.&lt;/p&gt;
&lt;h2 id="break"&gt;Break&lt;/h2&gt;
&lt;p&gt;I think the most widely use is the breakpoint.
We can do break in some function (as &lt;code&gt;b funcA&lt;/code&gt;), or break at some line (as &lt;code&gt;b classA.cpp:99&lt;/code&gt;).
Some times adding hte condition for breaking is also useful (as &lt;code&gt;b funcA if cnt == 10&lt;/code&gt;). Also this can ne done by &lt;code&gt;cond&lt;/code&gt;, say this breakpoint is the third, we can do &lt;code&gt;cond 3 cnt ==10&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>Copilot with MCP &amp; Skills</title><link>https://linkingmon.github.io/blog/note/copilot-mcp/</link><pubDate>Tue, 10 Mar 2026 00:00:00 +0000</pubDate><guid>https://linkingmon.github.io/blog/note/copilot-mcp/</guid><description>&lt;p&gt;Recently I&amp;rsquo;m playing withe the copilot CLI (an agent), other counterparts include codeX CLI, claude code ,and gemini CLI.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ve studied and played with AI agnet in n8n in my [https://linkingmon.github.com/n8n/](n8n repo) with n8n, and I think the most inportant compenents are:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;AI model: the model to do planning and understand the semantic of the input/output.&lt;/li&gt;
&lt;li&gt;memory: to store the contect for the converstaion.&lt;/li&gt;
&lt;li&gt;tools: this would conncets all kinds of tools like wolfram to do arhitmetric compuation, to query data from the wikipedia, etc.&lt;/li&gt;
&lt;li&gt;output schema: to deifne hte format for the output, this would allow to connect to next level API.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I thin kthe AI-agent is the same, tje AI model stills remain the same, and the memory is implmented internally or it can also be stored in Skills.md or intrictions.md (some agent like codex called agents.md). The tools are connected with mcp server (most of the useful tools server can be found on the web).&lt;/p&gt;</description></item><item><title>IC Design - Part 9: 2020 Contest — Optimizing a Job Assignment Engine</title><link>https://linkingmon.github.io/blog/note/ic-design9/</link><pubDate>Fri, 21 Jul 2023 00:00:00 +0000</pubDate><guid>https://linkingmon.github.io/blog/note/ic-design9/</guid><description>&lt;p&gt;This is a review of my experience in the 2020 IC Design Contest final. It was several years ago, so some details are based on memory and may not exactly match what I thought at the time.&lt;/p&gt;
&lt;p&gt;I also remember the main scoring objective as area, with a relatively generous timing constraint. The version later shown on the contest website used a power–execution-time metric. For this post, I will explain our decisions from the perspective I remember: &lt;strong&gt;minimizing area&lt;/strong&gt;.&lt;/p&gt;</description></item><item><title>IC Design - Part 8: 2021 Contest — Detecting Waveform Delay</title><link>https://linkingmon.github.io/blog/note/ic-design8/</link><pubDate>Mon, 17 Jul 2023 00:00:00 +0000</pubDate><guid>https://linkingmon.github.io/blog/note/ic-design8/</guid><description>&lt;p&gt;I want to start this review with one criticism: I did not think the 2021 contest problem was designed very well.&lt;/p&gt;
&lt;p&gt;As I understood the rules, we only needed to pass the provided test cases, without hidden tests. That encouraged teams to find a solution that &lt;strong&gt;overfit the known waveforms&lt;/strong&gt;, rather than design a robust general-purpose circuit.&lt;/p&gt;
&lt;h2 id="problem-overview"&gt;Problem overview&lt;/h2&gt;
&lt;p&gt;Each waveform contained 150 discrete samples. Every sample was 8 bits wide, with values from 0 to 255.&lt;/p&gt;</description></item><item><title>IC Design - Part 7: 2022 Contest — Building an ECG QRS Detector</title><link>https://linkingmon.github.io/blog/note/ic-design7/</link><pubDate>Tue, 11 Jul 2023 00:00:00 +0000</pubDate><guid>https://linkingmon.github.io/blog/note/ic-design7/</guid><description>&lt;p&gt;This post reviews how I approached the 2022 IC Design Contest final. The problem was to process an ECG waveform and identify the positions of its &lt;strong&gt;Q, R, and S&lt;/strong&gt; components.&lt;/p&gt;
&lt;h2 id="problem-overview"&gt;Problem overview&lt;/h2&gt;
&lt;p&gt;The proposed processing flow had three stages:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;A &lt;strong&gt;16-tap moving average&lt;/strong&gt;:&lt;/p&gt;
&lt;div class="math-block"&gt;&lt;span class="katex"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML" display="block"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;M&lt;/mi&gt;&lt;mi&gt;V&lt;/mi&gt;&lt;mo stretchy="false"&gt;(&lt;/mo&gt;&lt;mi&gt;n&lt;/mi&gt;&lt;mo stretchy="false"&gt;)&lt;/mo&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mfrac&gt;&lt;mrow&gt;&lt;mi&gt;x&lt;/mi&gt;&lt;mo stretchy="false"&gt;(&lt;/mo&gt;&lt;mi&gt;n&lt;/mi&gt;&lt;mo stretchy="false"&gt;)&lt;/mo&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mi&gt;x&lt;/mi&gt;&lt;mo stretchy="false"&gt;(&lt;/mo&gt;&lt;mi&gt;n&lt;/mi&gt;&lt;mo&gt;−&lt;/mo&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;mo stretchy="false"&gt;)&lt;/mo&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mo&gt;⋯&lt;/mo&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mi&gt;x&lt;/mi&gt;&lt;mo stretchy="false"&gt;(&lt;/mo&gt;&lt;mi&gt;n&lt;/mi&gt;&lt;mo&gt;−&lt;/mo&gt;&lt;mn&gt;15&lt;/mn&gt;&lt;mo stretchy="false"&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mn&gt;16&lt;/mn&gt;&lt;/mfrac&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;MV(n)=\frac{x(n)+x(n-1)+\cdots+x(n-15)}{16}&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;DC-bias removal&lt;/strong&gt;:&lt;/p&gt;
&lt;div class="math-block"&gt;&lt;span class="katex"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML" display="block"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;D&lt;/mi&gt;&lt;mi&gt;e&lt;/mi&gt;&lt;mi&gt;l&lt;/mi&gt;&lt;mi&gt;D&lt;/mi&gt;&lt;mi&gt;C&lt;/mi&gt;&lt;mo stretchy="false"&gt;(&lt;/mo&gt;&lt;mi&gt;n&lt;/mi&gt;&lt;mo stretchy="false"&gt;)&lt;/mo&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mi&gt;x&lt;/mi&gt;&lt;mo stretchy="false"&gt;(&lt;/mo&gt;&lt;mi&gt;n&lt;/mi&gt;&lt;mo stretchy="false"&gt;)&lt;/mo&gt;&lt;mo&gt;−&lt;/mo&gt;&lt;mi&gt;M&lt;/mi&gt;&lt;mi&gt;V&lt;/mi&gt;&lt;mo stretchy="false"&gt;(&lt;/mo&gt;&lt;mi&gt;n&lt;/mi&gt;&lt;mo stretchy="false"&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;DelDC(n)=x(n)-MV(n)&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;A &lt;strong&gt;15-tap windowing filter&lt;/strong&gt;, with symmetric triangular weights:&lt;/p&gt;
&lt;div class="math-block"&gt;&lt;span class="katex"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML" display="block"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;W&lt;/mi&gt;&lt;mi&gt;F&lt;/mi&gt;&lt;mo stretchy="false"&gt;(&lt;/mo&gt;&lt;mi&gt;n&lt;/mi&gt;&lt;mo stretchy="false"&gt;)&lt;/mo&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mfrac&gt;&lt;mrow&gt;&lt;mi&gt;D&lt;/mi&gt;&lt;mi&gt;e&lt;/mi&gt;&lt;mi&gt;l&lt;/mi&gt;&lt;mi&gt;D&lt;/mi&gt;&lt;mi&gt;C&lt;/mi&gt;&lt;mo stretchy="false"&gt;(&lt;/mo&gt;&lt;mi&gt;n&lt;/mi&gt;&lt;mo&gt;−&lt;/mo&gt;&lt;mn&gt;7&lt;/mn&gt;&lt;mo stretchy="false"&gt;)&lt;/mo&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mi&gt;D&lt;/mi&gt;&lt;mi&gt;e&lt;/mi&gt;&lt;mi&gt;l&lt;/mi&gt;&lt;mi&gt;D&lt;/mi&gt;&lt;mi&gt;C&lt;/mi&gt;&lt;mo stretchy="false"&gt;(&lt;/mo&gt;&lt;mi&gt;n&lt;/mi&gt;&lt;mo&gt;−&lt;/mo&gt;&lt;mn&gt;6&lt;/mn&gt;&lt;mo stretchy="false"&gt;)&lt;/mo&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mo&gt;⋯&lt;/mo&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mn&gt;8&lt;/mn&gt;&lt;mi&gt;D&lt;/mi&gt;&lt;mi&gt;e&lt;/mi&gt;&lt;mi&gt;l&lt;/mi&gt;&lt;mi&gt;D&lt;/mi&gt;&lt;mi&gt;C&lt;/mi&gt;&lt;mo stretchy="false"&gt;(&lt;/mo&gt;&lt;mi&gt;n&lt;/mi&gt;&lt;mo stretchy="false"&gt;)&lt;/mo&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mo&gt;⋯&lt;/mo&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mi&gt;D&lt;/mi&gt;&lt;mi&gt;e&lt;/mi&gt;&lt;mi&gt;l&lt;/mi&gt;&lt;mi&gt;D&lt;/mi&gt;&lt;mi&gt;C&lt;/mi&gt;&lt;mo stretchy="false"&gt;(&lt;/mo&gt;&lt;mi&gt;n&lt;/mi&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mn&gt;7&lt;/mn&gt;&lt;mo stretchy="false"&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mn&gt;64&lt;/mn&gt;&lt;/mfrac&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;WF(n)=\frac{DelDC(n-7)+2DelDC(n-6)+\cdots+8DelDC(n)+\cdots+DelDC(n+7)}{64}&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;img src="../ic-design/2022-Algor.png" alt="Algorithm flow for ECG QRS detection" width="600"&gt;
&lt;h3 id="hardware-architecture"&gt;Hardware architecture&lt;/h3&gt;
&lt;img src="../ic-design/2022-HW.png" alt="Hardware architecture for ECG QRS detection" width="400"&gt;
&lt;h3 id="interface"&gt;Interface&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Signal&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;din&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;10-bit input data&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;busy&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The host can send data when this is 0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Q&lt;/code&gt;, &lt;code&gt;R&lt;/code&gt;, &lt;code&gt;S&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;12-bit position values, output together&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;valid&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Indicates that the Q, R, and S positions are valid&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id="implementing-the-moving-average"&gt;Implementing the moving average&lt;/h2&gt;
&lt;p&gt;A direct 16-tap moving average sums 16 samples, which suggests a fairly large adder network. I wanted to avoid that.&lt;/p&gt;</description></item><item><title>IC Design - Part 6: Minimizing the Area–Time Product Through Resource Sharing</title><link>https://linkingmon.github.io/blog/note/ic-design6/</link><pubDate>Fri, 07 Jul 2023 00:00:00 +0000</pubDate><guid>https://linkingmon.github.io/blog/note/ic-design6/</guid><description>&lt;p&gt;In &lt;a href="https://linkingmon.github.io/blog/note/ic-design2/"&gt;Estimating Execution Time Before Writing RTL&lt;/a&gt;, I described why the clock period matters. For many architecture choices, however, I first focus on the total number of cycles. If the clock periods are similar, the area–time product (AT) is closely related to the amount of computation and the hardware needed to perform it.&lt;/p&gt;
&lt;h2 id="reducing-the-amount-of-computation"&gt;Reducing the amount of computation&lt;/h2&gt;
&lt;p&gt;Suppose we need to add 16 values. We could build one adder and reuse it over many cycles, or build four adders and finish in fewer cycles. Ignoring clock-period differences and extra control or storage overhead, these choices can have similar AT products.&lt;/p&gt;</description></item><item><title>IC Design - Part 5: Minimizing Hardware Area Under a Timing Constraint</title><link>https://linkingmon.github.io/blog/note/ic-design5/</link><pubDate>Wed, 05 Jul 2023 00:00:00 +0000</pubDate><guid>https://linkingmon.github.io/blog/note/ic-design5/</guid><description>&lt;p&gt;In this post, I want to discuss a specific goal: &lt;strong&gt;minimize hardware area while meeting a timing constraint&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;In some IC design competitions, the time limit is given as a maximum number of cycles. This limit can be fairly generous, so even a straightforward architecture may meet it. When that happens, using fewer cycles is not necessarily helpful. We should instead spend the available cycles to reduce area.&lt;/p&gt;
&lt;p&gt;One common technique is to relax the clock-period constraint as much as the specification allows. A less aggressive timing target can give synthesis more room to optimize area.&lt;/p&gt;</description></item><item><title>IC Design - Part 4: Estimating Power Consumption in RTL Design</title><link>https://linkingmon.github.io/blog/note/ic-design4/</link><pubDate>Wed, 28 Jun 2023 00:00:00 +0000</pubDate><guid>https://linkingmon.github.io/blog/note/ic-design4/</guid><description>&lt;p&gt;Power consumption is another metric I want to estimate before committing to a hardware architecture.&lt;/p&gt;
&lt;h2 id="where-does-power-come-from"&gt;Where does power come from?&lt;/h2&gt;
&lt;p&gt;RTL power reports commonly separate power into three categories:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Internal power&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Switching power&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Leakage power&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In the terminology commonly taught in class, internal and switching power belong to &lt;strong&gt;dynamic power&lt;/strong&gt;, while leakage power belongs to &lt;strong&gt;static power&lt;/strong&gt;.&lt;/p&gt;
&lt;h2 id="dynamic-power"&gt;Dynamic power&lt;/h2&gt;
&lt;p&gt;A common first-order model is:&lt;/p&gt;
&lt;div class="math-block"&gt;&lt;span class="katex"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML" display="block"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;P&lt;/mi&gt;&lt;mrow&gt;&lt;mi&gt;d&lt;/mi&gt;&lt;mi&gt;y&lt;/mi&gt;&lt;mi&gt;n&lt;/mi&gt;&lt;mi&gt;a&lt;/mi&gt;&lt;mi&gt;m&lt;/mi&gt;&lt;mi&gt;i&lt;/mi&gt;&lt;mi&gt;c&lt;/mi&gt;&lt;/mrow&gt;&lt;/msub&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mi&gt;α&lt;/mi&gt;&lt;mi&gt;C&lt;/mi&gt;&lt;msup&gt;&lt;mi&gt;V&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/msup&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;
P_{dynamic} = \alpha C V^2 f
&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;Here, &lt;span class="katex"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;α&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\alpha&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt; represents switching activity, &lt;span class="katex"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;C&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;C&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt; is capacitance, &lt;span class="katex"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;V&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;V&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt; is voltage, and &lt;span class="katex"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;f&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt; is operating frequency.&lt;/p&gt;</description></item><item><title>IC Design - Part 3: Estimating Hardware Area Before Synthesis</title><link>https://linkingmon.github.io/blog/note/ic-design3/</link><pubDate>Sun, 25 Jun 2023 00:00:00 +0000</pubDate><guid>https://linkingmon.github.io/blog/note/ic-design3/</guid><description>&lt;p&gt;Estimating area is one of the most important parts of hardware architecture design. I like to make a rough comparison before writing RTL, so I can identify expensive operations early.&lt;/p&gt;
&lt;h2 id="a-simple-rule-of-thumb"&gt;A simple rule of thumb&lt;/h2&gt;
&lt;p&gt;Based on my experience, I use the following normalized costs as a starting point. You can inspect the standard-cell &lt;code&gt;.lib&lt;/code&gt; files for the actual cell areas in your target library.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Component&lt;/th&gt;
&lt;th style="text-align: right"&gt;Approximate normalized area&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Multiplexer&lt;/td&gt;
&lt;td style="text-align: right"&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Register&lt;/td&gt;
&lt;td style="text-align: right"&gt;10&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Adder&lt;/td&gt;
&lt;td style="text-align: right"&gt;10&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;These numbers are &lt;strong&gt;rough architectural estimates&lt;/strong&gt;, not universal cell-area ratios. Real costs depend on bit width, cell library, timing constraints, and implementation.&lt;/p&gt;</description></item><item><title>IC Design - Part 2: Estimating Execution Time Before Writing RTL</title><link>https://linkingmon.github.io/blog/note/ic-design2/</link><pubDate>Tue, 02 May 2023 00:00:00 +0000</pubDate><guid>https://linkingmon.github.io/blog/note/ic-design2/</guid><description>&lt;p&gt;In this post, I want to explain how I estimate the execution time of a hardware architecture.&lt;/p&gt;
&lt;p&gt;Let the total time between receiving the input and producing the complete output be &lt;span class="katex"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;mrow&gt;&lt;mi&gt;a&lt;/mi&gt;&lt;mi&gt;l&lt;/mi&gt;&lt;mi&gt;l&lt;/mi&gt;&lt;/mrow&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;t_{all}&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;. We can express it as:&lt;/p&gt;
&lt;div class="math-block"&gt;&lt;span class="katex"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML" display="block"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;mrow&gt;&lt;mi&gt;a&lt;/mi&gt;&lt;mi&gt;l&lt;/mi&gt;&lt;mi&gt;l&lt;/mi&gt;&lt;/mrow&gt;&lt;/msub&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mi&gt;n&lt;/mi&gt;&lt;mo&gt;×&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;mrow&gt;&lt;mi&gt;p&lt;/mi&gt;&lt;mi&gt;e&lt;/mi&gt;&lt;mi&gt;r&lt;/mi&gt;&lt;mi&gt;i&lt;/mi&gt;&lt;mi&gt;o&lt;/mi&gt;&lt;mi&gt;d&lt;/mi&gt;&lt;/mrow&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;
t_{all} = n \times t_{period}
&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;Here, &lt;span class="katex"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;n&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;n&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt; is the number of clock cycles, and &lt;span class="katex"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;mrow&gt;&lt;mi&gt;p&lt;/mi&gt;&lt;mi&gt;e&lt;/mi&gt;&lt;mi&gt;r&lt;/mi&gt;&lt;mi&gt;i&lt;/mi&gt;&lt;mi&gt;o&lt;/mi&gt;&lt;mi&gt;d&lt;/mi&gt;&lt;/mrow&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;t_{period}&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt; is the clock period. Most people know how to count cycles and try to reduce &lt;span class="katex"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;n&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;n&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;. However, I think the clock period is often overlooked.&lt;/p&gt;</description></item><item><title>IC Design - Part 1: Thinking About Architecture and PPA</title><link>https://linkingmon.github.io/blog/note/ic-design/</link><pubDate>Sat, 29 Apr 2023 00:00:00 +0000</pubDate><guid>https://linkingmon.github.io/blog/note/ic-design/</guid><description>&lt;p&gt;When I read a hardware specification, I try to think about the RTL architecture before writing the RTL itself. My goal is not simply to build a circuit that works, but to understand how to optimize it under the given constraints.&lt;/p&gt;
&lt;p&gt;In this series, I will share some ideas I learned while studying IC design and participating in the IC Design Contest organized by TSRI. I will use competition problems as examples, then discuss a few more advanced hardware design topics.&lt;/p&gt;</description></item></channel></rss>