Spin Semiconductor Forum Index Spin Semiconductor
Support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Alternate Assembler

 
Post new topic   Reply to topic    Spin Semiconductor Forum Index -> FV-1 software questions
View previous topic :: View next topic  
Author Message
ndf



Joined: 20 Jun 2017
Posts: 1

PostPosted: Mon Jun 26, 2017 7:50 am    Post subject: Alternate Assembler Reply with quote

For anyone looking for an alternative assembler to the one provided with SpinIDE, here's a simple python script I made up: asfv1

This assembler is pure python3, so it should run on anything that can run python. It mostly replicates behaviour of the SpinIDE, with a few minor caveats. The biggest difference is that you can specify integer values for all real operands, and you can specify real arguments for any of the 24bit accumulator instructions.

To install, run:

pip3 install asfv1

Or download from PyPi:

https://pypi.python.org/pypi/asfv1

Also available from github:

https://github.com/ndf-zz/asfv1

It runs on the command line:

--

$ asfv1 -h
usage: asfv1 [-h] [-q] [-c] [-n] [-p {0,1,2,3,4,5,6,7}] [-b]
[infile] [outfile]

Assemble a single FV-1 DSP program.

positional arguments:
infile program source file
outfile assembled output file

optional arguments:
-h, --help show this help message and exit
-q, --quiet suppress warnings
-c, --clamp clamp out of range values without error
-n, --noskip don't skip unused instruction space
-p {0,1,2,3,4,5,6,7} target program number (hex output)
-b, --binary write binary output instead of hex

--

If anyone really wants a windows package, let me know - should be possible. Any comments or suggestions are very welcome.

I've also got a working python/libusb script to read/write and verify programs on the devel board, but it's a little messy and requires some more work to get it working reliably.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Spin Semiconductor Forum Index -> FV-1 software questions All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group