/cdecv_programmer

prgrammer for cdecv_with monitor

Primary LanguageRuby

cdecv_programmer

Programmer for cdecv_with_monitor(https://github.com/rikitoro/cdecv_with_monitor)

Installation

$ bundle install 

How to use

program (download the hexfile onto CDEC v's RAM)

$ bundle exec ruby cdecv_programmer.rb /dev/ttyS2 hexfile_sample/bitcount_test.hex
WM:10000000821381FF21E40BE80EC00442C004A8FF00
WM:10001000A814FF0000000000000000000000000000
DONE

read CDEC v's RAM

$ bundle exec ruby cdecv_ramreader.rb /dev/ttyS2
:10000000821381FF21E40BE80EC00442C004A8FF64
:10001000A814FF0004000000000000000000000021
:1000200000000000000000000000000000000000D0
:1000300000000000000000000000000000000000C0
:1000400000000000000000000000000000000000B0
:1000500000000000000000000000000000000000A0
:100060000000000000000000000000000000000090
:100070000000000000000000000000000000000080
:100080000000000000000000000000000000000070
:100090000000000000000000000000000000000060
:1000A0000000000000000000000000000000000050
:1000B0000000000000000000000000000000000040
:1000C0000000000000000000000000000000000030
:1000D0000000000000000000000000000000000020
:1000E0000000000000000000000000000000000010
:0F00F00000000000000000000000000000000001
:00000001FF

get more information (not implemented yet)

$ bundle exec ruby cdecv_monitor.rb /dev/ttyS2
{"PC":"08","A":"00","B":"04","C":"00","T":"00","R":"08","FLG":"04","Xbus":"08","MA":"07","WD":"04","RD":"E8","I":"E8","xsrc":"000","xdst":"0000001010","aluop":"0111","cycle":"00DC"}