1
0
mirror of https://github.com/marqs85/ossc.git synced 2024-12-29 09:32:45 +00:00

add Panasonic hack for improving line count tolerance with line2x

This commit is contained in:
marqs 2019-07-01 18:56:39 +03:00
parent 1ba8d68aab
commit 5e0277fb48
10 changed files with 6908 additions and 6845 deletions

View File

@ -94,7 +94,8 @@ typedef union {
struct {
alt_u8 mask_br:4;
alt_u8 rev_lpf_str:5;
alt_u32 misc_rsv:23;
alt_u8 panasonic_hack:1;
alt_u32 misc_rsv:22;
} __attribute__((packed, __may_alias__));
alt_u32 data;
} misc_config_reg;

View File

@ -224,7 +224,7 @@ set_global_assignment -name ENABLE_SIGNALTAP OFF
set_global_assignment -name USE_SIGNALTAP_FILE output_files/ossc_la.stp
set_global_assignment -name FITTER_EFFORT "AUTO FIT"
set_global_assignment -name SEED 14
set_global_assignment -name SEED 5

View File

@ -198,6 +198,7 @@ reg SL_METHOD;
reg SL_NO_ALTERN;
reg SL_ALTIV;
reg X_REV_LPF_ENABLE;
reg X_PANASONIC_HACK;
// constants for each frame to be calculated off config-registers
reg CALC_CONSTS;
@ -897,6 +898,7 @@ begin
X_REV_LPF_ENABLE <= (misc_config[8:4] != 5'b00000);
X_REV_LPF_STR <= (misc_config[8:4] + 6'd16);
X_MASK_BR <= misc_config[3:0];
X_PANASONIC_HACK <= misc_config[9];
SL_NO_ALTERN <= sl_config[31];
SL_METHOD <= sl_config[30];
@ -1007,7 +1009,7 @@ begin
HSYNC_2x <= (hcnt_2x < H_SYNCLEN) ? `HSYNC_POL : ~`HSYNC_POL;
VSYNC_2x <= (vcnt_2x < V_SYNCLEN) ? `VSYNC_POL : ~`VSYNC_POL;
DE_2x <= ((hcnt_2x >= H_AVIDSTART) & (hcnt_2x < H_AVIDSTOP)) & ((vcnt_2x >= V_AVIDSTART) & (vcnt_2x < V_AVIDSTOP));
DE_2x <= ((hcnt_2x >= H_AVIDSTART) & (hcnt_2x < ((X_PANASONIC_HACK & (vcnt_2x == V_AVIDSTOP-1'b1) & (line_out_idx_2x==2'h1)) ? (H_AVIDSTOP-12'd98) : H_AVIDSTOP))) & ((vcnt_2x >= V_AVIDSTART) & (vcnt_2x < V_AVIDSTOP));
end
end

File diff suppressed because it is too large Load Diff

View File

@ -328,7 +328,8 @@ status_t get_status(tvp_sync_input_t syncinput)
(tc.v_mask != cm.cc.v_mask) ||
(tc.mask_br != cm.cc.mask_br) ||
(tc.ar_256col != cm.cc.ar_256col) ||
(tc.reverse_lpf != cm.cc.reverse_lpf))
(tc.reverse_lpf != cm.cc.reverse_lpf) ||
(tc.panasonic_hack != cm.cc.panasonic_hack))
status = (status < SC_CONFIG_CHANGE) ? SC_CONFIG_CHANGE : status;
if (tc.sync_vth != cm.cc.sync_vth)
@ -529,6 +530,7 @@ void update_sc_config()
misc_config.rev_lpf_str = cm.cc.reverse_lpf;
misc_config.mask_br = cm.cc.mask_br;
misc_config.panasonic_hack = cm.cc.panasonic_hack;
sl_config.sl_l_str_arr = sl_l_str_arr;
sl_config.sl_l_overlay = sl_l_overlay;

View File

@ -108,6 +108,7 @@ typedef struct {
alt_u8 full_tx_setup;
alt_u8 vga_ilace_fix;
alt_u8 av3_alt_rgb;
alt_u8 panasonic_hack;
alt_u8 reverse_lpf;
alt_u8 audio_dw_sampl;
alt_u8 audio_swap_lr;

View File

@ -191,6 +191,7 @@ MENU(menu_compatibility, P99_PROTECT({ \
{ LNG("Full TX setup","フルTXセットアップ"), OPT_AVCONFIG_SELECTION, { .sel = { &tc.full_tx_setup, OPT_WRAP, SETTING_ITEM(off_on_desc) } } },
{ LNG("AV3 interlacefix","AV3インターレースシュウセイ"), OPT_AVCONFIG_SELECTION, { .sel = { &tc.vga_ilace_fix, OPT_WRAP, SETTING_ITEM(off_on_desc) } } },
{ "AV3 use AV1 RGB", OPT_AVCONFIG_SELECTION, { .sel = { &tc.av3_alt_rgb, OPT_WRAP, SETTING_ITEM(off_on_desc) } } },
{ "Panasonic hack", OPT_AVCONFIG_SELECTION, { .sel = { &tc.panasonic_hack, OPT_WRAP, SETTING_ITEM(off_on_desc) } } },
}))
#ifdef ENABLE_AUDIO

View File

@ -94,7 +94,8 @@ typedef union {
struct {
alt_u8 mask_br:4;
alt_u8 rev_lpf_str:5;
alt_u32 misc_rsv:23;
alt_u8 panasonic_hack:1;
alt_u32 misc_rsv:22;
} __attribute__((packed, __may_alias__));
alt_u32 data;
} misc_config_reg;

View File

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<EnsembleReport name="sys" kind="sys" version="1.0" fabric="QSYS">
<!-- Format version 17.1 590 (Future versions may contain additional information.) -->
<!-- 2019.03.22.23:06:25 -->
<!-- 2019.07.01.18:45:03 -->
<!-- A collection of modules and connections -->
<parameter name="AUTO_GENERATION_ID">
<type>java.lang.Integer</type>
<value>1553288785</value>
<value>1561995903</value>
<derived>false</derived>
<enabled>true</enabled>
<visible>false</visible>