connect interrupt pin
This commit is contained in:
parent
5445cd8335
commit
6da2127cec
|
@ -39,6 +39,9 @@ module apple1(
|
||||||
// I/O interface to keyboard
|
// I/O interface to keyboard
|
||||||
input ps2_clk, // PS/2 keyboard serial clock input
|
input ps2_clk, // PS/2 keyboard serial clock input
|
||||||
input ps2_din, // PS/2 keyboard serial data input
|
input ps2_din, // PS/2 keyboard serial data input
|
||||||
|
|
||||||
|
// interrupt signa
|
||||||
|
input INT_n,
|
||||||
|
|
||||||
// Outputs to VGA display
|
// Outputs to VGA display
|
||||||
output vga_h_sync, // hozizontal VGA sync pulse
|
output vga_h_sync, // hozizontal VGA sync pulse
|
||||||
|
@ -76,7 +79,7 @@ module apple1(
|
||||||
.dbi (cpu_din),
|
.dbi (cpu_din),
|
||||||
.dbo (cpu_dout),
|
.dbo (cpu_dout),
|
||||||
.we (we),
|
.we (we),
|
||||||
.irq_n (1'b1),
|
.irq_n (INT_n),
|
||||||
.nmi_n (1'b1),
|
.nmi_n (1'b1),
|
||||||
.ready (cpu_clken)
|
.ready (cpu_clken)
|
||||||
);
|
);
|
||||||
|
|
|
@ -6,8 +6,7 @@
|
||||||
|
|
||||||
// TODO use a CPU that allows illegal instructions
|
// TODO use a CPU that allows illegal instructions
|
||||||
// TODO ram refresh lost CPU cycles
|
// TODO ram refresh lost CPU cycles
|
||||||
// TODO power on-off key ? (init ram)
|
// TODO power on-off key ? init ram with values
|
||||||
// TODO implement power off/on with F9
|
|
||||||
// TODO ram powerup initial values
|
// TODO ram powerup initial values
|
||||||
// TODO reorganize file structure
|
// TODO reorganize file structure
|
||||||
// TODO ACI: wav tools
|
// TODO ACI: wav tools
|
||||||
|
@ -332,9 +331,13 @@ apple1 apple1
|
||||||
.ram_dout (bus_dout),
|
.ram_dout (bus_dout),
|
||||||
.ram_rd (cpu_rd),
|
.ram_rd (cpu_rd),
|
||||||
.ram_wr (cpu_wr),
|
.ram_wr (cpu_wr),
|
||||||
|
|
||||||
|
// ps2 keyboard
|
||||||
.ps2_clk(ps2_kbd_clk),
|
.ps2_clk(ps2_kbd_clk),
|
||||||
.ps2_din(ps2_kbd_data),
|
.ps2_din(ps2_kbd_data),
|
||||||
|
|
||||||
|
// interrupt signal
|
||||||
|
.INT_n(VDP_INT_n),
|
||||||
|
|
||||||
.vga_h_sync(hs),
|
.vga_h_sync(hs),
|
||||||
.vga_v_sync(vs),
|
.vga_v_sync(vs),
|
||||||
|
@ -595,7 +598,7 @@ vram vram
|
||||||
);
|
);
|
||||||
|
|
||||||
wire [7:0] vdp_dout;
|
wire [7:0] vdp_dout;
|
||||||
wire VDP_INT_n; // TODO not connected yet
|
wire VDP_INT_n;
|
||||||
|
|
||||||
// divide by two the vdp_clock (which is doubled for the scandoubler)
|
// divide by two the vdp_clock (which is doubled for the scandoubler)
|
||||||
reg vdp_ena;
|
reg vdp_ena;
|
||||||
|
|
Loading…
Reference in New Issue