我从代码中摘录如下:
always @(posedge clear, negedge clock)
if (clear) begin
// Reset content
for (i = 0; i < 512; i = i + 1)
content[i] = 0;
// Initial values for instruction memory
content[0] = 32'h00221820; // add $3, $1, $2
content[1] = 32'h00221822; // sub $3, $1, $2
content[2] = 32'h00221824; // and $3, $1, $2
content[3] = 32'h00221825; // or $3, $1, $2
content[4] = 32'h0022182a; // slt $3, $1, $2
content[5] = 32'h0041182a; // slt $3, $2, $1
content[6] = 32'h1140fff9; // beq $10, $0, main
content[7] = 32'h8d430000; // lw $3, 0($10)
content[8] = 32'h8d430004; // lw $3, 4($10)
content[9] = 32'had430008; // sw $3, 8($10)
content[10] = 32'h; // jal main
// Initial values for data memory
// Mem[0x10010000] = 100
// Mem[0x10010004] = 200
content[256] = 100;
content[257] = 200;
end
我需要为指令&#34; jal main&#34;添加内容[10] 32位值,但我不知道如何获取该值或其他32位值来自何处从。我怎么能搞清楚这一点?