mirror of
https://github.com/alangarf/apple-one.git
synced 2025-01-09 16:33:57 +00:00
Merge pull request #6 from trcwm/master
Add missing DE0 top level verilog file.
This commit is contained in:
commit
80cc4a96d1
54
rtl/boards/terasic_de0/apple1_de0_top.v
Normal file
54
rtl/boards/terasic_de0/apple1_de0_top.v
Normal file
@ -0,0 +1,54 @@
|
||||
// Licensed to the Apache Software Foundation (ASF) under one
|
||||
// or more contributor license agreements. See the NOTICE file
|
||||
// distributed with this work for additional information
|
||||
// regarding copyright ownership. The ASF licenses this file
|
||||
// to you under the Apache License, Version 2.0 (the
|
||||
// "License"); you may not use this file except in compliance
|
||||
// with the License. You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing,
|
||||
// software distributed under the License is distributed on an
|
||||
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
// KIND, either express or implied. See the License for the
|
||||
// specific language governing permissions and limitations
|
||||
// under the License.
|
||||
//
|
||||
// Description: Top level Apple 1 module for Terasic DE0 board
|
||||
//
|
||||
// Author.....: Niels A. Moseley
|
||||
// Date.......: 26-1-2018
|
||||
//
|
||||
|
||||
|
||||
module apple1_de0_top(
|
||||
input CLOCK_50, // the 50 MHz DE0 master clock
|
||||
|
||||
// UART I/O signals
|
||||
output UART_TXD, // UART transmit pin on DE0 board
|
||||
input UART_RXD, // UART receive pin on DE0 board
|
||||
output UART_CTS // UART clear-to-send pin on DE0 board
|
||||
);
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// Registers and Wires
|
||||
reg clk25;
|
||||
|
||||
// generate 25MHz clock from 50MHz master clock
|
||||
always @(posedge CLOCK_50)
|
||||
begin
|
||||
clk25 <= ~clk25;
|
||||
end
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// Core of system
|
||||
top core_top(
|
||||
.clk25(clk25),
|
||||
.rst_n(1'b1), // we don't have any reset pulse..
|
||||
.uart_rx(UART_RXD),
|
||||
.uart_tx(UART_TXD),
|
||||
.uart_cts(UART_CTS)
|
||||
);
|
||||
|
||||
endmodule
|
Loading…
Reference in New Issue
Block a user