WIP: SharpX1 Core

Post Reply
JasonA
Core Developer
Posts: 54
Joined: Fri Mar 11, 2022 9:46 am
Has thanked: 14 times
Been thanked: 189 times

WIP: SharpX1 Core

Post by JasonA »

Hi,

I have been offline for a month working on a new core: SharpX1.

I thought it time now to give an update on the cores status:

  1. CZ-800C model
    This first core will be for the first model, the CZ-800C. I plan to move on to the X1Turbo once this first version is working.

  2. Implementation
    At the moment, I have all parts integrated, the address decoder mapped, the IO ports wired correctly, the data MUX for the CPU is also working. I have stubbed the 8251, 8253 and the 8255. These are responding to the IPL BIOS, so its enough for now.
    The PCG needs some work still, which is my current focus. The CRTC6845 has some timing issues as the IPL BIOS is trying to write to its registers, but having a few problems. I will be moving back to that shortly. For now, I have hardcoded the registers so that I get a video frame.
    The CGROM is loaded on ioctl index 1 (IPL is index 0) and I can see the CGROM interacting with the rest of the system just fine.
    The YAMAHA PSG (sound) has the correct clock, so that should work once I get onto audio testing later.
    I have disassembled the IPL BIOS to instruction codes, so I can see what its trying to do also.

  3. Simulation
    Im still at the simulation stage, and am debugging the IPL BIOS together with FST tracing in GTKWave and Verilator. I always follow this approach before hooking a core up to the MiSTer sys and moving over to Quartus for an FPGA release.

I'll update this post once I have more progress to share.

Buy me a coffee https://Ko-fi.com/jasona
lordelan
Posts: 33
Joined: Tue Aug 16, 2022 9:36 am
Has thanked: 48 times
Been thanked: 10 times

Re: WIP: SharpX1 Core

Post by lordelan »

Very promising!

kubbie
Posts: 109
Joined: Mon May 25, 2020 11:41 am
Has thanked: 1 time
Been thanked: 6 times

Re: WIP: SharpX1 Core

Post by kubbie »

Great to have a new core to play with. I'm excited and looking forward to it.

PixelCherryNinja
Posts: 7
Joined: Wed Oct 12, 2022 6:52 am
Has thanked: 7 times
Been thanked: 6 times

Re: WIP: SharpX1 Core

Post by PixelCherryNinja »

Thank you Jason. I'm not at all familiar with this system, but MiSTer has introduced me to many systems, so I'm looking forward to this.

User avatar
wark91
Core Developer
Posts: 335
Joined: Sun May 24, 2020 8:34 pm
Has thanked: 465 times
Been thanked: 96 times

Re: WIP: SharpX1 Core

Post by wark91 »

Thank you !!!!

AmintaMister
Posts: 345
Joined: Thu Sep 16, 2021 10:54 pm
Has thanked: 879 times
Been thanked: 55 times

Re: WIP: SharpX1 Core

Post by AmintaMister »

Thank you!!!

cmstar0
Posts: 24
Joined: Thu Mar 11, 2021 3:16 am
Has thanked: 1 time
Been thanked: 6 times

Re: WIP: SharpX1 Core

Post by cmstar0 »

So looking forward to this. Thank you for your efforts!

JasonA
Core Developer
Posts: 54
Joined: Fri Mar 11, 2022 9:46 am
Has thanked: 14 times
Been thanked: 189 times

Re: WIP: SharpX1 Core

Post by JasonA »

IPL.png
IPL2.png

I managed to fix the CRTC register loading, and various other signals.

You can see in the images, that the X1 IPL BIOS is now loading fine, and showing its initial startup messages. I still need to debug the PCG, as you can see the output is not quite right still.

There might also be a bit more hardware work to do, as the IPL BIOS is complaining (see 2nd screenshot).

Small steps, but getting there.

You do not have the required permissions to view the files attached to this post.
Buy me a coffee https://Ko-fi.com/jasona
User avatar
limi
Top Contributor
Posts: 884
Joined: Sun May 24, 2020 6:53 pm
Has thanked: 200 times
Been thanked: 621 times

Re: WIP: SharpX1 Core

Post by limi »

Coincidentally, Retro Collective (formerly RMC) recovered an X1 in today’s video, in case anyone wants to check out the hardware — gorgeous!

JasonA
Core Developer
Posts: 54
Joined: Fri Mar 11, 2022 9:46 am
Has thanked: 14 times
Been thanked: 189 times

Re: WIP: SharpX1 Core

Post by JasonA »

Some updates:

  • added sub-CPU fully implemented (all commands done emulating the CPU, no ROM needed!)
  • new i8255
  • new i8253
  • implemented GRAM memory and correct memory mapping
  • added K Ra board
  • added cz8UI board
  • implemented VRAM text and attribute memory properly using IO mapping
  • added debug code for unhandled IO mapping and memory mapping

GRAM testing shows colours now, and I have proper frame sync.

Focus for the time being is to work on the video code to get the PCG and VRAM to output correctly, as I have done with the GRAM.
Then, I will get back to Basic File System ("TAPE") support.

Buy me a coffee https://Ko-fi.com/jasona
User avatar
Hodor
Posts: 147
Joined: Mon May 25, 2020 8:29 am
Has thanked: 403 times
Been thanked: 31 times

Re: WIP: SharpX1 Core

Post by Hodor »

Awesome! Your work sounds very promising.

X1turbo.Agency
Posts: 1
Joined: Thu Apr 17, 2025 8:11 pm

Re: WIP: SharpX1 Core

Post by X1turbo.Agency »

Sharp X1のFPGAコア実装、とても楽しみです。
I'm really looking forward to the FPGA core implementation of the Sharp X1!

Post Reply