connect interrupt pin

This commit is contained in:
nino-porcino 2022-01-08 14:23:29 +01:00
parent 5445cd8335
commit 6da2127cec
2 changed files with 11 additions and 5 deletions

View File

@ -40,6 +40,9 @@ module apple1(
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
output vga_v_sync, // vertical VGA sync pulse output vga_v_sync, // vertical 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)
); );

View File

@ -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
@ -333,9 +332,13 @@ apple1 apple1
.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),
.vga_red(r), .vga_red(r),
@ -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;