159 Commits

Author SHA1 Message Date
Sorgelig
f35083f3b4 Make HDMI_TX_INT available for HPS. 2026-05-13 20:46:58 +08:00
Sorgelig
5e09474205 Implement core audio boost. 2026-05-12 01:36:02 +08:00
Sorgelig
4fa8d0ca14 Move emu ports definition to include file for easier updates. 2026-05-12 01:30:00 +08:00
Sorgelig
af451dcc80 hps_io: remove unrelated framework signals. 2026-05-12 01:21:27 +08:00
Sorgelig
cce023f4ea fix a warning. 2026-03-25 19:38:41 +08:00
Sorgelig
7768007a93 hps_io: adjust ioctl_download/upload signals. 2026-03-11 23:23:42 +08:00
PetrM1
95105233df Signaling F12 key should be passed to core
* New feature signaling F12 key should be passed to core - framework/core menu should use F12+(L/R)GUI kye modifier

* Changed way how to pass F12 MOD key modifier to hps_io
2026-01-13 22:17:37 +08:00
Sorgelig
5bc849ae0e Use larger burst size for menu core to fix 1080p issue. 2025-12-17 13:40:37 +08:00
Sorgelig
0af2b5a7c7 Add frame counter for sync. 2025-12-02 19:19:53 +08:00
misteraddons
e0afd280d4 Correct SDRAM pinout
SDRAM_DQ[0] = GPIO_0[0] = PIN_V12
SDRAM_DQ[1] = GPIO_0[1] = PIN_E8
2025-09-28 19:44:25 +08:00
Sorgelig
da7dddecff Fix dual SDRAM mode. 2025-09-09 07:39:00 +08:00
Sorgelig
b293ea0c2a Adjust SDC rule. 2025-08-28 15:01:36 +08:00
Sorgelig
e85e20b1b9 Cleanup and optimization for subcarrier. 2025-08-14 16:48:39 +08:00
misteraddons
dcdcd65099 Add support for chroma subcarrier for clean composite video from external RGB converters (#92)
Outputs the chroma subcarrier over the VGA Vsync pin. External RGB encoders, like Sony CXA, can pass RGB, while generating S-Video and CVBS, but need a subcarrier signal. Generic crystals deviate from the frequency and phase of the source RGB signal. This mod passes the subcarrier signal, directly from the core, to the convert, for clean composite video. Based on MikeS's excellent YC work. Dot-crawl free externally generated composite video!
2025-08-14 14:36:40 +08:00
Alexey Melnikov
d93bc2e75f ASCAL : Add 2304, 2560 resolutions, some optimizations
Co-authored-by: Grabulosaure <dev@temlib.org>
2025-07-09 14:52:34 +08:00
zakk4223
fbcd073c96 Add bob deinterlacing to ascal (#87)
* Add bob deinterlacing to ascal

* Add HDMI_BOB_DEINT to mycore.sv
2025-02-25 21:37:00 +08:00
Sorgelig
fa4c17af06 SW[2]=ON for force SD card presence. 2024-12-24 20:51:49 +08:00
Fred Van Eijk
539dbf1498 CMD24 (state WR_STATE_SEND_DRESP) fix (#86)
* courtesy of viandant
The response code from module sd_card sent at the end of executing
CMD24 (state WR_STATE_SEND_DRESP), was not a byte starting with bits 1110
as expected by the sd_controller module. This caused the sd_controller
to assume the result byte is finished and switch off the clock signal prematurely.
After that the system could not recover and return to a working state.

* from jotego

Incidentally, all these wire constants should be LOCALPARAM instead.  Changed.

---------

Co-authored-by: Fred VanEijk <fvaneijk.usa@gmail.com>
2024-12-09 13:04:32 +08:00
Sorgelig
b72e4640c0 hps_io: correct default parameters. 2024-10-30 23:55:06 +08:00
Sorgelig
704dc65ca0 Remove BTN_* assignments in DUAL_SDRAM mode to improve secondary SDRAM timings. 2024-10-30 23:42:20 +08:00
Sorgelig
15c66520a2 i2c: don't ack last read word. 2024-10-30 23:40:12 +08:00
JOTEGO
60a7ad548c hps_io: accept hex file for config string contents (#85) 2024-08-28 13:01:20 +08:00
Sorgelig
a19f0927bb Add HDMI_BLACKOUT signal. 2024-07-06 14:13:14 +08:00
Cray Elliott
a5334d209b add support for interlace video to video_cleaner, used in MegaDrive core (#83) 2024-07-06 00:58:33 +08:00
Sorgelig
b3bb079296 hps_io: increase minimum byte_cnt. 2024-05-02 15:02:00 +08:00
JOTEGO
f669cac7b3 arcade_video: Support for 6bpp 2024-04-30 12:51:30 +08:00
Sorgelig
09c2c8ec35 Relax some timings in YC. 2024-04-21 23:04:40 +08:00
Sorgelig
2a57c0badd Tweak VGA clock output. 2024-04-08 19:30:40 +08:00
Sorgelig
5b81d3d118 Disable legacy buttons when SW3=ON in case if no I/O Board used. 2024-03-21 22:25:03 +08:00
Sorgelig
133888c0f9 Disable 24bit mode if SW2=ON for better compatibility with 3rd party boards. 2024-03-20 01:33:48 +08:00
Sorgelig
3f9824f07f Prevent accidental buttons reaction at boot. 2024-03-19 22:32:16 +08:00
Milan Pollé
8b47dd6ce6 Image aspect-ratio fixed, when using integer scaling modes on wide-screen cores, when using a non-wide-screen output display. This will make LCD shadow masks work correctly with handheld cores like the Gameboy Advance, Lynx and Wonderwan, when used with 4:3 aspect-ratio displays. (#79)
Co-authored-by: Milan Pollé <milan.polle@ordina.nl>
2024-03-18 19:04:18 +08:00
Sorgelig
3eaa252303 Support for 24bit VGA, I/O Board v9.x, AV Board. 2024-03-12 23:03:11 +08:00
Sorgelig
acb172e56b Fix pll includes. 2024-01-10 23:04:24 +08:00
Sorgelig
459a5878e5 Send DE position to HPS, don't disable YC mode in dual SDRAM, some optimizations. 2024-01-10 22:35:28 +08:00
RobertPeip
3c7701ea85 Cut down PLL config for HDMI PLL to reduce logic usage by about 800 ALM. (#76)
Feature set is reduced to what is used by MiSTer Main.
Most cut out functionality is commented out and can be re-enabled if required.
Usage of multiple outputs however is completely removed.

Co-authored-by: RobertPeip <->
2024-01-06 20:25:21 +08:00
Martin Donlon
dcba955beb Use full output range for analog YPbPr output (#75)
Previously the output was scaled to digital YCbCr limits.
Also use full 8-bit rgb range from inputs.
2023-12-01 00:09:18 +08:00
Adam Strzelecki
2b79544402 video: Wide HV-Integer should use ideal scaling when possible (#73)
In previous implementation wide integer scaling factor was always narrow+1, even
when ideal scaling existed, e.g. with source square pixels 640x480 [4:3]. Now
in such case both wide and narrow should produce same scaling.

Only with non-square pixel source e.g. 720x400 [4:3] narrow should be less than
wide. To achieve this we store and check against ideal target width when
computing Wide HV-Integer.

This change also fixes the case when computing narrow flag did not make sense
with div_num[11:0] coming from state cnt=7. We should always compare to stored
previously target width.
2023-09-07 15:02:07 +08:00
Sorgelig
d1b8e253d4 Define MISTER_DISABLE_YC if MISTER_DUAL_SDRAM is defined. 2023-03-25 00:33:22 +08:00
Sorgelig
acfe7b4179 Add define to disable ALSA to save some resources. 2023-02-25 21:25:06 +08:00
Sorgelig
4ed1833b87 Add simplified CVBS mode. YC parameters aren't required from core anymore. 2023-02-08 10:14:26 +08:00
Sorgelig
2f3174c571 Add S-Video/CVBS encoder by Mike Simone. 2023-02-08 07:02:15 +08:00
Jamie Blanks
443cc41e2e add adc output ports to tape module (#70) 2023-01-30 03:26:13 +08:00
Martin Donlon
10e2b6c963 Use half size when height matches vertical resolution. (#67)
If the height exactly matches the vertical resolution then v_osd_start will be set to 0, but v_cnt starts counting from 1 so the OSD will never be drawn. Maybe v_cnt should start at 0, but that will throw of some other things. This fixes the issue I am seeing in the M72 core which has a vertical resolution of 256.
2022-08-26 05:59:57 +08:00
Sorgelig
0a27650654 Add VGA_DISABLE signal, enable Analog I/O buttons for dual SDRAM builds. 2022-07-18 01:35:47 +08:00
Sorgelig
0b10601b02 ascal: rework VRR logic to fix instability. 2022-07-18 01:34:38 +08:00
Sorgelig
e09ce4689a Bump small video buffer size to 2MB. 2022-07-08 02:52:06 +08:00
Sorgelig
a3f1522f38 ascal: adjust formatting. 2022-06-29 09:06:13 +08:00
Sorgelig
749002ddeb ascal: support for VRR. 2022-06-29 08:49:15 +08:00
Martin Donlon
85fbbf879c HDMI Pixel Repeat (#64)
Add support for hdmi pixel repetition in aspect ratio calcs.
2022-06-05 23:55:24 +08:00