[HDLBits] Tb/clock

You are provided a module with the following declaration:

复制代码
module dut ( input clk ) ;

Write a testbench that creates one instance of module dut (with any instance name), and create a clock signal to drive the module's clk input. The clock has a period of 10 ps. The clock should be initialized to zero with its first transition being 0 to 1.

051015202530354045...

复制代码
`timescale 1ps/1ps

//注意仿真单位ps
module top_module ( );
	parameter clk_period = 10;  
	reg clk;  
	initial
    	clk = 0;  
	always #(clk_period/2) clk = ~clk;  

    dut instance1(clk);
endmodule
相关推荐
暴风雨中的白杨3 小时前
fpga复位电平与资源消耗对比测试
fpga开发
ALINX技术博客4 小时前
【黑金云课堂】FPGA技术教程Linux开发:NVMe/Qt/OpenCV人脸检测
linux·qt·fpga开发
第二层皮-合肥4 小时前
【数据采集专栏】触发模式的设计
fpga开发
第二层皮-合肥4 小时前
【数据采集专栏】通道触发设计要点
fpga开发
高速上的乌龟4 小时前
Lattice LFCPNX-100 HSB+Fpga开发详解:2.4 Hololink I2C外设控制深度全解析
fpga开发
Kent Gu6 小时前
MCU & FPGA调试
单片机·嵌入式硬件·fpga开发
浩子智控6 小时前
EtherCAT技术概述
嵌入式硬件·fpga开发·硬件工程·信号处理
我爱C编程7 小时前
【仿真测试】基于FPGA的8ASK扩频通信链路实现,包含帧同步,定时点,扩频伪码同步,信道,误码统计
fpga开发·帧同步·定时点·扩频通信·8ask·扩频伪码
德思特8 小时前
软件定义GNSS模拟器技术原理与优势深度解析
fpga开发
GateWorld9 小时前
LCD显示技术完全指南:原理·制造·驱动·FPGA实现之点屏四 LVDS
fpga开发·lcd显示·fpga点亮屏幕·minilvds