URL
https://opencores.org/ocsvn/a-z80/a-z80/trunk
Subversion Repositories a-z80
[/] [a-z80/] [trunk/] [host/] [basic_nexys3/] [test_host.v] - Rev 15
Go to most recent revision | Compare with Previous | Blame | View Log
`timescale 1ns / 1ps //////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 00:18:56 02/14/2016 // Design Name: host // Module Name: R:/Z80/host/basic_nexys3/test_host.v // Project Name: host_nexys3 // Target Device: // Tool versions: // Description: // // Verilog Test Fixture created by ISE for module: host // // Dependencies: // // Revision: // Revision 0.01 - File Created // Additional Comments: // //////////////////////////////////////////////////////////////////////////////// module test_host; // Inputs reg CLOCK_100; reg KEY0; reg KEY1; reg KEY2; // Outputs wire UART_TXD; wire [7:0] GPIO_1; wire [7:0] GPIO_2; // Bidirs wire [7:0] GPIO_0; wire [7:0] GPIO_3; // Instantiate the Unit Under Test (UUT) host uut ( .CLOCK_100(CLOCK_100), .KEY0(KEY0), .KEY1(KEY1), .KEY2(KEY2), .UART_TXD(UART_TXD), .GPIO_0(GPIO_0), .GPIO_1(GPIO_1), .GPIO_2(GPIO_2), .GPIO_3(GPIO_3) ); initial begin CLOCK_100 = 0; KEY0 = 1; KEY1 = 0; KEY2 = 0; // 100 MHz -> 10MHz (pll) -> div 4 (clk divider) #(100/10*4 * 3); // hold for 3 CPU clock cycles #(100/10*4 * 3); // ...twice, due to the way our CLOCK_100 gen below works KEY0 = 0; end initial begin forever #1 CLOCK_100 = ~CLOCK_100; end endmodule
Go to most recent revision | Compare with Previous | Blame | View Log