Proper example code
authorMiodrag Milanovic <mmicko@gmail.com>
Mon, 14 Mar 2022 14:39:11 +0000 (15:39 +0100)
committerMiodrag Milanovic <mmicko@gmail.com>
Mon, 14 Mar 2022 14:39:11 +0000 (15:39 +0100)
tests/sat/grom_cpu.v
tests/sat/ram_memory.v

index f9fef043b859759dc4beb849dd6b0882be1c9cda..914c0f56c4de7d38e56ca3043416e05c5c8e28e2 100644 (file)
@@ -185,7 +185,7 @@ module grom_cpu(
                                                                                                        `ifdef DISASSEMBLY
                                                                                                        $display("INC R%d",IR[1:0]);
                                                                                                        `endif
-                                                                                                       alu_op  <= 4'b0001;     // ALU_OP_ADD
+                                                                                                       alu_op  <= 4'b0000;     // ALU_OP_ADD
                                                                                                        end
                                                                                        2'b01 : begin
                                                                                                        `ifdef DISASSEMBLY
index 053ef206cc958327dcd28e9465593670d6dae804..0d91514b255cd718284c8268aeddb65a4fe79c3d 100644 (file)
@@ -27,6 +27,8 @@ module ram_memory(
        store[256] <= 8'b11010001; // OUT [0],R1
        store[257] <= 8'b00000000; //
        store[258] <= 8'b01111110; // RET
+
+       store[512] <= 8'b00000000;
   end
 
   always @(posedge clk)