From 6b94054c71a0f371d83e97cee0200c29e685c5c2 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Fri, 3 Nov 2023 13:39:19 +0200 Subject: Work on TPU --- digital/atk16.dig | 956 +++++++++++++++++++++++++--------------- digital/atk16_ppu.dig | 1036 +++++++++----------------------------------- digital/atk16_tpu.dig | 777 +++++++++++++++++++++++++++++++++ digital/atk16_vga_sync.dig | 999 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 2586 insertions(+), 1182 deletions(-) create mode 100644 digital/atk16_tpu.dig create mode 100644 digital/atk16_vga_sync.dig (limited to 'digital') diff --git a/digital/atk16.dig b/digital/atk16.dig index 323ef10..37530a8 100644 --- a/digital/atk16.dig +++ b/digital/atk16.dig @@ -1463,18 +1463,23 @@ - Multiplexer + atk16_ppu.dig + + + + + Splitter - Selector Bits - 2 + Input Splitting + 2,2,2 - Bits - 8 + Output Splitting + 6 - + Tunnel @@ -1485,15 +1490,24 @@ NetName - GRMODE + DBUS - + - atk16_ppu.dig - - + Tunnel + + + rotation + + + + NetName + PCLK + + + Tunnel @@ -1507,7 +1521,21 @@ CLK - + + + + Tunnel + + + rotation + + + + NetName + PCLK + + + Tunnel @@ -1521,7 +1549,7 @@ MMIO_IE - + Tunnel @@ -1532,10 +1560,10 @@ NetName - MMIO_S + MMIO_OE - + Tunnel @@ -1546,10 +1574,15 @@ NetName - MMIO_OE + MMIO_S - + + + + atk16_tpu.dig + + Tunnel @@ -1563,17 +1596,21 @@ DBUS - + - Splitter + Tunnel - Input Splitting - 2,2,2,1,1 + rotation + + + + NetName + CLK - + Tunnel @@ -1587,12 +1624,68 @@ PCLK - + + + + Tunnel + + + rotation + + + + NetName + MMIO_IE + + + + + + Tunnel + + + rotation + + + + NetName + MMIO_OE + + + + + + Tunnel + + + rotation + + + + NetName + MMIO_S + + + VGA - + + + + Splitter + + + Input Splitting + 6 + + + Output Splitting + 2,2,2 + + + Tunnel @@ -1606,21 +1699,49 @@ PCLK - + Splitter Input Splitting - 8 + 2,2,2 Output Splitting - 2,2,2,1,1 + 6 + + + + + + Multiplexer + + + Selector Bits + 2 + + + Bits + 6 + + + + + + Tunnel + + + rotation + + + + NetName + GRMODE - + Const @@ -1631,10 +1752,35 @@ Bits - 8 + 6 + + + + + + Probe + + + intFormat + dec + + + + + + Probe + + + intFormat + dec - + + + + atk16_vga_sync.dig + + @@ -1663,20 +1809,12 @@ - - - - - - - - - - + + - - + + @@ -1699,120 +1837,420 @@ - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + @@ -1854,54 +2292,18 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - @@ -1915,36 +2317,16 @@ - - - - - - - - - - - - - - - - - - - - - - + + - - + + @@ -1974,22 +2356,6 @@ - - - - - - - - - - - - - - - - @@ -2019,21 +2385,13 @@ - - - - - - + + - - - - @@ -2075,40 +2433,12 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + @@ -2119,16 +2449,20 @@ - - + + - - + + - - + + + + + + @@ -2154,26 +2488,6 @@ - - - - - - - - - - - - - - - - - - - - @@ -2194,110 +2508,30 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - @@ -2307,8 +2541,8 @@ - - + + @@ -2319,16 +2553,12 @@ - - - - - - + + - - + + @@ -2338,6 +2568,18 @@ + + + + + + + + + + + + @@ -2374,6 +2616,14 @@ + + + + + + + + @@ -2446,18 +2696,30 @@ - - - - + + + + + + + + + + + + + + + + @@ -2482,6 +2744,10 @@ + + + + \ No newline at end of file diff --git a/digital/atk16_ppu.dig b/digital/atk16_ppu.dig index c2cbdba..e6e7608 100644 --- a/digital/atk16_ppu.dig +++ b/digital/atk16_ppu.dig @@ -14,187 +14,6 @@ - - Comparator - - - Bits - 10 - - - - - - Const - - - Value - 798 - - - Bits - 10 - - - intFormat - dec - - - - - - Counter - - - Bits - 10 - - - - - - VDD - - - rotation - - - - - - - Tunnel - - - rotation - - - - NetName - PCLK - - - - - - Comparator - - - Bits - 10 - - - - - - Const - - - Value - 113 - - - Bits - 10 - - - intFormat - dec - - - - - - Comparator - - - Bits - 10 - - - - - - Const - - - Value - 16 - - - Bits - 10 - - - intFormat - dec - - - - - - NAnd - - - - - Tunnel - - - NetName - HSYNC - - - - - - In - - - Description - Pixel clock - - - Label - PCLK - - - - - - Tunnel - - - NetName - PCLK - - - - - - In - - - Description - CPU clock - - - Label - CLK - - - - - - Tunnel - - - NetName - CLK - - - - RAMDualPort @@ -282,28 +101,18 @@ sprite mem, starting from 0x0800 Description - Data bus + MMI/O selector Label - DBUS + MMIO_S Bits - 16 - - - - - - Tunnel - - - NetName - DBUS + 13 - + Tunnel @@ -333,24 +142,6 @@ sprite mem, starting from 0x0800 - - In - - - Description - MMI/O selector - - - Label - MMIO_S - - - Bits - 13 - - - - Splitter @@ -402,341 +193,108 @@ sprite mem, starting from 0x0800 - Const + RAMDualPort - Value - 160 + AddrBits + 9 - Bits - 10 + Label + SCAN BUFFER - intFormat - dec + Bits + 4 - + - Sub + Tunnel - Bits - 10 + rotation + - - - - - Ground - - - - - Comparator - - Bits - 10 + NetName + X - + - Const + Splitter - Value - 523 + mirror + true - Bits - 10 + Input Splitting + 4 - intFormat - dec + Output Splitting + 1*4 - + - Counter - - - Bits - 10 - - - + atk16_ppu_palette.dig + + - VDD + Splitter - rotation - + Input Splitting + 1,1 - - - - - Comparator - - Bits - 10 + Output Splitting + 2 - + - Const + Splitter - Value - 10 - - - Bits - 10 - - - intFormat - dec + Input Splitting + 1,1 - - - - - Comparator - - Bits - 10 + Output Splitting + 2 - + - Const + Splitter - Value - 13 - - - Bits - 10 + Input Splitting + 1,1 - intFormat - dec + Output Splitting + 2 - + Tunnel NetName - VSYNC - - - - - - NAnd - - - - - Const - - - Value - 45 - - - Bits - 10 - - - intFormat - dec - - - - - - Sub - - - Bits - 10 - - - - - - Ground - - - - - Splitter - - - Input Splitting - 10 - - - Output Splitting - 1,9 - - - - - - Splitter - - - Input Splitting - 10 - - - Output Splitting - 1,9 - - - - - - Text - - - Description - Div 2 - - - - - - Text - - - Description - Div 2 - - - - - - RAMDualPort - - - AddrBits - 9 - - - Label - SCAN BUFFER - - - Bits - 4 - - - - - - Tunnel - - - rotation - - - - NetName - X - - - - - - Splitter - - - mirror - true - - - Input Splitting - 4 - - - Output Splitting - 1*4 - - - - - - atk16_ppu_palette.dig - - - - - Splitter - - - Input Splitting - 1,1 - - - Output Splitting - 2 - - - - - - Splitter - - - Input Splitting - 1,1 - - - Output Splitting - 2 - - - - - - Splitter - - - Input Splitting - 1,1 - - - Output Splitting - 2 - - - - - - Tunnel - - - NetName - PR + PR @@ -852,26 +410,6 @@ sprite mem, starting from 0x0800 - - Tunnel - - - NetName - X - - - - - - Tunnel - - - NetName - Y - - - - Text @@ -945,28 +483,32 @@ sprite mem, starting from 0x0800 - Out + Tunnel - Label - HSYNC + rotation + + + + NetName + PB - + - Out + Tunnel - Label - VSYNC + rotation + - Bits - 2 + NetName + PR - + Tunnel @@ -977,104 +519,172 @@ sprite mem, starting from 0x0800 NetName - PB + PG - + - Tunnel + In - rotation - + Description + Pixel clock - NetName - PR + Label + PCLK - + Tunnel - rotation - + NetName + PCLK + + + + + In + - NetName - PG + Description + CPU clock + + + Label + CLK - + Tunnel - rotation - + NetName + CLK + + + + + Tunnel + NetName - HSYNC + DBUS + + + + + + In + + + Description + Data bus + + + Label + DBUS + + + Bits + 16 + + + + + + In + + + Description + X pixel + + + Label + X + + + Bits + 9 - + Tunnel - rotation - + NetName + X + + + + + + In + + + Description + Y pixel + + Label + Y + + + Bits + 8 + + + + + + Tunnel + NetName - VSYNC + Y - + - - - - - - + + - - - - - - + + - - + + - - + + - - + + - - + + - - + + @@ -1084,6 +694,10 @@ sprite mem, starting from 0x0800 + + + + @@ -1100,34 +714,10 @@ sprite mem, starting from 0x0800 - - - - - - - - - - - - - - - - - - - - - - - - @@ -1137,160 +727,8 @@ sprite mem, starting from 0x0800 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -1304,14 +742,6 @@ sprite mem, starting from 0x0800 - - - - - - - - @@ -1325,36 +755,24 @@ sprite mem, starting from 0x0800 - - - - - - - - - - - - - - + + - - + + - - + + - - + + - - + + @@ -1365,16 +783,20 @@ sprite mem, starting from 0x0800 - - + + - - + + - - + + + + + + @@ -1384,70 +806,10 @@ sprite mem, starting from 0x0800 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/digital/atk16_tpu.dig b/digital/atk16_tpu.dig new file mode 100644 index 0000000..684996b --- /dev/null +++ b/digital/atk16_tpu.dig @@ -0,0 +1,777 @@ + + + 2 + + + romContent + + + + + + Width + 6 + + + + + Out + + + Label + PR + + + Bits + 2 + + + + + + Out + + + Label + PG + + + Bits + 2 + + + + + + Out + + + Label + PB + + + Bits + 2 + + + + + + In + + + Description + MMI/O selector + + + Label + MMIO_S + + + Bits + 13 + + + + + + In + + + Label + MMIO_IE + + + + + + In + + + Label + MMIO_OE + + + + + + Tunnel + + + NetName + MMIO_IE + + + + + + Tunnel + + + NetName + MMIO_OE + + + + + + Tunnel + + + NetName + MMIO_S + + + + + + In + + + Description + Pixel clock + + + Label + PCLK + + + + + + Tunnel + + + NetName + PCLK + + + + + + In + + + Description + CPU clock + + + Label + CLK + + + + + + Tunnel + + + NetName + CLK + + + + + + In + + + Description + Data bus + + + Label + DBUS + + + Bits + 16 + + + + + + Tunnel + + + NetName + DBUS + + + + + + In + + + Description + X pixel + + + Label + X + + + Bits + 9 + + + + + + Tunnel + + + NetName + X + + + + + + In + + + Description + Y pixel + + + Label + Y + + + Bits + 8 + + + + + + ROM + + + AddrBits + 11 + + + Label + CHARMEM + + + Bits + 8 + + + + + + Splitter + + + Input Splitting + 8,3 + + + Output Splitting + 11 + + + + + + VDD + + + rotation + + + + + + + RAMDualPort + + + AddrBits + 11 + + + Label + TEXTMEM + + + Bits + 8 + + + + + + Tunnel + + + rotation + + + + NetName + Y + + + + + + Splitter + + + Input Splitting + 8 + + + Output Splitting + 5,3 + + + + + + Tunnel + + + NetName + CY + + + + + + Tunnel + + + NetName + TY + + + + + + Tunnel + + + rotation + + + + NetName + X + + + + + + Splitter + + + Input Splitting + 9 + + + Output Splitting + 6,3 + + + + + + Tunnel + + + NetName + TX + + + + + + Tunnel + + + NetName + CX + + + + + + Splitter + + + Input Splitting + 5,6 + + + Output Splitting + 11 + + + + + + Tunnel + + + rotation + + + + NetName + TY + + + + + + Tunnel + + + rotation + + + + NetName + TX + + + + + + Tunnel + + + rotation + + + + NetName + CCOLOR + + + + + + Splitter + + + Input Splitting + 1,1 + + + Output Splitting + 2 + + + + + + BitSelector + + + Selector Bits + 3 + + + + + + Tunnel + + + NetName + CX + + + + + + Tunnel + + + NetName + CCOLOR + + + + + + Ground + + + rotation + + + + Bits + 8 + + + + + + Ground + + + rotation + + + + + + + Tunnel + + + rotation + + + + NetName + CLK + + + + + + VDD + + + rotation + + + + + + + Tunnel + + + NetName + CHAR_S + + + + + + Tunnel + + + rotation + + + + NetName + CY + + + + + + Tunnel + + + rotation + + + + NetName + CHAR_S + + + + + + Tunnel + + + NetName + Y + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/digital/atk16_vga_sync.dig b/digital/atk16_vga_sync.dig new file mode 100644 index 0000000..7d42dea --- /dev/null +++ b/digital/atk16_vga_sync.dig @@ -0,0 +1,999 @@ + + + 2 + + + romContent + + + + + + Width + 7 + + + + + Comparator + + + Bits + 10 + + + + + + Const + + + Value + 798 + + + Bits + 10 + + + intFormat + dec + + + + + + Counter + + + Bits + 10 + + + + + + VDD + + + rotation + + + + + + + Comparator + + + Bits + 10 + + + + + + Const + + + Value + 113 + + + Bits + 10 + + + intFormat + dec + + + + + + Comparator + + + Bits + 10 + + + + + + Const + + + Value + 16 + + + Bits + 10 + + + intFormat + dec + + + + + + NAnd + + + + + Tunnel + + + NetName + HSYNC + + + + + + Const + + + Value + 160 + + + Bits + 10 + + + intFormat + dec + + + + + + Sub + + + Bits + 10 + + + + + + Ground + + + + + Comparator + + + Bits + 10 + + + + + + Const + + + Value + 523 + + + Bits + 10 + + + intFormat + dec + + + + + + Counter + + + Bits + 10 + + + + + + VDD + + + rotation + + + + + + + Comparator + + + Bits + 10 + + + + + + Const + + + Value + 10 + + + Bits + 10 + + + intFormat + dec + + + + + + Comparator + + + Bits + 10 + + + + + + Const + + + Value + 13 + + + Bits + 10 + + + intFormat + dec + + + + + + Tunnel + + + NetName + VSYNC + + + + + + NAnd + + + + + Const + + + Value + 45 + + + Bits + 10 + + + intFormat + dec + + + + + + Sub + + + Bits + 10 + + + + + + Ground + + + + + Splitter + + + Input Splitting + 10 + + + Output Splitting + 1,8,1 + + + + + + Splitter + + + Input Splitting + 10 + + + Output Splitting + 1,9 + + + + + + Text + + + Description + Div 2 + + + + + + Text + + + Description + Div 2 + + + + + + In + + + Label + PCLK + + + + + + Probe + + + intFormat + dec + + + + + + Probe + + + intFormat + dec + + + + + + Out + + + Label + HSYNC + + + + + + Out + + + Label + VSYNC + + + + + + Tunnel + + + rotation + + + + NetName + HSYNC + + + + + + Tunnel + + + rotation + + + + NetName + VSYNC + + + + + + Out + + + Label + X + + + Bits + 9 + + + intFormat + dec + + + + + + Tunnel + + + rotation + + + + NetName + Y + + + + + + Out + + + Label + Y + + + Bits + 8 + + + intFormat + dec + + + + + + Tunnel + + + rotation + + + + NetName + X + + + + + + Comparator + + + Bits + 9 + + + + + + Const + + + Value + 319 + + + Bits + 9 + + + intFormat + dec + + + + + + Multiplexer + + + Bits + 9 + + + + + + Const + + + Value + 511 + + + Bits + 9 + + + intFormat + dec + + + + + + Tunnel + + + NetName + X + + + + + + Const + + + Value + 239 + + + Bits + 8 + + + intFormat + dec + + + + + + Multiplexer + + + Bits + 8 + + + + + + Const + + + Value + 255 + + + Bits + 8 + + + intFormat + dec + + + + + + Tunnel + + + NetName + Y + + + + + + Comparator + + + Bits + 8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file -- cgit v1.3