Skip to content

kdurant/verilog-testbench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

AutoTestbench

A simple plugin for edit verilog. I hope you like it.

Feature

  • Generate component instance
  • Support verilog-2001 syntax
  • need python3

Installation

Plug 'kdurant/verilog-testbench'

Usage

  • Run :Testbench to generate testbench templet
  • Run :VerilogInstance to generate component instance
  • Run :VerilogInterface to generate interface(SystemVerilog) templet
  • Run :VerilogClass to generate class(SystemVerilog) templet You use p to paste it.

Recommend module(port) declaration

module spi_slave_core
(
    input  wire                 clk,
    input  wire                 rst,

    input  wire                 spi_dummy,
    input  wire [7:0]           spi_tx_data,

    output reg                  spi_oe,
    output reg [7:0]            spi_rx_data
);

Note

  1. This plugin don't check your syntax whether is corrected.

  2. Don't support port declaration like below:

intput      a,
b, c ;
intput      a, b, c, d;
  1. parameter declaration must like below:
module Top #
(
  parameter SATA_BURST_SIZE     = 32'd16*1024
)
(
    input   xxx,
    output  xxx
);

About

auto generate verilog testbench file

Resources

Stars

Watchers

Forks

Packages

No packages published