📄 a86_offset_sel.v
字号:
// http://gforge.openchip.org/projects/a86
`include "timescale.v"
module a86_offset_sel(
sel,
ea,
sp,
ip,
offset);
input [1:0] sel;
input [15:0] ea;
input [15:0] sp;
input [15:0] ip;
output [15:0] offset;
reg [15:0] offset;
always @ (sel,sp,ip,ea)
case(sel)
2'b01: offset = sp;
2'b10: offset = ip;
default offset = ea;
endcase
//always @(sp,ip,ea) offset = 16'h1234;
endmodule
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -