Logic design 1 (Verilog) -- Synchronized reset flipflop

教程介绍如何在CentOS7上安装Python并用于管理VCS壳命令。以一个具有同步复位和负电平复位的简单缓冲器为例,编写Verilog代码和测试 bench,并在Synopsys VCS上进行仿真。
摘要由CSDN通过智能技术生成

Synopsys VCS Tutorial -- Logic Design 1

Introduction

In this tutorial, we will discover how to install Python interpreter on CentOS7 and use Python to manage VCS shell commands. Arguably Perl might be the best language to perform this task since its a language optimized for extracting information from input and report text files. We’ll use Python 3 here just because that Python is more popular than Perl in any other industries.
The demo example we will use in this tutorial is a simple buffer with synchronized reset and negative level reset. Otherwise, the flip-flop will just passing the input to the output at every rising edge of the clock. We will write the buffer and a testbench in Verilog language and simulate it on Synopsys VCS.

Code

  1. Make a folder: mkdir /home/workstation/playground/prj1
  2. Write a flipflop in flipflop.v;
  3. Write a testbench and instantiate the flipflop in top.v
  4. List both flipflop.v and top.v in a text file filelist.f
  5. Create a Python script to parse the text file and configure the input commands to call VCS simulator.
  • Do the following steps to install Python 3.6 on centos7.
  • Make sure your system’s repository is up to date.
		# yum -y update
  • Install utilities and plugins that supports yum.
		# yum -y install yum-utils
  • Install centos development tools for compiling source code.
		# yum -y groupinstall development
		# yum -y install https://centos7.iuscommunity.org/ius-release.rpm
		# yum -y install python36u
  • If the version is outdated, install the recommended one by the system.
  • Install pip to manage and install Python packages.
		# yum -y install python36u-pip
  • Try if you can install a Python package using pip, e.g. numpy.
		# pip3.6 install numpy
  • Install Python 3 libraries and header files.
		# yum -y install python36u-devel
	 	# python --version
  • Try # python to invoke Python 2.7 and # python3.6 to invoke Python 3
		# python
		# exit()
		# python3.6

flipflop.v

  1 module flipflop(
  2         clock,
  3         reset,
  4        
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值