mirror of https://github.com/YosysHQ/yosys.git
Proper example code
This commit is contained in:
parent
a502570c25
commit
27c5bafc95
|
@ -185,7 +185,7 @@ module grom_cpu(
|
||||||
`ifdef DISASSEMBLY
|
`ifdef DISASSEMBLY
|
||||||
$display("INC R%d",IR[1:0]);
|
$display("INC R%d",IR[1:0]);
|
||||||
`endif
|
`endif
|
||||||
alu_op <= 4'b0001; // ALU_OP_ADD
|
alu_op <= 4'b0000; // ALU_OP_ADD
|
||||||
end
|
end
|
||||||
2'b01 : begin
|
2'b01 : begin
|
||||||
`ifdef DISASSEMBLY
|
`ifdef DISASSEMBLY
|
||||||
|
|
|
@ -27,6 +27,8 @@ module ram_memory(
|
||||||
store[256] <= 8'b11010001; // OUT [0],R1
|
store[256] <= 8'b11010001; // OUT [0],R1
|
||||||
store[257] <= 8'b00000000; //
|
store[257] <= 8'b00000000; //
|
||||||
store[258] <= 8'b01111110; // RET
|
store[258] <= 8'b01111110; // RET
|
||||||
|
|
||||||
|
store[512] <= 8'b00000000;
|
||||||
end
|
end
|
||||||
|
|
||||||
always @(posedge clk)
|
always @(posedge clk)
|
||||||
|
|
Loading…
Reference in New Issue