From 585cd33baeee5991b174500c580cd12440faca04 Mon Sep 17 00:00:00 2001 From: nukeykt Date: Sat, 2 Sep 2023 11:39:44 +0900 Subject: [PATCH] ym3438: fix fast envelope decoding --- ym3438_eg.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ym3438_eg.v b/ym3438_eg.v index 01f04a5..019e0f5 100644 --- a/ym3438_eg.v +++ b/ym3438_eg.v @@ -306,8 +306,8 @@ module ym3438_eg wire rate_sum_not_max = rate_sum_clamp[5:1] != 5'h1f; wire rate_sum_12 = rate_sum_clamp[5:2] != 4'hc; - wire rate_sum_13 = rate_sum_clamp[5:2] != 4'he; - wire rate_sum_14 = rate_sum_clamp[5:2] != 4'hd; + wire rate_sum_13 = rate_sum_clamp[5:2] != 4'hd; + wire rate_sum_14 = rate_sum_clamp[5:2] != 4'he; wire rate_sum_15 = rate_sum_clamp[5:2] != 4'hf; wire rate_not_max_sr_o; // ~eg_maxrate[1]