fixed a few errors yosys didn't care about but icecube2 does

This commit is contained in:
Alan Garfield 2018-10-22 00:08:54 +11:00
parent 7ce76a224d
commit d6a31cfd0e

View File

@ -18,8 +18,8 @@
// Description: Apple 1 implementation for the iCE40HX8K dev // Description: Apple 1 implementation for the iCE40HX8K dev
// board. // board.
// //
// Author.....: Miodrag Milanovic // Author.....: Alan Garfield
// Date.......: 11-2-2018 // Date.......: 21-10-2018
// //
module apple1_top #( module apple1_top #(
@ -38,9 +38,9 @@ module apple1_top #(
// 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
output reg vga_red, // red VGA signal output vga_red, // red VGA signal
output reg vga_grn, // green VGA signal output vga_grn, // green VGA signal
output reg vga_blu, // blue VGA signal output vga_blu, // blue VGA signal
inout lt_dat, inout lt_dat,
inout lt_env inout lt_env
@ -55,6 +55,7 @@ module apple1_top #(
.RESET(1'b1) .RESET(1'b1)
); );
// lighthouse sensor
reg lt_data_rw; reg lt_data_rw;
wire lt_data_in, lt_data_out; wire lt_data_in, lt_data_out;
SB_IO #( SB_IO #(
@ -79,6 +80,12 @@ module apple1_top #(
.D_OUT_0(lt_env_out) .D_OUT_0(lt_env_out)
); );
assign lt_data_rw = 1'b0;
assign lt_data_out = 1'b0;
assign lt_env_rw = 1'b0;
assign lt_env_out = 1'b0;
// program counter
wire pc_monitor; wire pc_monitor;
// apple one main system // apple one main system
@ -91,16 +98,18 @@ module apple1_top #(
) my_apple1( ) my_apple1(
.clk25(clk25), .clk25(clk25),
.rst_n(1'b1), .rst_n(1'b1),
//.ps2_clk(),
//.ps2_din(),
.ps2_select(1'b0), .ps2_select(1'b0),
.uart_rx(uart_rx), .uart_rx(uart_rx),
.uart_tx(uart_tx), .uart_tx(uart_tx),
.ps2_clk(1'b0),
.ps2_din(1'b0),
.ps2_select(1'b0),
.vga_h_sync(vga_h_sync), .vga_h_sync(vga_h_sync),
.vga_v_sync(vga_v_sync), .vga_v_sync(vga_v_sync),
.vga_red(vga_red), .vga_red(vga_red),
.vga_grn(vga_grn), .vga_grn(vga_grn),
.vga_blu(vga_blu), .vga_blu(vga_blu),
.vga_cls(1'b0),
.pc_monitor(pc_monitor) .pc_monitor(pc_monitor)
); );