/* ARM Stripe Verilog Module This module provides an interface between the Embedded Stripe and the pins it uses. It also uses the module LEDCLOCK.V to output a value from the dual-ported RAM onto the LED Clock display that should be attached to the IO board. */ module main( CLK,CLK_REF, NRESET,NPOR, UARTB_RXD, UARTB_DSR_N, UARTB_CTS_N, UARTB_RI_N, UARTB_DCD_N, UARTB_TXD, UARTB_RTS_N, UARTB_DTR_N, HDR_ENABLE, IOBOARD_B); // LED Display output output [15:0]IOBOARD_B; // Header Enable pin output HDR_ENABLE; assign HDR_ENABLE = 0; // Other inputs and outputs related to the ARM Stripe input UARTB_RXD,UARTB_DSR_N,UARTB_CTS_N; inout UARTB_RI_N,UARTB_DCD_N; output UARTB_TXD,UARTB_RTS_N,UARTB_DTR_N; input CLK,CLK_REF; inout NRESET; input NPOR; // Dual-Ported RAM pins wire dp_clk; wire dp_we; wire [12:0]dp_addr; wire [15:0]dp_datain; wire [15:0]dp_dataout; // The ARM Stripe module itself arm(CLK_REF, NPOR, NRESET, UARTB_RXD, UARTB_DSR_N, UARTB_CTS_N, UARTB_RI_N, UARTB_DCD_N, UARTB_TXD, UARTB_RTS_N, UARTB_DTR_N, dp_clk, dp_we, dp_addr, dp_datain, dp_dataout); // The LED Driver Module ledclock(CLK,IOBOARD_B,dp_dataout); // Control for dual-ported RAM assign dp_clk = CLK; assign dp_we = 0; assign dp_addr = 0; // we only need to look at address 0 at the moment endmodule