// Define Opcodes: // `define NOP 4'd0 `define JMP 4'd1 `define JMPZ 4'd2 `define JMPNZ 4'd3 `define LDA 4'd4 `define ADD 4'd5 `define SUB 4'd6 `define AND 4'd7 `define OR 4'd8 `define NOT 4'd9 `define LSL 4'd10 `define LSR 4'd11 `define STA 4'd15 // Define ALU Function Codes: // `define FnACC 4'd0 `define FnMem 4'd4 `define FnADD 4'd5 `define FnSUB 4'd6 `define FnAND 4'd7 `define FnOR 4'd8 `define FnNOT 4'd9 `define FnLSL 4'd10 `define FnLSR 4'd11 // The following line indicates that a file "monitor.sv" exists and contains // custom monitoring information // `define special_monitor // The following line indicates that a file "stimulus.sv" exists and contains // custom stimulus information // (not required for simple simulations) // //`define special_stimulus // The following line specifies the appropriate address map to be supported // by the address decoder - the possible values are // reduced_address_map, full_address_map, address_map_0209 // (changing this line modifies the addresses for the Switches and LEDs!) // `define reduced_address_map // The following code specifies the default value of the input switches // for the simulation in not already defined from the command line // `ifdef switch_value // already defined - do nothing `else `define switch_value 7 `endif