//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//// ////
|
//// ////
|
//// Clock and Reset Generator ////
|
//// Clock and Reset Generator ////
|
//// ////
|
//// ////
|
//// This file is part of the GPIO project ////
|
//// This file is part of the GPIO project ////
|
//// http://www.opencores.org/cores/gpio/ ////
|
//// http://www.opencores.org/cores/gpio/ ////
|
//// ////
|
//// ////
|
//// Description ////
|
//// Description ////
|
//// Clock and reset generator. ////
|
//// Clock and reset generator. ////
|
//// ////
|
//// ////
|
//// To Do: ////
|
//// To Do: ////
|
//// Nothing ////
|
//// Nothing ////
|
//// ////
|
//// ////
|
//// Author(s): ////
|
//// Author(s): ////
|
//// - Damjan Lampret, lampret@opencores.org ////
|
//// - Damjan Lampret, lampret@opencores.org ////
|
//// ////
|
//// ////
|
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//// ////
|
//// ////
|
//// Copyright (C) 2000 Authors and OPENCORES.ORG ////
|
//// Copyright (C) 2000 Authors and OPENCORES.ORG ////
|
//// ////
|
//// ////
|
//// This source file may be used and distributed without ////
|
//// This source file may be used and distributed without ////
|
//// restriction provided that this copyright statement is not ////
|
//// restriction provided that this copyright statement is not ////
|
//// removed from the file and that any derivative work contains ////
|
//// removed from the file and that any derivative work contains ////
|
//// the original copyright notice and the associated disclaimer. ////
|
//// the original copyright notice and the associated disclaimer. ////
|
//// ////
|
//// ////
|
//// This source file is free software; you can redistribute it ////
|
//// This source file is free software; you can redistribute it ////
|
//// and/or modify it under the terms of the GNU Lesser General ////
|
//// and/or modify it under the terms of the GNU Lesser General ////
|
//// Public License as published by the Free Software Foundation; ////
|
//// Public License as published by the Free Software Foundation; ////
|
//// either version 2.1 of the License, or (at your option) any ////
|
//// either version 2.1 of the License, or (at your option) any ////
|
//// later version. ////
|
//// later version. ////
|
//// ////
|
//// ////
|
//// This source is distributed in the hope that it will be ////
|
//// This source is distributed in the hope that it will be ////
|
//// useful, but WITHOUT ANY WARRANTY; without even the implied ////
|
//// useful, but WITHOUT ANY WARRANTY; without even the implied ////
|
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ////
|
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ////
|
//// PURPOSE. See the GNU Lesser General Public License for more ////
|
//// PURPOSE. See the GNU Lesser General Public License for more ////
|
//// details. ////
|
//// details. ////
|
//// ////
|
//// ////
|
//// You should have received a copy of the GNU Lesser General ////
|
//// You should have received a copy of the GNU Lesser General ////
|
//// Public License along with this source; if not, download it ////
|
//// Public License along with this source; if not, download it ////
|
//// from http://www.opencores.org/lgpl.shtml ////
|
//// from http://www.opencores.org/lgpl.shtml ////
|
//// ////
|
//// ////
|
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//
|
//
|
// CVS Revision History
|
// CVS Revision History
|
//
|
//
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
// Revision 1.1 2001/06/05 07:45:21 lampret
|
// Revision 1.1 2001/06/05 07:45:21 lampret
|
// Added initial RTL and test benches. There are still some issues with these files.
|
// Added initial RTL and test benches. There are still some issues with these files.
|
//
|
//
|
//
|
//
|
|
|
`include "timescale.v"
|
`include "timescale.v"
|
|
|
module clkrst(clk_o, rst_o);
|
module clkrst(clk_o, rst_o);
|
|
|
//
|
//
|
// I/O ports
|
// I/O ports
|
//
|
//
|
output clk_o; // Clock
|
output clk_o; // Clock
|
output rst_o; // Reset
|
output rst_o; // Reset
|
|
|
//
|
//
|
// Internal regs
|
// Internal regs
|
//
|
//
|
reg clk_o; // Clock
|
reg clk_o; // Clock
|
reg rst_o; // Reset
|
reg rst_o; // Reset
|
|
|
initial begin
|
initial begin
|
clk_o = 0;
|
clk_o = 0;
|
rst_o = 1;
|
rst_o = 1;
|
#20;
|
#20;
|
rst_o = 0;
|
rst_o = 0;
|
end
|
end
|
|
|
//
|
//
|
// Clock
|
// Clock
|
//
|
//
|
always #4 clk_o = ~clk_o;
|
always #4 clk_o = ~clk_o;
|
|
|
endmodule
|
endmodule
|
|
|