-
Notifications
You must be signed in to change notification settings - Fork 0
/
ff_divtb.v
64 lines (51 loc) · 1.62 KB
/
ff_divtb.v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//////////////////////////////////////////////////////////////////////
// Created by Actel SmartDesign Fri Mar 03 03:12:04 2017
// Testbench Template
// This is a basic testbench that instantiates your design with basic
// clock and reset pins connected. If your design has special
// clock/reset or testbench driver requirements then you should
// copy this file and modify it.
//////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
// Company: <Name>
//
// File: ff_divtb.v
// File history:
// <Revision number>: <Date>: <Comments>
// <Revision number>: <Date>: <Comments>
// <Revision number>: <Date>: <Comments>
//
// Description:
//
// <Description here>
//
// Targeted device: <Family::Fusion> <Die::M1AFS1500> <Package::484 FBGA>
// Author: <Name>
//
///////////////////////////////////////////////////////////////////////////////////////////////////
`timescale 1ns / 100ps
module ff_divtb;
reg clock;
// Inputs
reg[7:0] dividend, divisor;
// Outputs
wire[17:0] out;
always #1 clock = ~clock; // Toggle clock every 1 tick
initial
begin
clock <= 0;
dividend <= 8'b00001011;
divisor <= 8'b00000110;
end
//////////////////////////////////////////////////////////////////////
// Instantiate Unit Under Test: ffamuldivinv
//////////////////////////////////////////////////////////////////////
ffamuldivinv ffamuldivinv_0 (
// Inputs
clock,
dividend,
divisor,
// Outputs
out
);
endmodule