OpenCores
URL https://opencores.org/ocsvn/quark/quark/trunk

Subversion Repositories quark

[/] [quark/] [trunk/] [05_HDLConstruction/] [01_OldArchitecture_ReferenceOnly/] [Alu/] [AluTestBench.v] - Rev 10

Compare with Previous | Blame | View Log

`timescale 1ns / 1ps
 
////////////////////////////////////////////////////////////////////////////////
// Company: 
// Engineer:
//
// Create Date:   22:11:23 09/06/2014
// Design Name:   ModAlu
// Module Name:   C:/Quantum/ALU/ALU_TB.v
// Project Name:  Quantum
// Target Device:  
// Tool versions:  
// Description: 
//
// Verilog Test Fixture created by ISE for module: ModAlu
//
// Dependencies:
// 
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
// 
////////////////////////////////////////////////////////////////////////////////
 
module ALU_TB;
 
	// Inputs
	reg Clock;
	reg Reset;
	reg [0:7] Mnemonic;
	reg [0:7] Data0;
	reg [0:7] Data1;
 
	// Outputs
	wire [0:15] Result;
 
	// Instantiate the Unit Under Test (UUT)
	ModAlu uut (
		.Clock(Clock), 
		.Reset(Reset), 
		.Mnemonic(Mnemonic), 
		.Data0(Data0), 
		.Data1(Data1), 
		.Result(Result)
	);
 
   always@(*) begin
	  #10;
	  Clock = ~Clock;
	end
 
	initial begin
		// Initialize Inputs
		Reset = 0;
		Mnemonic = 0;
		Data0 = 0;
		Data1 = 0;
 
		// Wait 100 ns for global reset to finish
		#100;
 
		// Add stimulus here
 
	end
endmodule
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.