XiPU_v2 has been released
The second iteration of the XiPU project is here. It is simply named XiPU_v2.
All binaries and documentation are now available in the Download section. The source code is available on the git page.
In the near future, I will add a new version of the articles to fully describe the changes and new features of the XiPU_v2.
The list of changes and new features:
- 64 KB of flat memory space. The memory is no longer split into ROM and RAM spaces.
- The ROM is now split into the BIOS and the OS. The BIOS is stored in a 2 KB EEPROM and contains a bootloader and a basic API for IO operations. The OS is loaded from the external memory on the IO Board. This architecture gives more flexibility for new OS features in the future.
- The stack size has been increased from 256 bytes to 4 KB.
- The stack now has a dedicated Base Pointer register to store the frame pointer of the current function. It makes it possible to support features needed by higher-level languages like C.
- Now it is possible to allocate more than 1 byte on the stack at once. It can be used to pass additional parameters to a called function or to store temporary local variables.
- Add, sub, inc and dec operations can be performed on 16-bit numbers using the Y:X pair of registers.
- Now it is possible to use an additional offset in memory access instructions to get or set a value using the pointer stored in the Y:X pair of registers. It simplifies working with arrays and structs.
- The XiPU has two flag registers. The first one is external, and changes of the C and Z flags in it are visible to the next instruction. The second one is used only for the internal purposes of executing an instruction, and it does not affect the values of the external flag register.
All these changes speed up the XiPU_v2 and add more flexibility in creating software for it. The base clock of the XiPU_v2 is still 1 MHz, but software runs faster, because code doing the same thing can be shorter. The changes in the memory layout and stack access allow much simpler calculations on pointers.
Below you can see photos of the assembled XiPU_v2 and the XiPC_v2 in two types of cases:



Hardware articles have been added
And it has happened! I have added the last, long-awaited hardware articles.
You can see in them how the PCBs and the case are designed and made. I added many images with schematics and descriptions of all parts of the XiPU and the XiPC. I did not forget to add lists of parts. I hope you will be interested in this kind of stuff.
The list of added articles:
- Design of the XiPU
- Design of the IO Board
- Design of the keyboard
- Case project
Software articles have been added
I have added all the articles needed to understand the logic and design of the software. Now it will be much easier for you to start working with the assembler code, debug the IO Data Bus, add new features and make your own changes in the code.
I hope these articles will be helpful. In the near future, I will add a similar set of articles to the hardware section of this site.
The list of added articles:
- Design of the uROM
- Description of the assembler language
- Design of the IO Data BUS
- Design of the OS
- Using the emulator
IO Board firmware has been added
I have finally added the source code of the IO Board firmware. You can download it from the git repository or the Download page.
Now all project files and source files are in my repository, and you can build everything yourself and run it on the XiPC.
In the future, I will make some changes in the project:
- Clean up the IO request function in the emulator and the firmware. I will split it a little to make it more readable.
- Change the ROM size to 2 KB and put a bootloader there. The OS will be loaded from the File System stored on the IO Board.
- Remove the flash read commands from the assembler, because everything will be accessible in the RAM. Only the bootloader will be stored in the ROM.
- Add an option to read and write the Stack Pointer. The stack will be resized from 256 bytes to 4 KB. It is a necessary step to make a simple C-like language for the XiPU.
I took photos of the beta version of the XiPC. In the currently available version of the project, some connectors are in different positions for future purposes, but the functionality is the same as in the beta version. Please take a look:


PCB designs have been added
PCB designs and Gerber files have been added for:
- XiPU - project of the CPU Board
- IO Board - project of the Input/Output motherboard based on the STM32F0
- Keyboard - project of the mechanical keyboard
The case of the XiPC has been updated too. You can download all of them from the Download page or the git repository.
It is a great day for my project, because using the Gerber files and the case project, you can build your own working copy of the XiPC.
XiPC Emulator and File System have been added
A great milestone has been achieved! Now it is possible to run the XiPC Emulator and see how the computer based on the XiPU works.
The emulator uses the same uROM and ROM files as the real hardware. You can compile and run your own applications.
What has been added:
- XiPC Emulator
- File System with basic applications
ROM and Assembler Compiler have been added
I took a break from the project, maybe too long, but I have started working on it again!
I added the ROM sources and documentation to the git repository. The ROM contains two important parts of the OS:
- A simple terminal to run applications
- The IO API as a bridge between the hardware and applications
I added the Assembler Compiler sources and documentation to the git repository. A custom instruction set needs its own Assembler Compiler, which is necessary to compile the ROM and applications for the XiPU.
Next in the queue is an emulator of the whole XiPC. Stay tuned!
Let's make a CPU! The page has been launched.
Hi everyone!
My name is Paweł. I made my own CPU and a PC based on it. I will show you how the CPU works and how you can build it yourself.
The XiPU is loosely based on the MOS 6502. It was my starting point for designing my own CPU. Now the XiPU has many differences, and it is much simpler.
Designing and testing took me a year and a half. Now I am focused on creating this page and reviewing my own code before publishing it.
Some information about the processor:
- The name of the CPU is XiPU. It is a short name for the "XiRX Processor Unit".
- The XiPU is an 8-bit processor, and it has 32 KB of ROM and 64 KB of RAM.
- The base frequency is 1 MHz.
- It is fully made of 7400-series TTL chips. I used the HCT version of the chips to reduce power consumption.
- A 16-bit data bus is used for communication: 8 bits for the input and 8 bits for the output.

Some information about the computer:
- The PC based on the XiPU is named XiPC. It is a short name for the "XiRX Personal Computer".
- The XiPC uses the STM32F072 microcontroller as an IO chip for the LCD screen, RS232, speaker, RTC and keyboard.
- The LCD screen can show 40 characters in one line, and there are 30 lines. It supports 16 colors for the foreground and 16 colors for the background.
- The speaker can play a simple melody, one sound at a time.
- The RS232 port supports 1200 baud.
- The RTC is built into the STM32F072 microcontroller and has an external battery backup.
- The keyboard is mechanical and specially designed for the XiPC.

Every month, I will add more content to this page. You can find my contact details in the "Author" section of this page. I will be grateful for any suggestions and kind words about the project.
The XiPU and XiPC projects are completely free to use. You only need to leave information about me as the original author.