OCM-PLD Pack 2.2

by KdL on 16-03-2008, 13:29
Topic: MSX Revival
Languages:

A new release of KdL/HRA's OCM-PLD Pack is released. New in this version:

  • Added all DIP-SW status LED
  • Mixed Print Screen and DIP-SW1&2 status LED
  • Mixed SD/MMC access lamp to DIP-SW8 status LED
  • Modified VGA full amplitude mode into new VGA 60Hz forced mode without affecting VDP R#9: sync or other graphic problems are possible when PAL mode is selected with this combination (for test purpose only)
  • New CMT switch is Scroll Lock key (OFF by default)
  • Scroll Lock status LED is now CMT status LED
  • Power status LED is now Pause status LED (OFF when Paused)
  • Num Lock status LED is now Kana (F7) status LED
  • Restored original VDP model: screen 0 blink problem is fixed now!
  • Updated DIP-SW User Manual [src_upgrade\doc\dip_sw_v2_2.htm]

Relevant link: OCM-PLD Pack

Comments (99)

By Grauw

Ascended (10820)

Grauw's picture

16-03-2008, 14:21

Great work!

Maybe KdL/HRA can create a project on Sourceforge or something for this?

By KdL

Paragon (1485)

KdL's picture

16-03-2008, 15:44

By Grauw

Ascended (10820)

Grauw's picture

16-03-2008, 18:22

Cool! Smile

By caro

Hero (513)

caro's picture

17-03-2008, 13:42

KdL> Restored original VDP model: screen 0 blink problem is fixed now!
I have overlooked all versions of files VDP, but has not found
in one of them of corrections concerning problem BLINK.
But I have found the reason of this problem - mistake in a file text12.vhd
The fixed version can be taken here: www.caro.k66.ru/files/text12.zip

By KdL

Paragon (1485)

KdL's picture

17-03-2008, 19:41

I will test it: do you have a disktest.dsk to compare with original version?

pls, send an email to gnogni74(at)gmail.com
when you have a new fix to improve PLD! Running Naked in a Field of FlowersRunning Naked in a Field of FlowersRunning Naked in a Field of Flowers

By KdL

Paragon (1485)

KdL's picture

17-03-2008, 20:00

Hi Caro, you wrote:

By caro on March 16 2008, 11:51
Edwin wrote:
---
I tried to build the so called "Unofficial Release", but it won't fit in the FPGA. The thing takes up 18k LEs.
---
in the file scc_ram.vhd
type ramdb is array( 0 to 255 ) of std_logic_vector( 7 downto 0 );
change to
type ramdb is array( 7 downto 0 ) of std_logic_vector( 7 downto 0 );
and build to OK.

but this correction, is a valid correction???

By KdL

Paragon (1485)

KdL's picture

18-03-2008, 04:04


KdL> Restored original VDP model: screen 0 blink problem is fixed now!
I have overlooked all versions of files VDP, but has not found
in one of them of corrections concerning problem BLINK.
But I have found the reason of this problem - mistake in a file text12.vhd
The fixed version can be taken here: www.caro.k66.ru/files/text12.zip

Yes, my v2.2 use original 'text12.vhd' again but it work fine
because I've resolved BLINK problem modifying the Fitter Settings
optimizations of Quatus II Web Edition.

For me, the original model was not optimized correctly.
Pls, write me your impressions :-? thx
_________________________________________
for e.g. TED Text Editor work very fine with v2.2 !!

By caro

Hero (513)

caro's picture

18-03-2008, 12:30

KdL write: "but this correction, is a valid correction???"

No this correction, is not a valid correction. I was mistaken.

KdL write: "do you have a disktest.dsk to compare with original version?"

No.

By caro

Hero (513)

caro's picture

18-03-2008, 12:59

By caro

Hero (513)

caro's picture

18-03-2008, 14:32

KdL write: "Yes, my v2.2 use original 'text12.vhd' again but it work fine
because I've resolved BLINK problem modifying the Fitter Settings
optimizations of Quatus II Web Edition."

I do'nt think, that it can tesolved problem correctly.
Look original file text12.vhd
Pay attention to a signal BlinkPeriodCount, which determines time Blink ON and Blink OFF.
It only is cleared, but it is not considered and counted.

By KdL

Paragon (1485)

KdL's picture

18-03-2008, 16:06

Hra have modify his vdp.vhd file after my Email with various tests to do Smile

caro> Ok, thx for fast reply!! Wink

By KdL

Paragon (1485)

KdL's picture

19-03-2008, 00:06

in this release Hra have:

- GRAPHIC123M.VHD is modifing, but continue...
- There is a dis-assembly result of IPLROM in "src/peripheral/test/iplrom.asm".

By caro

Hero (513)

caro's picture

19-03-2008, 08:47

I have corrected a file scc_ram.vhd and now it is normally compiled in Quartus II v.7.2 SP2
Has sent it on e-mail HAR, and I wait for his comment.

By caro

Hero (513)

caro's picture

19-03-2008, 11:12

I have received the answer from HRA:
" Your scc_ram.vhd was seen.
I think that it is a very good correction!! "
The fixed file can be taken here: www.caro.k66.ru/files/scc_ram.zip

By caro

Hero (513)

caro's picture

20-03-2008, 04:12

By caro

Hero (513)

caro's picture

20-03-2008, 14:03

New updated PLD from HRA:
http://www5d.biglobe.ne.jp/~hra/note/onechipmsx/files/emsx_top_20080320.zip
For what to save 370 LE, hara has removed Debug Window.

By KdL

Paragon (1485)

KdL's picture

21-03-2008, 07:37

to caro> Very great job!! thx

---

OCM-PLD v2.2a is out!
http://www.webalice.it/gnogni/

v2.2a [2008.03.21] [KdL's Updates!]

- F12 is Clock Inverter Toggle that swap DIP-SW6 status temporary.
- Shift+F12 is "VDP Debug Mode" for now.
- Updated DIP-SW User Manual [src_upgrade\doc\dipsw_v2x.htm].

This is a very stable version.

For new fixes (by hra, caro, etc.): pls wait for OCM-PLD Pack v2.3 later!

Best Regards
KdL

By ant0niutti

Master (159)

ant0niutti's picture

21-03-2008, 11:45

By caro

Hero (513)

caro's picture

23-03-2008, 11:45

By HRA!

Champion (289)

HRA!'s picture

27-03-2008, 15:25

Hello.

I am concentrating on the shape-up of VDP now Wink

By jltursan

Prophet (2619)

jltursan's picture

27-03-2008, 22:38

Great work HRA! Smile, is there any plans to upgrade the VDP core to a 9958 one?, or at least any real possibility?

By HRA!

Champion (289)

HRA!'s picture

28-03-2008, 13:48

My target is "Compatible v9958" and "Some new features. "

Some preparations are necessary to achieve it.

1. Empty capacity of FPGA is expanded.
2. The crosswiring circuit is untied.

Time is necessary for this work.
Please wait patiently LOL!

By sd_snatcher

Prophet (3675)

sd_snatcher's picture

29-03-2008, 02:04

Hi HRA!

Congratulations for your improvements! They are very welcome.

Is it possible to have any of this features?

* turbo-blitter: This would allow to speed up the V99x8 hardware commands, like COPY and LINE. Many games (Xaks, Illusion City, Herzog, YS etc) could run a lot faster or smoother with this
* More than 128KB of VRAM

By HRA!

Champion (289)

HRA!'s picture

29-03-2008, 06:28

A new bug was found yesterday.

Bit 6 of S#0 is always 0.
It is a flag that notifies the disappearance of sprite.
In ALESTE2 etc. , it influences the sprite display and the processing speed.

The signal already exists.
However, If it is used, illegal timing is generated.
(The display falls into disorder. )

It is thinking about measures now.
-------

* turbo-blitter
Hmm, I think that hope is thin.
However, I will think a little.

* More than 128KB of VRAM
This thinks that it can do.

By NYYRIKKI

Enlighted (6091)

NYYRIKKI's picture

29-03-2008, 12:49

I think this could be better place to ask...

Would it be hard or "expencive" to assign RAM from 06C0000-06DFFFF (or other address) to slots 0-1 and 0-3 as ROM? I find it quite weird that there is 128KB KANJI-ROM, but KANJI-BIOS is completely missing. Also adding something like X-BASIC could be then possible... Smile2

By Edwin

Paragon (1182)

Edwin's picture

29-03-2008, 14:04

HRA> Thanks for joining us and giving some first hand descriptions of what is going on with the 1chipMSX development.

NYYRIKKI> I don't think the problem is with the slot layout and memory. The functionality for this is already there, obviously. The problem is more like the storage of the ROM images. The current roms already take up half of the flash rom and there is not much space left for more. To do this you would have to rely on the SD card for solely (not the most robust solution) or implement a partial load from SD. This would be the preferable solution. In fact, it could be used to load all non-critical roms.

By HRA!

Champion (289)

HRA!'s picture

29-03-2008, 14:22

KANJI-ROM is ROM with the Kanji character font.
KANJI-ROM can be used even if there is no KANJI-BIOS.
For instance, it is possible to use it by the PUT KANJI instruction in BASIC.
"PUT KANJI” supports 1chipMSX.

sample program.....

10 SCREEN 5:X=0:Y=0:I=&H2121
20 PUT KANJI(X,Y),I
30 X=X+16:IF X=256 THEN X=0 ELSE 50
40 Y=Y+16:IF Y=208 THEN A$=INPUT$(1):CLS:Y=0
50 I=I+1
60 IF(I AND 255 OR 128)=128 THEN I=I+160
70 IF I=&H2820 THEN I=&H3020
80 IF I<&H4F53 THEN 20
90 END

KANJI-BIOS(=MSX JE??) is an additional function to input the character string of
Shift-JIS code etc.
MSX-JE is not included in "1chipMSX".

By HRA!

Champion (289)

HRA!'s picture

29-03-2008, 14:25

Oh!

> 10 SCREEN 5:X=0:Y=0:I=&H2121

10 SCREEN5: x=0: y=0: i=&H2121

By HRA!

Champion (289)

HRA!'s picture

29-03-2008, 14:56

New update PLD
http://www5d.biglobe.ne.jp/~hra/note/onechipmsx/files/emsx_top_20080329.zip

[Bug Fix] Support VDP S#0 [5S]bit

By NYYRIKKI

Enlighted (6091)

NYYRIKKI's picture

29-03-2008, 16:57

Oh, I forgot PUT KANJI-command. (I don't use KANJI that much Smile) I just noticed that CALL KANJI and other KANJI related CALL commands were missing...

Maybe some of the internal memory could be anyway used to store RTC memory? That should not take that much memory...

(Sorry if I suggest something that has been already done. I try to keep the system up and running at least for a while before I put it to condition where it does not boot anymore Eek!)

By HRA!

Champion (289)

HRA!'s picture

29-03-2008, 17:59

Neither KANJI-ROM nor KANJI-BASIC are necessarily pairs.
Only KANJI-ROM is installed in "1chipMSX" like Panasonic FS-A1F etc.
KANJI-BASIC(_ANK,_KANJI etc...) is a function substantially added from MSX2+.
Therefore, it is not a mistake that KANJI-BASIC is not installed with 1chipMSX.

The CALL command can be added with the cartridge.
Because empty capacity of ROM of "1chipMSX" is also a little, it is difficult to
install it automatically when starting.
Please make the program that installs KANJI-BASIC from the SD card Tongue

By NYYRIKKI

Enlighted (6091)

NYYRIKKI's picture

29-03-2008, 18:35

Please make the program that installs KANJI-BASIC from the SD card
I'll do it while waiting, if you make me RAM that can be protected to slots 0-1 & 0-3 Smile Pure RAM is a bit bad option as some software may actually think that this RAM is meant as primary memory. We need something like MSX tR DRAM-mode... (In tR I many times replace KANJI-BASIC ROM with X-BASIC when I develop on it. This makes it possible to leave low RAM for Super-X Wink)

Actually I'm currently doing software workaround to implement reset proof RTC banks 1-3 (needs manual save to memorycard) How ever I still think, this should be fixed in hardware...

By NYYRIKKI

Enlighted (6091)

NYYRIKKI's picture

29-03-2008, 18:44

... and before you say, use MGLOAD or something like that I must say, that I'm newer ever going to miss KANJI-BASIC that much that I would give a free physical slot away. Tongue

The point is, that there should not really be totally useless slots in this kind of device... Smile

By HRA!

Champion (289)

HRA!'s picture

29-03-2008, 19:23

All system-ROM of "1chipMSX" is put on ESE-RAM.

Boot sequence of 1chipMSX:
(1) run IPL-ROM (512byte: SLOT3-3)
At this time, ROM other than "SLOT3-3" are empty.
(2) ROM data is downloaded from Configration-ROM to ESE-RAM by IPL-ROM.
(3) IPL-ROM jumps to 0000H of "SLOT0-3" at the end.
(4) At this point, MSX-System starts.

Therefore, "SLOT0-1" is rewritable LOL!
However, because nothing is connected with "SLOT0-3", it is not rewritten.

Please refer to IPL-ROM for the method of how to rewrite it of SLOT0-1.
IPL-ROM is only 512 bytes program for Z80.

By NYYRIKKI

Enlighted (6091)

NYYRIKKI's picture

29-03-2008, 20:19

Sounds great! LOL!

I just want to make sure... Does this mean that both empty slots (0-1 and 0-3) can be written although they are not written in IPL-ROM? Or is 0-3 somehow different?

By HRA!

Champion (289)

HRA!'s picture

30-03-2008, 04:30

Sorry, mistake in (3).

(3) IPL-ROM jumps to 0000H of "SLOT0-0" at the end.

At present, nothing is connected with "SLOT0-3".
However, RAM will be connected in the future Smile

By HRA!

Champion (289)

HRA!'s picture

30-03-2008, 04:39

"SLOT0-1" had been misunderstood that "SLOT0 PAGE1".

Nothing is connected with "SLOT0-1".

By HRA!

Champion (289)

HRA!'s picture

30-03-2008, 07:23

New update PLD:
http://www5d.biglobe.ne.jp/~hra/note/onechipmsx/files/emsx_top_20080330.zip

(1) ESE-RAM(256KB) of MegaSD is increased to 512KB.
(2) RAM of MegaSD is connected with "SLOT0-1" and "SLOT0-3".
(3) Experiment circuit (R#26,R#27) for v9958 is added.

These are the untests all ;)

information:
SLOT0-0: MainROM = MegaSD ESE-RAM Bank 8-11 (8KB * 4banks = 32KB)
SLOT0-1: Free ROM1 = MegaSD ESE-RAM Bank 32-39 (8KB * 8banks = 64KB)
SLOT0-2: Ext. ROM = MegaSD ESE-RAM Bank 12, 13 (8KB * 2banks = 16KB)
SLOT0-3: Free ROM2 = MegaSD ESE-RAM Bank 40-47 (8KB * 8banks = 64KB)
SLOT3-1: Sub ROM = MegaSD ESE-RAM Bank 14, 15 (8KB * 2banks = 16KB)
SLOT3-2: DiskBASIC = MegaSD ESE-RAM Bank 0-7 (with ESE-RAM[8KB * 64banks) controller and SD Card controller)
KANJI ROM: MegaSD ESE-RAM Bank 16-31 (8KB * 16banks = 128KB)
MegaSD ESE-RAM Bank 48-63 is free.

ROM including SLOT0-1 and SLOT0-3 is rewritten by way of SLOT3-2.

By NYYRIKKI

Enlighted (6091)

NYYRIKKI's picture

31-03-2008, 00:04

Wow, that was super fast!!! oO

It seems that adjusting value offset #A1 in IPL-ROM should be enough to load the KANJI-BASIC from SD/MMC.

This is cool!!!

By HRA!

Champion (289)

HRA!'s picture

31-03-2008, 17:29

By caro

Hero (513)

caro's picture

31-03-2008, 18:12

I think you can just increase the volume to 1 Mbyte MegaRAM2, moving at the beginning of his address 0500000h
Then, and volume ESE-RAM can be increased to its maximum value 1 Mbyte setting his address at 0600000h.

By HRA!

Champion (289)

HRA!'s picture

02-04-2008, 15:38

Emsx_top_20080330.zip has the bug.
The bug to which FM-BIOS disappeared was found.

For instance, if "call music" is executed, it becomes "syntax error".

It is debugging it now Eek!

By caro

Hero (513)

caro's picture

02-04-2008, 17:03

If the error appears SLOT0-3 block of MegaSD connected.
Connecting to MegaSD SLOT0-1 does not affect the operation of the FM BIOS.

By HRA!

Champion (289)

HRA!'s picture

05-04-2008, 08:28

The cause of the bug(emsxtop_20080330.zip) was ascertained.

The extended slot register at FFFFh was not considered.
It is not possible to return it to other SLOT0-X when changing to SLOT0-1 and SLOT0-3 Tongue

I will release the correction version by the end of today.

By HRA!

Champion (289)

HRA!'s picture

05-04-2008, 09:50

New update PLD:
http://www5d.biglobe.ne.jp/~hra/note/onechipmsx/files/emsx_top_20080405.zip

New SD-RAM map:
http://www5d.biglobe.ne.jp/~hra/note/onechipmsx/memory.htm

Updates:
(1) The FM-BIOS bug of the EMSXTOP_20080330.zip is corrected.
(2) The start of the file of ROM image of 256KB+32KB is supported. (by caro)
(3) ESE-RAM is reinforced to 1MB (8KB * 128banks)
(4) ESE-SCC+ on SLOT2 is reinforced to 1MB.
(5) The source of VDP was rewritten a little.
(6) The source of EMSX-TOP was rewritten a little.

regards :)

By HRA!

Champion (289)

HRA!'s picture

05-04-2008, 15:23

New update PLD:
http://www5d.biglobe.ne.jp/~hra/note/onechipmsx/files/emsx_top_20080405_002.zip

Update:
(1) VDP HSYNC BUG FIX
--> The phenomenon of display blinking by "METEORITE KISS" etc. has been improved.

By jltursan

Prophet (2619)

jltursan's picture

05-04-2008, 19:52

--> The phenomenon of display blinking by "METEORITE KISS" etc. has been improved.

\o/ Yay! Big smile

By HRA!

Champion (289)

HRA!'s picture

06-04-2008, 04:53

New update PLD:
http://www5d.biglobe.ne.jp/~hra/note/onechipmsx/files/emsx_top_20080406_001.zip

Updates:
(1) KANJI.VHD was rewritten. (11450LE --> 11439LE)
(2) The file composition of the archive was changed a little.

By HRA!

Champion (289)

HRA!'s picture

06-04-2008, 09:58

New update PLD:
http://www5d.biglobe.ne.jp/~hra/note/onechipmsx/files/emsx_top_20080406_002.zip

Updates:
(1) The output signal circuit for CXA1645 is deleted from VDP.
--> Because the signal was unused, the change is not provided as a function as OCM.
(2) Green LED relation is changed.

By HRA!

Champion (289)

HRA!'s picture

06-04-2008, 14:37

New update PLD:
http://www5d.biglobe.ne.jp/~hra/note/onechipmsx/files/emsx_top_20080406_003.zip

Updates:
(1) When 101/104 keyboards are used, the bug that was not able to input some
characters is corrected. (modified by caro)
(2) Experimental R#26/R#27 is corrected.
(3) The SDRAM controller is separated from EMSXTOP.VHD.
(4) The VDP access timing to the SDRAM controller is eased.
(5) Some test programs are added to the archive.

Information:
The operation of R#26/R#27 can be confirmed by executing "test_program/h_scroll" ;)
--> MSX-DOS, SCROLL.COM, and OCM.SC5 are copied onto the SD/MMC card.
--> And, SCROLL.COM is execute on OCM.

By HRA!

Champion (289)

HRA!'s picture

06-04-2008, 17:52

New update PLD:
http://www5d.biglobe.ne.jp/~hra/note/onechipmsx/files/emsx_top_20080406_004.zip

Updates:
(1) 101/104 Keyboard bug fix. (by caro)

Attention:
Because I do not have "English 101/104 keyboard", operation is not confirmed.
I plan to buy "English 101/104 keyboard" on the next weekend and to confirm.

By HRA!

Champion (289)

HRA!'s picture

07-04-2008, 17:04

New update PLD:
http://www5d.biglobe.ne.jp/~hra/note/onechipmsx/files/emsx_top_20080407.zip

Updates:
(1) VDP R#25 bit0 (SP2) supported.
(2) added "test_program/h_scroll2".

Two screen horizontal scroll was achieved by this correction :D

By NYYRIKKI

Enlighted (6091)

NYYRIKKI's picture

08-04-2008, 02:12

I would really, really, really like to update my hardware, but could someone with the "oops, it did not work"-cable confirm, that the update can be made safely from the first firmware version to current version?

I'm sorry, but as I still can't understand, how the software can run safely at the same time while hardware below is changeing, I really don't want to take a risk at the moment.

I mean, I don't want to break the device just yet... I've just learned to use it... Smile

By HRA!

Champion (289)

HRA!'s picture

08-04-2008, 16:16

EMSX_TOP that I release executes the simple test.

Test items:
(1) MSX-DOS2 must start.
(2) The display doesn't fall into disorder.
(3) Some test programs must operate normally.
(4) Some game software must start.

These are confirmed.
However, whether it operates normally by your OCM is uncertain.
Please use it by the self-responsibility.

Because I am busy on the weekday, the test more than this cannot be done.

By HRA!

Champion (289)

HRA!'s picture

08-04-2008, 17:19

New update PLD:
http://www5d.biglobe.ne.jp/~hra/note/onechipmsx/files/emsx_top_20080408.zip

Updates:
(1) VDP R#25 bit6 (CMD bit) supported.
(2) Added 'test_program/vdp_command_on_text_mode'

By Edwin

Paragon (1182)

Edwin's picture

09-04-2008, 22:59

I'm going to have to test this scroll register code soon!

HRA> Since you're very experienced with 1chipMSX code, could you also have a look in this thread about the 1cM sound quality?

By HRA!

Champion (289)

HRA!'s picture

10-04-2008, 17:26

The current horizontal scroll function is provisional.
The display of the left end is different from the real thing.

Because the YJK mode (Not opened it to the public yet) and compatibility are bad,
a new method is devised.

The YJK mode has already functioned in my local.
However, because the display falls into disorder when combining with the
horizontal scroll, it is not possible to release it yet Wink

By beachsun

Supporter (4)

beachsun's picture

11-04-2008, 21:34

Hi, any chances that all this changes works on the De1 board port?
I ask, because it has a lot less sdram.

Great Work!!

By HRA!

Champion (289)

HRA!'s picture

12-04-2008, 04:49

New update PLD:
http://www5d.biglobe.ne.jp/~hra/note/onechipmsx/files/emsx_top_20080412_001.zip

Updates:
(1) R#25 YJK/YAE bit supported. (BUT YAE BIT IS UNTEST)
(2) Added "/test_program/h_scroll_on_yjkmode"

Already-known bug:
(1) H-SCROLL RIGHT SIDE
(2) S#0 5S BIT compatibility

------

What is "De1 board"?

SDRAM used for OCM is 8MB x 4banks (32MB).
However, only 8MB of bank0 is used in OCM.

By caro

Hero (513)

caro's picture

12-04-2008, 05:10

All current OCM code changes I have made and checking for DE1.
The amount of RAM, is now involved in the project OCM is 8 Mbyte, equivalent to the amount of memory DE1.
DE1 -> Altera Development and education board.
http://www.altera.com/education/univ/materials/boards/unv-dev-edu-boards...
• Altera Cyclone II 2C20 FPGA with 20000 LEs
• Altera Serial Configuration deivices (EPCS4) for Cyclone II 2C20
• USB Blaster built in on board for programming and user API controlling
• JTAG Mode and AS Mode are supported
• 8Mbyte (1M x 4 x 16) SDRAM
• 4Mbyte Flash Memory
• 512Kbyte(256Kx16) SRAM
• SD Card Socket
• 4 Push-button switches
• 10 DPDT switches
• 8 Green User LEDs
• 10 Red User LEDs
• 4 Seven-segment LED displays
• 50MHz Oscillator ,24MHZ Oscillator ,27MHz Oscillator and external clock sources
• 24-bit CD-Quality Audio CODEC with line-in, line-out, and microphone-in jacks
• VGA DAC (4-bit R-2R per channel) with VGA out connector
• RS-232 Transceiver and 9-pin connector
• PS/2 mouse/keyboard connector
• Two 40-pin Expansion Headers

By HRA!

Champion (289)

HRA!'s picture

12-04-2008, 07:33

DE1 is interestingSmile
The parts other than the cartridge slot become complete enough.

It is necessary to separate a peculiar part to OCM to transplant it from OCM to
DE1.
I am doing the separation work nowSmile

I will implement the function of turboR in OCM.
However, when it is not finished to enter, I want to use DE1 Smile

----
A US/EURO 104 keyboard was obtained.
I try caro 's keymap in EMSXTOP_20080406_004.zip Smile

By beachsun

Supporter (4)

beachsun's picture

12-04-2008, 07:37

Ok, thank you for your answers.
That was all i need to know.

As Caro said , i was talking about Altera De1 Board, a development board with a more powerfull Fpga but 1/4 of Sdram os the OCM. I was afraid that this memory was not enought to get all your memory mapping changes.

Please continue with your work!!

Regards

By HRA!

Champion (289)

HRA!'s picture

12-04-2008, 08:14

There is a point that should be noted.

SDRAM of OCM is driven with 84MHz.
If SDRAM of DE1 cannot be driven any more, DRAM access is not in time.

By caro

Hero (513)

caro's picture

12-04-2008, 08:43

In DE1 used IS42S16400 - synchonous DRAMs archieved high-speed data transfer using pipeline architecture and clock frequency up to 133 MHz.
My work PLD with source for DE1: www.caro.k66.ru/files/07_08_01.zip

This version has not yet include the current changes OCM project by HRA!, but it works.

By NYYRIKKI

Enlighted (6091)

NYYRIKKI's picture

12-04-2008, 11:56

Ready to compile, commented IPL-ROM source: http://msx.fi/temp/ipl.asm

By KdL

Paragon (1485)

KdL's picture

12-04-2008, 14:09

Quartus II Web Edition Software v7.2 Service Pack 3 is out!!

https://www.altera.com/support/software/download/altera_design/quartus_we/dnl-quartus_we.jsp

By HRA!

Champion (289)

HRA!'s picture

12-04-2008, 15:11

New update PLD:
http://www5d.biglobe.ne.jp/~hra/note/onechipmsx/files/emsx_top_20080412_002.zip

Updates:
(1) Sprite Color Table IC bit bug fix. (The CC bit was read by mistake. )
(2) The bug of the low-pass filter of sound mixer is corrected. (My mistake :P )
(3) Some of warning are removed.

Already-known bugs:
(1) S#0 5S bit
(2) SpaceManbow etc. make the sprite display amusing.

By NYYRIKKI

Enlighted (6091)

NYYRIKKI's picture

12-04-2008, 16:38

Now I finally was brave enough to update. Smile

It seems that the hardware is changed only after power is put off and back on. This makes me feel a bit better about updating.

I tried Pleasure Hearts with the latest version and the graphics (screen 4) seem to be corrupted for first 2/3 of the screen. This game was working fine before update.

By NYYRIKKI

Enlighted (6091)

NYYRIKKI's picture

12-04-2008, 18:16

Hmm... It also kind of seems that the effect is "reversed" when I boot the OCM with MSX2+ ROMs... The MSX-logo seems to be going away from the screen, not coming in LOL!

By NYYRIKKI

Enlighted (6091)

NYYRIKKI's picture

12-04-2008, 19:11

It seems that the SCREEN 10-12 pictures are converted to 512 colors at the moment... Does not look good, but better than nothing... I also think that maybe you should already update VDP S#1 ID to V9958? The RGB colors in SCREEN 10/11 seems to be wrong also...

By NYYRIKKI

Enlighted (6091)

NYYRIKKI's picture

12-04-2008, 20:58

HRA!: ... just to make things more easy to test.... Could you change the IPL-ROM byte offset #A1 (originally #10) to #18? (I don't think that the possible copy from not existing ROM gives any problems(?))

By KdL

Paragon (1485)

KdL's picture

13-04-2008, 02:00

(Screen12) Laydock2 intro screen is fine with HRA! vdp model Running Naked in a Field of FlowersRunning Naked in a Field of Flowers

By HRA!

Champion (289)

HRA!'s picture

13-04-2008, 02:08

The problem is brought up when booting it from EPCS4 when offset #A1 of IPL-ROM
is increased.
The capacity of EPCS4 is 512KB.
It is circuit data in 256KB in the first half. ROM data enters for 256KB the
latter half.
Offset #A1 specifies the loop count in which ROM data of 16KB is read.
When the value is increased, the outside of EPCS4 is read.

Alternative proposal Smile
IPL-ROM of the latest version has some changes.
288KB is read when booting it from SD/MMC.
I think that you may increase it if it is offset #1FA.

By KdL

Paragon (1485)

KdL's picture

13-04-2008, 04:24

OCM-PLD Pack 2.2b is out!! Wink Wink Wink

http://www.webalice.it/gnogni/ocm/20080413_OCM-PLD_Pack_v2.2b_by_KdL.rar

v2.2b [2008.04.13] [KdL/HRA/caro's Updates!]

- Improved SCC_RAM module (by caro).
- Fixed RTC module (by HRA!).
- Fixed SCREEN0 blink timing (by caro/HRA!).
- Fixed OPLL VM2413 controller (by HRA!).
- Fixed low-pass filter of sound mixer (by HRA!).
- Added Slot1 selector on [SHIFT+F12] key.
- Added Slot2 selector on [SHIFT+Scroll Lock] key.
- Swapped DIP-SW7 and DIP-SW8 position.
- Restored VGA high luminance.
- Forced all VGA modes at 60Hz.
- VDP Debug Mode is disabled but source code contain it again.
- Updated DIP-SW User Manual [src_upgrade\doc\dipsw_v2x.htm].

Note:
To use MGLOAD & SCROM tools is very easy now with new [SHIFT+Scroll Lock] Slot2 selector key!! :RNFF:

By KdL

Paragon (1485)

KdL's picture

13-04-2008, 05:10

One of best configuration for MGLOAD.COM with OCM-PLD v2.2b:

-> DIP-SW7 = ON // DIP-SW8 = OFF as default

-> for Konami5:
after loading, press Hard-Reset to go!

-> for ASCII8/16:
before loading, press SHIFT+Scroll Lock to select the type on Slot2;
after loading, launch a Soft-Reset to go!

(RESET.COM is included into the archive)

LOL!LOL!LOL!

By HRA!

Champion (289)

HRA!'s picture

13-04-2008, 13:08

New update PLD:
http://www5d.biglobe.ne.jp/~hra/note/onechipmsx/files/emsx_top_20080413.zip

Updates:
(1) R#27 BUG FIXED
(2) H-SYNC TIMING CHANGED
(3) IPL-ROM BOOT FROM SD/MMC IS 384KB SUPPORTED

Fixed:
(1) A sprite abnormal display (EMSXTOP 20080405_002.zip ... 20080412_002.zip) was corrected.(SpaceManbow etc.)
(2) KYOKUGEN might be able to play correctly.

Bugs:
(1) The sound of SCMD was not emitted.
(2) 5S bit bug.

FPGA empty capacity decreases, and the adjustment becomes difficult.....*_*

By NYYRIKKI

Enlighted (6091)

NYYRIKKI's picture

13-04-2008, 15:07

I tested this last version and now Pleasure Hearts seems to be playable again. Great ! Smile

These points are still open:
- MSX2+ boot-logo is going away from screen instead of coming in. (wrong page visible?)
- border color in MSX2+ boot-logo is incorrect and makes masking sprites visible.
- When scroll register is used, random graphic problems temporary appear to screen.
- In SCREEN 10 the line color affects brightness instead of being from 16 color pallette.

Example program I used to test:
10 screen 12
20 bload"1.scc",s
30 screen 10
40 line (0,0)-(255,211),8
50 a$=input$(1)

Quote from status raport:
> ID not implemented (When this is changed, it doesn't start in BIOS of MSX2. )

Question This sounds weird. I've heard that many people have updated their VDP without changing ROM's, so this must be somehow "OCM only"-problem. Question

It seems that for example Bit2 games (tested Quinpl, Nyancle racing) use this information to show/not show screen 12 loading pictures.

By HRA!

Champion (289)

HRA!'s picture

13-04-2008, 16:40

EMSX_TOP20080413.zip has improved the problem that some famous game software doesn't play.
The function of V9958 interchangeable register is obviously imperfect.

The problem of ID might have the cause in empty capacity of FPGA.
I want to improve the V9958 interchangeability function on the next weekend.

By NYYRIKKI

Enlighted (6091)

NYYRIKKI's picture

13-04-2008, 18:01

Good thing is, that now when we have 384KB ROM-support it was possible to put in KANJI-BASIC and X-BASIC and now it is possible to extend MSX2+ ROM-features without need to worry about where to put the updates.

If you want to troubleshoot the MSX2+ logo issue without installing MSX2+ ROM's you can download just the logo from here: http://msx.fi/temp/2plogo.bin

Usage:
BLOAD"2PLOGO.BIN",R

By NYYRIKKI

Enlighted (6091)

NYYRIKKI's picture

13-04-2008, 21:27

- border color in MSX2+ boot-logo is incorrect and makes masking sprites visible.
It seems that the color that should be 0 is now 5. This problem did not exist in original version of the hardware.

By NYYRIKKI

Enlighted (6091)

NYYRIKKI's picture

14-04-2008, 00:12

I try caro 's keymap in EMSXTOP_20080406_004.zip

Maybe a stupid question, but is there possibility to write "_" in Japanese or European keyboard, if you really have english keyboard? In for example BlueMSX it is mapped to right CTRL key.

I'm also missing "|" & "\" (or yen) in Japanese keyboard layout...

Problem might be, that I'm currently using Finnish keyboard. It works otherways nicely, but "½ §" key is same as F8 (select) and "< > |" key has no any function.

By NYYRIKKI

Enlighted (6091)

NYYRIKKI's picture

14-04-2008, 01:37

I checked the keymap.vhd and it seems that the keys that I'm missing from my keyboard are called #52 and #41 They seem to be present in the source, but not on my keyboard. Crying Do you think that "Han/Zenkaku" could be redefined to be one of these as there is already select on F8?

By caro

Hero (513)

caro's picture

14-04-2008, 03:59

I already wrote Hara, this release KEYMAP.VHD made to the MSX BASIC version 2.1

By HRA!

Champion (289)

HRA!'s picture

14-04-2008, 16:39

(1) VDP-ID TESTED
VDP-ID was changed to V9958 and it started.
It was possible to boot it on MSX2 BIOS.
It change to V9958 in the next release.

(2) KEYMAP
It returns it to KEYMAP.VHD(23:52 04/04/2008 caro's 1st release) by the next release.

It doesn't release it today because the version tested now contains another
problemEek!

By KdL

Paragon (1485)

KdL's picture

16-04-2008, 05:19

to load easy ASCII Turbo Basic:

A:\>SCROM XBASIC2.ROM Hannibal
(to enable a MegaSCC+ is required)

By HRA!

Champion (289)

HRA!'s picture

16-04-2008, 15:45

I am working on the bug correction of the horizontal scroll register now.

The display of SpaceManbow broke when VDP-ID was changed to "V9958".
SpaceManbow checks VDP-ID.
And, if it is V9958, the horizontal scroll register is used.
It scrolls horizontally by using SetAdjust if it is V9938.

I had misunderstood to always use SetAdjust.

I tried Nyancle.
The SCREEN12 image was displayedSmile

When the bug of the horizontal scroll register was able to be corrected, I
releases it.

By HRA!

Champion (289)

HRA!'s picture

17-04-2008, 17:16

New update PLD:
http://www5d.biglobe.ne.jp/~hra/note/onechipmsx/files/emsx_top_20080418.zip

Update:
(1) VDP-ID was changed to V9958.
(2) RTC was changed (RTC.VHD and EMSX_TOP.VHD)
(3) It changes so that VDP R#26/R#27 may synchronize with the horizontal synchronizing
signal.
(4) The compilation option is changed from AREA to BALANCE.

MEMO:
(1) MSX2 + logo is still strange *_*
(2) R#25-MSK has not been supported yet.

By NYYRIKKI

Enlighted (6091)

NYYRIKKI's picture

17-04-2008, 19:52

> (1) VDP-ID was changed to V9958.

Works!

> (2) RTC was changed (RTC.VHD and EMSX_TOP.VHD)

It is still not power proof Crying

> (3) It changes so that VDP R#26/R#27 may synchronize with the horizontal synchronizing
signal.

Seems to be working now Big smile

> (1) MSX2 + logo is still strange

The color problem is visible also with MSX2 boot screen.

Other problems:

- SCREEN 10/11 RGB colors do not work
- Keys #41 & #52 missing from keyboard (Can someone else confirm this?)
- Sprites do not work in SCREEN 10/11 and 12

By HRA!

Champion (289)

HRA!'s picture

18-04-2008, 14:10

> (2) RTC

The base clock was 3.58MHz before.
The base clock of a new version is 10Hz.
The circuit scale has been reduced by using the same base clock as the circuit that
checks DIP-SW.

By NYYRIKKI

Enlighted (6091)

NYYRIKKI's picture

18-04-2008, 16:35

> (2) RTC

Do you think it would be possible to assign 20 bytes permanent memory to store RTC banks 1-3 in future?

By HRA!

Champion (289)

HRA!'s picture

18-04-2008, 17:28

New update PLD:
http://www5d.biglobe.ne.jp/~hra/note/onechipmsx/files/emsx_top_20080419.zip

Updates:
(1) R#25 SP2 BIT BUG FIXED.
--> The phenomenon of the MSX2+ logo's scrolling to outside has been improved.
--> The display of "Pro-yakyu Family Studium (c)NAMCO" became normal.

Memo:
(1) The key map has not been corrected yet.
(2) A right and left color of the MSX2+ logo is still abnormal.

-----
About Battery back-up memory on RTC...

If the battery is not increased, it is not possible to achieve it.
The method of the frequent writing in EPCS4 shortens the longevity of EPCS4.
It doesn't function as MSX when EPCS4 breaks.

However, The memory maintained only while it is turning on power can be added.
The priority level of the work is low.

By Sd-Snatcher

Hero (582)

Sd-Snatcher's picture

18-04-2008, 19:51

And writing the RTC info on a file in the sd card?

By NYYRIKKI

Enlighted (6091)

NYYRIKKI's picture

19-04-2008, 01:24

And writing the RTC info on a file in the sd card?
I implemented that already, see here:

http://www.msx.org/forumtopic8477.html

By HRA!

Champion (289)

HRA!'s picture

19-04-2008, 04:27

Version 20080419

The method of generating the scanning lines interrupt was corrected a little.
The bug not sounding SCMD[*1] was corrected.

*1: SCMD
http://cpu.dip.jp/3mhz/msx.html
SCMD is a music player by PSG, OPLL, and two SCC.

By HRA!

Champion (289)

HRA!'s picture

19-04-2008, 09:32

New update PLD (Version 20080419_002):
http://www5d.biglobe.ne.jp/~hra/note/onechipmsx/files/emsx_top_20080419_002.zip

Updates:
(1) The bug of the background color and the sprite color in GRAPHIC5(SCREEN6) was corrected.
--> A strange color around the MSX2/MSX2+ logo disappeared.

(2) The sprite display in the YJK mode was corrected [** UNTEST **]

(3) The compilation option was changed.

LOL!

By NYYRIKKI

Enlighted (6091)

NYYRIKKI's picture

19-04-2008, 12:25

> (1) The bug of the background color and the sprite color in GRAPHIC5(SCREEN6) was corrected.
> --> A strange color around the MSX2/MSX2+ logo disappeared.

Actually it is not that strange... The color around should be 1 (01b) to make this in screen 6 you need to write 0101b to backround color register. with 16 color pallette this is color 5 that was visible in the logo before the fix.

Now it seems that also the logo is coming in! It is still looks a bit jerky (looks like if low 3bits would scroll to wrong direction) but it's much better LOL!

> (2) The sprite display in the YJK mode was corrected [** UNTEST **]

a bit better... Now the sprites work like in screen 8, but they should work like in screen 7

By wolf_

Ambassador_ (10135)

wolf_'s picture

19-04-2008, 13:46

This thread is interesting, but it may outgrow this news place a bit.. Tongue

How about continuing in an OCM-PLD thread in the forum?

By HRA!

Champion (289)

HRA!'s picture

19-04-2008, 14:01

> a bit better... Now the sprites work like in screen 8, but they should work like in screen 7

I made the test program now. The phenomenon was confirmed.
It mends by the next release.

> How about continuing in an OCM-PLD thread in the forum?

Nice idea Smile

By HRA!

Champion (289)

HRA!'s picture

19-04-2008, 14:37