Subversion Repositories programming

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
207 ira 1
/**
2
 * Copyright 2006, Ira W. Snyder (devel@irasnyder.com)
3
 * License: GNU General Public License v2 (or, at your option, any later
4
 * version)
5
 */
6
 
7
/**
8
 * Name: Ira Snyder
9
 * Class: CS365 - Computer Architecture
10
 * Project #1 - Part 2
11
 * Due: 2006-02-06
12
 */
13
 
14
/**
15
 * File: MUL4_test.v
16
 * Purpose: Test module for the MUL4 module.
17
 */
18
 
19
module MUL4_test;
20
 
21
    reg[0:3] a, b;
22
    wire[0:7] w_out;
23
 
24
    MUL4 mult (a, b, w_out);
25
 
26
    initial begin
27
        $monitor ("time=%0d a=%b b=%b prod=%b", $time, a, b, w_out);
28
    end
29
 
30
    initial begin
31
            a = 'b0011; b = 'b0011;
32
        #10 a = 'b0001; b = 'b1100;
33
        #10 a = 'b1100; b = 'b0011;
34
        #10 a = 'b0101; b = 'b1010;
35
        #10 $finish;
36
    end
37
 
38
endmodule
39