Programs ReadMe

Rosemary Francis 2004

The Programs in this folder are written in N_105 assembler. They may be compiled using the assemblers Assembler_mif.java/Assembler_dat.java . Some are meant to run on their own, some as libraries. Display.s will display "HELLO WORLD" on the LCD display.

Note that Assembler.java will not compiler without Label.java

For accepted file format see the instructions at the top of Assembler.java. The assembler produces a .dat file which can be read by modelsim directly into the instruction memory. This file is usually... 

<system name>_system_sim\<mem name>_lane0.<mif/dat>

eg 
N_105\N_105_system_sim\onchip_rom_lane0.dat
N_105\onchip_rom_lane0.mif	

The .dat and .mif files can be converted into other formats using a nios program called nios convert. The .dat file if used by modelsim to fill the onchip memory when it is run and the .mif file is used by quartus in compilation to set up the rom in the programming file (the .sof).

Both project files are generated by SOPC Builder with blank contents so will need to be over written by the Assembler after each generation. This may seem like a really odd way of doing it but we are having problems with SOPC builder. We can't seem to get the memory contents option to work. :(

