I2C Bus Design

1. First, let’s discuss open-drain output and push-pull output First, watch the video explanation: The following video is from Guo Tianxiang Push-Pull Output Structure and Principle: A push-pull output circuit consists of two complementary transistors (usually an NPN transistor and a PNP transistor). In this structure, when the input is high, the upper transistor (like … Read more

LLM: GPU or ASIC?

Apr. Click the blue text to follow us 2025.04 Source: ContentTranslated fromsemiengineering, thank you. The CEOs of OpenAI, Anthropic, and xAI share a remarkably similar vision—advancements in artificial intelligence are exponential, and they will transform humanity, with impacts that will exceed most people’s expectations. This is not just speculation. The market for artificial intelligence and … Read more

Can Domestic Chip 053 Storage Manufacturers Compete with Foreign Brands?

The answer is, no. Why are storage prices less stable than CPU prices?? The first reason is demand elasticity, if the price of rice rises from 2 yuan per jin to 5 yuan per jin, the total amount of rice consumed by my family will not change much over the year, whether the price rises … Read more

US Chip Sanctions Escalate, Advanced Packaging Becomes the Next Strategic Pivot for Domestic AI Chips

Author | Du Wenjing, Chang Liang The AIGC led by large models marks the starting point of the Fourth Industrial Revolution, possessing the ability to fundamentally change the rules across various industries. The year 2023 has become the inaugural year for AI large models, with significant improvements in pre-training and generative capabilities, as well as … Read more

C Language Daily Challenge No. 15: Implementing a String Replacement Function

📌 Problem Description Write a function str_replace that replaces the first occurrence of an old substring with a new substring in the given string, returning the modified new string. Requirements: Only a single replacement is required The returned new string must be dynamically allocated Example: Input: str="Hello World", old="World", new="C" Output: "Hello C" Difficulty: ⭐️ … Read more

Understanding the if Statement: A Deep Dive into C Language Control Structures

Understanding the if Statement: A Deep Dive into C Language Control Structures In programming, control flow refers to a series of statements that determine the order of execution of a program. The <span>if</span> statement is one of the most fundamental and commonly used control structures in C language. It allows us to execute different blocks … Read more

Implementation Methods of Thread Synchronization Mechanisms in C Language

Implementation Methods of Thread Synchronization Mechanisms in C Language In multithreaded programming, synchronization between threads is an important issue. When multiple threads access shared resources simultaneously, the absence of appropriate synchronization mechanisms can lead to data inconsistency or program crashes. This article will introduce several common thread synchronization mechanisms in C language, including mutexes, condition … Read more

The Relationship Between Pointers and Arrays in C Language – Part Two

2. Analysis from the Implementation Perspective (Compiled Code) Previously, we briefly understood the relationship between arrays and pointers from the perspective of program writing. Next, we will analyze this logic more deeply from the perspective of compilation implementation. int *int_pointer = int_array; lea -0x40(%rbp),%rax ; (%rbp) – 0x40 value of int_array mov %rax,-0x8(%rbp) ; -0x8(%rbp) … Read more

Implementation Methods and Examples of Polymorphism in C Language

Implementation Methods and Examples of Polymorphism in C Language In object-oriented programming, polymorphism is an important concept that allows the same method to be called in different forms through various means. In C language, although there is no direct syntax support for polymorphism, we can achieve similar effects through the following methods: function pointers, combinations … Read more