I need to write a series of test benches for a simple processor model written in VHDL. I need a piece of code that converts an instruction into assembly code (MIPS) into a binary string. I don't need anything clean or elegant. The only goal is to speed up testing. I thought to write emacs or vim script with abbreviations or something like that. What are you offering?
If you say vim and emacs, you can try a simple bash script. You can easily read line-by-line in a file, and line parsing and case arguments are quite effective (especially if you use $ IFS wisely). Otherwise, it sounds like work for the scripting language of your choice, be it bash, perl, ruby, python, vim macros or something else.
You can try the old Cu M- | send the mips string in emacs to an external program and replace the string with the results. Thus, you can use any method that you want to write to a real program.
, MIPS , , , script ( , , , ), , - MIPS.
Source: https://habr.com/ru/post/1778500/More articles:novice phpUnit - phpHow to make a rotating object (sphere, window, etc.) Using only canvas - javascriptRUBY: how to resolve circular dependency in constant definitions? - ruby | fooobar.comJAVA: 128-bit key for String problem and back - javaPHP code Insert empty records into MySQL database - phpHow to avoid special characters in NSString using RegexKitLite? - objective-cHorizontal nested list using CSS - listWaiting for a wait service 2 json objects - jsonПроблема при создании прокси-сервера службы из WSDL с недопустимым SSL-сертификатом - c#Creating a ComboBox with one or more separator elements? - delphiAll Articles