Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A MIPS-like ISA design, assembler, and simulator.
Python Assembly C
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
coe
doc
src
test
.gitignore
LICENSE
README.md
as
sim

README.md

Brandon Carl's Amazing Architecture

 ,ggggggggggg,       ,gggg,            ,ggg,             ,ggg,
dP"""88""""""Y8,   ,88"""Y8b,         dP""8I            dP""8I
Yb,  88      `8b  d8"     `Y8        dP   88           dP   88
 `"  88      ,8P d8'   8b  d8       dP    88          dP    88
     88aaaad8P" ,8I    "Y88P'      ,8'    88         ,8'    88
     88""""Y8ba I8'                d88888888         d88888888
     88      `8bd8           __   ,8"     88   __   ,8"     88
     88      ,8PY8,         dP"  ,8P      Y8  dP"  ,8P      Y8
     88_____,d8'`Yba,,_____,Yb,_,dP       `8b,Yb,_,dP       `8b,
    88888888P"    `"Y8888888 "Y8P"         `Y8 "Y8P"         `Y8

Specification

http://cseweb.ucsd.edu/classes/sp12/cse141/project/

Author

Brandon Carl (bcarl)

Wiki

BCAA Wiki

License

Copyright (c) 2012, Brandon Carl
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

- Redistributions of source code must retain the above copyright notice,
  this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice,
  this list of conditions and the following disclaimer in the documentation
  and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

Included Files

  • as: BCAA ISA Assembler program.
  • sim: BCAA ISA Simulator program.
  • doc/BCAA - Golden Release.pdf: BCAA ISA Manual and documentation.
  • src/*.{c,s}: Source files for SuperGarbage and fib programs.
  • coe/*.coe: Output files from assembler for SuperGarbage and fib programs.
  • test/*.sim: BCAA Simulator test cases.

Running the Assembler

$ ./as src/fib.s coe/fib

Running the Simulator

$ ./sim test/fib_-1.sim 
> iload coe/fib_i.coe 0
Loading instruction file...................................................................done.
> dload coe/fib_d.coe 0
Loading data file...done.
> put_channel 0 -1
> go 2000
set $0, 0x0; in $0, $0; movpc $7; set $6, 0x4; br $6; set $6, 0x7; bgtei $0, 0x0; set $6, 0x3; slea 0xde; slea 0xad; slea 0xbe; slea 0xef; jr $7; set $0, 0x0; out $6, $0; Halting.
> dump_channel 0
Channel Buffer Contents:
 0: 0x3deadbeef
> instr_count
instr_count: 16
> edp
Current EDP: 5120
>
Something went wrong with that request. Please try again.