From 50c947d333476ac8341dd0985d02a77c416c0326 Mon Sep 17 00:00:00 2001 From: Xing Zhao Date: Wed, 24 Jul 2019 15:57:26 +0800 Subject: Fix poweroff fail for Talos lite Talos lite has only one socket and unmounted all the components related to the second CPU. False power good of the second CPU's power may casue the system poweroff fail. So gate the power good of the second CPU's power by the present signal of the second CPU. Signed-off-by: Xing Zhao --- main.v | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'main.v') diff --git a/main.v b/main.v index 83e5d38..1d6bb49 100644 --- a/main.v +++ b/main.v @@ -866,18 +866,18 @@ module system_fpga_top pg_buf[0] = atx_pg; pg_buf[1] = miscio_pg; pg_buf[2] = vdna_pg; - pg_buf[3] = vdnb_pg | (~mfr_force_cpub_present & cpub_present_n & en_buf[3]); + pg_buf[3] = (~cpub_present_n & vdnb_pg) | (~mfr_force_cpub_present & cpub_present_n & en_buf[3]); pg_buf[4] = avdd_pg; pg_buf[5] = vioa_pg; - pg_buf[6] = viob_pg | (~mfr_force_cpub_present & cpub_present_n & en_buf[6]); + pg_buf[6] = (~cpub_present_n & viob_pg) | (~mfr_force_cpub_present & cpub_present_n & en_buf[6]); pg_buf[7] = vdda_pg; - pg_buf[8] = vddb_pg | (~mfr_force_cpub_present & cpub_present_n & en_buf[8]); + pg_buf[8] = (~cpub_present_n & vddb_pg) | (~mfr_force_cpub_present & cpub_present_n & en_buf[8]); pg_buf[9] = vcsa_pg; - pg_buf[10] = vcsb_pg | (~mfr_force_cpub_present & cpub_present_n & en_buf[10]); + pg_buf[10] = (~cpub_present_n & vcsb_pg) | (~mfr_force_cpub_present & cpub_present_n & en_buf[10]); pg_buf[11] = vppab_pg; - pg_buf[12] = vppcd_pg | (~mfr_force_cpub_present & cpub_present_n & en_buf[12]); + pg_buf[12] = (~cpub_present_n & vppcd_pg) | (~mfr_force_cpub_present & cpub_present_n & en_buf[12]); pg_buf[13] = vddrab_pg; - pg_buf[14] = vddrcd_pg | (~mfr_force_cpub_present & cpub_present_n & en_buf[14]); + pg_buf[14] = (~cpub_present_n & vddrcd_pg) | (~mfr_force_cpub_present & cpub_present_n & en_buf[14]); end // Enable outputs -- cgit v1.2.1