Cores-VeeR-EH2 icon indicating copy to clipboard operation
Cores-VeeR-EH2 copied to clipboard

Can't execute "coredecode -in decode > coredecode.e"

Open Jeremy-Jia opened this issue 3 years ago • 9 comments

// file "decode" is human readable file that has all of the instruction decodes defined and is part of git repo // modify this file as needed

// to generate all the equations below from "decode" except legal equation:

// 1) coredecode -in decode > coredecode.e

// 2) espresso -Dso -oeqntott coredecode.e | addassign -pre out. > equations

I just read the annotation, but the "coredecode -in decode > coredecode.e" is a commandLIne or something? I cant execute it, should i install some packages for serving these? thank.

Jeremy-Jia avatar Sep 29 '21 02:09 Jeremy-Jia

Hi The coredecode is a perl script and you can find it here https://github.com/chipsalliance/Cores-SweRV-EH2/blob/master/tools/coredecode I haven't used it by myself though

vignajeth avatar Sep 29 '21 09:09 vignajeth

Thanks That does work!

Jeremy-Jia avatar Sep 29 '21 14:09 Jeremy-Jia

From where I can find the espresso tool?

zeeshanrafique23 avatar Apr 24 '22 20:04 zeeshanrafique23

Hi @zeeshanrafique23 . You can find the espresso source here https://ptolemy.berkeley.edu/projects/embedded/pubs/downloads/espresso/index.htm Last release was in 1988 and there exists some modern reimplementations on GitHub and as Debian packages too

olofk avatar Apr 24 '22 20:04 olofk

Hi @olofk I tried this earlier but it was throwing some errors during make. I tried this repo also https://github.com/classabbyamp/espresso-logic but when I make it create the object files of C files, I not sure how to use it further. I want the executable which I can run directly as a command.

zeeshanrafique23 avatar Apr 25 '22 05:04 zeeshanrafique23

Hi @zeeshanrafique23 I remember using the link shared by olof for espresso but if you face some errors try using the executable directly from this link http://users.ece.utexas.edu/~patt/06s.382N/tutorial/espresso_manual.html change the espresso.linux file to espresso and make it executable by using chmod command

vignajeth avatar Apr 25 '22 08:04 vignajeth

Great, thanks @vignajeth it's working. Getting another error while running the espresso command, which does make sense but how to get rid out of it?

$ espresso -Dso -oeqntott coredecode.e | addassign -pre out.  > equations
 addassign: command not found

zeeshanrafique23 avatar Apr 25 '22 11:04 zeeshanrafique23

The addassign is a perl script and you can find it under tools folder

vignajeth avatar Apr 25 '22 11:04 vignajeth

Ahh got it many thanks.

zeeshanrafique23 avatar Apr 25 '22 11:04 zeeshanrafique23