RGB display in Oberon RISC5
I have made an updated version of VID.v with support for an RGB video buffer. The video buffer is now 4x larger (about 40% of the total 1 MB RAM) and video refresh will use up about 40% of the memory bandwidth. See http://saanlima.com/forum/viewtopic.php?f=14&p=1786#p1783 for Verilog code and bit files for Pepino_LX9 and Pepino_LX25. Magnus
Hi Magnus Thx for preparing VID.v As the original ProjectOberon has only 1M of memory, it's a pity to waste 25% of your 4 bit color layout. Basically, we could use 16 colors instead of 8. Instead of mapping the bits directly to RGB, I would rather use the 4 bits as index into a color palette. Display.Mod has to be adapted accordingly. Jörg
Am 18.04.2016 um 21:59 schrieb Magnus Karlsson <magnus@saanlima.com>:
I have made an updated version of VID.v with support for an RGB video buffer.
The video buffer is now 4x larger (about 40% of the total 1 MB RAM) and video refresh will use up about 40% of the memory bandwidth.
See http://saanlima.com/forum/viewtopic.php?f=14&p=1786#p1783 for Verilog code and bit files for Pepino_LX9 and Pepino_LX25.
Magnus -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Hi Joerg, Using palettes would utilise memory while offering more colours. This would also possibly bring it close to Ceres-2. The two procedures bellow taken from Display.Def of Ceres-2 project, do they imply the use of a colour map (palette)? PROCEDURE SetColor*(col, red, green, blue: INTEGER); PROCEDURE GetColor*(col: INTEGER; VAR red, green, blue: INTEGER);
From H/W point of view, coudl it be more difficult to implement in Verilog?
Tomas ---------- Původní zpráva ---------- Od: Jörg Straube <joerg.straube@iaeth.ch> Komu: ETH Oberon and related systems <oberon@lists.inf.ethz.ch> Datum: 20. 4. 2016 8:30:11 Předmět: Re: [Oberon] RGB display in Oberon RISC5 "Hi Magnus Thx for preparing VID.v As the original ProjectOberon has only 1M of memory, it's a pity to waste 25% of your 4 bit color layout. Basically, we could use 16 colors instead of 8. Instead of mapping the bits directly to RGB, I would rather use the 4 bits as index into a color palette. Display.Mod has to be adapted accordingly. Jörg
Am 18.04.2016 um 21:59 schrieb Magnus Karlsson <magnus@saanlima.com>:
I have made an updated version of VID.v with support for an RGB video buffer.
The video buffer is now 4x larger (about 40% of the total 1 MB RAM) and video refresh will use up about 40% of the memory bandwidth.
See http://saanlima.com/forum/viewtopic.php?f=14&p=1786#p1783 for Verilog code and bit files for Pepino_LX9 and Pepino_LX25.
Magnus -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon"
It would be trivial to modify the code to add a fixed 16-entry lookup table for the output color based on the 4-bit pixel value (just a case statement). However, due to differences in the native color capabilities of the different hardware platforms capable of running Oberon RISC5 (Digilent Spartan3 board has 3-bit color, OberonStation has 6-bit color, Pepino has 8-bit color and Pipistrello has 24-bit color) the implementation of the lookup table table would be slightly different. The 3-bit color output that I did is supported by all platforms. Also, if you want the lookup table to be dynamic instead of fixed (i.e. CPU read/write access to the table) then that would add a bit of extra complexity but still very doable. BTW, my initial goal of the RGB version of VID.v was to implement a RGB video system with as few changes as possible, mostly for educational purpose since the question was asked in this mailing list as to how such modifications could be done. Making the pixel size a power-of-2 value minimizes both the hardware changes and software changes at the expense of wasted memory space. Magnus On 4/19/2016 12:12 AM, Jörg Straube wrote:
Hi Magnus
Thx for preparing VID.v As the original ProjectOberon has only 1M of memory, it's a pity to waste 25% of your 4 bit color layout. Basically, we could use 16 colors instead of 8. Instead of mapping the bits directly to RGB, I would rather use the 4 bits as index into a color palette.
Display.Mod has to be adapted accordingly.
Jörg
Am 18.04.2016 um 21:59 schrieb Magnus Karlsson <magnus@saanlima.com>:
I have made an updated version of VID.v with support for an RGB video buffer.
The video buffer is now 4x larger (about 40% of the total 1 MB RAM) and video refresh will use up about 40% of the memory bandwidth.
See http://saanlima.com/forum/viewtopic.php?f=14&p=1786#p1783 for Verilog code and bit files for Pepino_LX9 and Pepino_LX25.
Magnus -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Hi Magnus, That is all perfect, we now have 3 bit VGA, and also 4 bit VGA with colour map support. That is plenty to play around with colours. I am just thinking, if there could be yet another approach? As in PO.System chapter 4.5. p52, it describes: ".. it is assumed, that all cells hosting B/W monitors are allocated to the left of all cells hosting colour monitors". In the picture it shows 1st, 2nd and 3rd cell. With the 3rd keeping the colour attributes. Many thanks so far. -- Tomas Kral <thomas.kral@email.cz> On Wed, 2016-04-20 at 09:03 -0700, Magnus Karlsson wrote:
It would be trivial to modify the code to add a fixed 16-entry lookup table for the output color based on the 4-bit pixel value (just a case statement). However, due to differences in the native color capabilities of the different hardware platforms capable of running Oberon RISC5 (Digilent Spartan3 board has 3-bit color, OberonStation has 6-bit color, Pepino has 8-bit color and Pipistrello has 24-bit color) the implementation of the lookup table table would be slightly different. The 3-bit color output that I did is supported by all platforms.
Also, if you want the lookup table to be dynamic instead of fixed (i.e. CPU read/write access to the table) then that would add a bit of extra complexity but still very doable.
BTW, my initial goal of the RGB version of VID.v was to implement a RGB video system with as few changes as possible, mostly for educational purpose since the question was asked in this mailing list as to how such modifications could be done. Making the pixel size a power-of-2 value minimizes both the hardware changes and software changes at the expense of wasted memory space.
Magnus
On 4/19/2016 12:12 AM, Jörg Straube wrote:
Hi Magnus
Thx for preparing VID.v As the original ProjectOberon has only 1M of memory, it's a pity to waste 25% of your 4 bit color layout. Basically, we could use 16 colors instead of 8. Instead of mapping the bits directly to RGB, I would rather use the 4 bits as index into a color palette.
Display.Mod has to be adapted accordingly.
Jörg
Am 18.04.2016 um 21:59 schrieb Magnus Karlsson <magnus@saanlima.com>:
I have made an updated version of VID.v with support for an RGB video buffer.
The video buffer is now 4x larger (about 40% of the total 1 MB RAM) and video refresh will use up about 40% of the memory bandwidth.
See http://saanlima.com/forum/viewtopic.php?f=14&p=1786#p1783 for Verilog code and bit files for Pepino_LX9 and Pepino_LX25.
Magnus -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Hi Joerg, Using palettes would utilise memory better while offering more colours. This would also possibly bring it close to Ceres-2. The two procedures bellow taken from Display.Def of Ceres-2 project, do they imply the use of a colour map (palette)? PROCEDURE SetColor*(col, red, green, blue: INTEGER); PROCEDURE GetColor*(col: INTEGER; VAR red, green, blue: INTEGER); From H/W point of view, could it be more difficult to implement in Verilog? Tomas -- Tomas Kral <thomas.kral@email.cz> On Tue, 2016-04-19 at 09:12 +0200, Jörg Straube wrote:
Hi Magnus
Thx for preparing VID.v As the original ProjectOberon has only 1M of memory, it's a pity to waste 25% of your 4 bit color layout. Basically, we could use 16 colors instead of 8. Instead of mapping the bits directly to RGB, I would rather use the 4 bits as index into a color palette.
Display.Mod has to be adapted accordingly.
Jörg
Am 18.04.2016 um 21:59 schrieb Magnus Karlsson <magnus@saanlima.com>:
I have made an updated version of VID.v with support for an RGB video buffer.
The video buffer is now 4x larger (about 40% of the total 1 MB RAM) and video refresh will use up about 40% of the memory bandwidth.
See http://saanlima.com/forum/viewtopic.php?f=14&p=1786#p1783 for Verilog code and bit files for Pepino_LX9 and Pepino_LX25.
Magnus -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
We have to distinguish between the display HW capabilities and the SW API. The API SetColor and GetColor imply only that the SW is using a color map. Whether the display HW uses direct color or a color map is independent of this API. Even with this API it's up to the interaction of Display.Mod and VID.v (or generally the display HW) whether we store the color index in the framebuffer or put direct colors (extracted from the SW color map) in the framebuffer. Jörg
Am 21.04.2016 um 08:55 schrieb Tomas Kral <thomas.kral@email.cz>:
Hi Joerg,
Using palettes would utilise memory better while offering more colours. This would also possibly bring it close to Ceres-2. The two procedures bellow taken from Display.Def of Ceres-2 project, do they imply the use of a colour map (palette)?
PROCEDURE SetColor*(col, red, green, blue: INTEGER); PROCEDURE GetColor*(col: INTEGER; VAR red, green, blue: INTEGER);
From H/W point of view, could it be more difficult to implement in Verilog?
Tomas -- Tomas Kral <thomas.kral@email.cz>
On Tue, 2016-04-19 at 09:12 +0200, Jörg Straube wrote: Hi Magnus
Thx for preparing VID.v As the original ProjectOberon has only 1M of memory, it's a pity to waste 25% of your 4 bit color layout. Basically, we could use 16 colors instead of 8. Instead of mapping the bits directly to RGB, I would rather use the 4 bits as index into a color palette.
Display.Mod has to be adapted accordingly.
Jörg
Am 18.04.2016 um 21:59 schrieb Magnus Karlsson <magnus@saanlima.com>:
I have made an updated version of VID.v with support for an RGB video buffer.
The video buffer is now 4x larger (about 40% of the total 1 MB RAM) and video refresh will use up about 40% of the memory bandwidth.
See http://saanlima.com/forum/viewtopic.php?f=14&p=1786#p1783 for Verilog code and bit files for Pepino_LX9 and Pepino_LX25.
Magnus -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
I have posted a version of VID.v that has 4-bit pixels and a 16-entry color lookup table. For more info see http://saanlima.com/forum/viewtopic.php?f=14&t=1296&start=10#p1793 Magnus On 4/20/2016 11:55 PM, Tomas Kral wrote:
Hi Joerg,
Using palettes would utilise memory better while offering more colours. This would also possibly bring it close to Ceres-2. The two procedures bellow taken from Display.Def of Ceres-2 project, do they imply the use of a colour map (palette)?
PROCEDURE SetColor*(col, red, green, blue: INTEGER); PROCEDURE GetColor*(col: INTEGER; VAR red, green, blue: INTEGER);
From H/W point of view, could it be more difficult to implement in Verilog?
Tomas
Magnus, That is great, now we can see Oberon is capable of supporting more colours, not sure how they are coded R G B colour 0 0 0 black 0 0 1 ? 0 1 0 ? 0 1 1 ? 1 0 0 ? 1 0 1 ? 1 1 0 ? 1 1 1 white There are four bits used as you say, bit 3: not used bit 2 : R bit 1 : G bit 0 : B Many thanks Tomas ---------- Původní zpráva ---------- Od: Magnus Karlsson Komu: oberon@lists.inf.ethz.ch Datum: 18. 4. 2016 22:29:54 Předmět: [Oberon] RGB display in Oberon RISC5 I have made an updated version of VID.v with support for an RGB video buffer. The video buffer is now 4x larger (about 40% of the total 1 MB RAM) and video refresh will use up about 40% of the memory bandwidth. See http://saanlima.com/forum/viewtopic.php?f=14&p=1786#p1783 for Verilog code and bit files for Pepino_LX9 and Pepino_LX25. Magnus -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
https://en.wikipedia.org/wiki/Additive_color R G B colour 0 0 0 black 0 0 1 blue 0 1 0 green 0 1 1 cyan 1 0 0 red 1 0 1 magenta 1 1 0 yellow 1 1 1 white Magnus On 4/19/2016 1:06 PM, thomas.kral@email.cz wrote:
Magnus,
That is great, now we can see Oberon is capable of supporting more colours, not sure how they are coded
R G B colour 0 0 0 black 0 0 1 ? 0 1 0 ? 0 1 1 ? 1 0 0 ? 1 0 1 ? 1 1 0 ? 1 1 1 white
There are four bits used as you say,
bit 3: not used bit 2 : R bit 1 : G bit 0 : B
Many thanks Tomas
---------- Původní zpráva ---------- Od: Magnus Karlsson Komu: oberon@lists.inf.ethz.ch Datum: 18. 4. 2016 22:29:54 Předmět: [Oberon] RGB display in Oberon RISC5
I have made an updated version of VID.v with support for an RGB video buffer.
The video buffer is now 4x larger (about 40% of the total 1 MB RAM) and video refresh will use up about 40% of the memory bandwidth.
See http://saanlima.com/forum/viewtopic.php?f=14&p=1786#p1783 for Verilog code and bit files for Pepino_LX9 and Pepino_LX25.
Magnus -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Since there are readers here who have looked down into the details of RGB, I'll mention that a had a bad problem with a <1920 ? 1280> LED display, but only with my prefered linux installation, and only after it had gone into <sleep mode, from non-usage>. I wasted a lot of time/effort to try to understand to cause, which seemed to be related to <gamma ?>. Never found the cause, and just found a hack to prevent sleep mode. There's an ETHO Panel which has a <color circle>, at the lower RHS corner, which was MOST usefull. It showed how the R,G,B where <bleeding> into each other at the. <lower levels> which gave grey-to-white, for much of the circle, instead of only white in the middle - where the R,G,B have the same magnitude. Primary-color text was OK; but pdf and ETHO became all fuzzy. My point is that <little ETHO> provided a tool which I couldn't find else where. == Chris Glur. On 4/19/16, Magnus Karlsson <magnus@saanlima.com> wrote:
https://en.wikipedia.org/wiki/Additive_color
R G B colour 0 0 0 black 0 0 1 blue 0 1 0 green 0 1 1 cyan 1 0 0 red 1 0 1 magenta 1 1 0 yellow 1 1 1 white
Magnus
On 4/19/2016 1:06 PM, thomas.kral@email.cz wrote:
Magnus,
That is great, now we can see Oberon is capable of supporting more colours, not sure how they are coded
R G B colour 0 0 0 black 0 0 1 ? 0 1 0 ? 0 1 1 ? 1 0 0 ? 1 0 1 ? 1 1 0 ? 1 1 1 white
There are four bits used as you say,
bit 3: not used bit 2 : R bit 1 : G bit 0 : B
Many thanks Tomas
---------- Původní zpráva ---------- Od: Magnus Karlsson Komu: oberon@lists.inf.ethz.ch Datum: 18. 4. 2016 22:29:54 Předmět: [Oberon] RGB display in Oberon RISC5
I have made an updated version of VID.v with support for an RGB video buffer.
The video buffer is now 4x larger (about 40% of the total 1 MB RAM) and video refresh will use up about 40% of the memory bandwidth.
See http://saanlima.com/forum/viewtopic.php?f=14&p=1786#p1783 for Verilog code and bit files for Pepino_LX9 and Pepino_LX25.
Magnus -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
participants (5)
-
eas lab -
Jörg Straube -
Magnus Karlsson -
thomas.kral@email.cz -
Tomas Kral