-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmult.v
47 lines (40 loc) · 1.24 KB
/
mult.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
/* Module from the schematic_gui program written by Andreas Ehliar <[email protected]>
This Verilog file is licensed under the CC0 license. */
module mult #(parameter WIREWIDTH = 1) (input wire clk,
input wire [WIREWIDTH:0] x,y,
output reg [WIREWIDTH:0] res); /* FIXME: reswidth! */
initial begin
$schematic_boundingbox(100,120);
$schematic_arc(50,60,40);
$schematic_linestart;
$schematic_coord(20,110);
$schematic_coord(29,94);
$schematic_lineend;
$schematic_linestart;
$schematic_coord(80,110);
$schematic_coord(71,94);
$schematic_lineend;
$schematic_linestart;
$schematic_coord(50,20);
$schematic_coord(50,10);
$schematic_lineend;
$schematic_linestart;
$schematic_coord(50,40);
$schematic_coord(50,80);
$schematic_lineend;
$schematic_linestart;
$schematic_coord(67,70);
$schematic_coord(33,50);
$schematic_lineend;
$schematic_linestart;
$schematic_coord(67,50);
$schematic_coord(33,70);
$schematic_lineend;
$schematic_connector(x,20,110);
$schematic_connector(y,80,110);
$schematic_connector(res,50,10);
end
always @* begin
res = x*y;
end
endmodule