From: Luke Kenneth Casson Leighton Date: Thu, 26 Nov 2020 20:52:34 +0000 (+0000) Subject: add old SVPrefix "Forms" to sv_analysis.py X-Git-Tag: convert-csv-opcode-to-binary~1652 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4cb5f8b8e4701ed82de57b85b368f2380fd29527;p=libreriscv.git add old SVPrefix "Forms" to sv_analysis.py --- diff --git a/openpower/sv_analysis.py b/openpower/sv_analysis.py index 826432d1f..2066b17ee 100644 --- a/openpower/sv_analysis.py +++ b/openpower/sv_analysis.py @@ -174,6 +174,29 @@ def process_csvs(): primarykeys = list(primarykeys) primarykeys.sort() + # mapping to old SVPrefix "Forms" + mapsto = {'3R-1W-CRio': 'FR4', + '2R-1W-CRio': 'R', + '2R-1W-CRi': 'R', + '2R-1W-CRo': 'R', + '2R-1W': 'R', + '2R-CRio': 'R', + '2R-CRo': 'R', + '1R-1W-CRio': 'R', + '1R-1W-CRo': 'R', + '1R-1W': 'R', + '1R-1W': 'R', + } + print ("# map to old SV Prefix") + print ('') + print ('[[!table data="""') + for key in primarykeys: + name = keyname(dictkeys[key]) + value = mapsto.get(name, "-") + print (tformat([name, value+ " "])) + print ('"""]]') + print ('') + print ("# keys") print ('') print ('[[!table data="""')