Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vecs
FIJI Public
Commits
a6c64805
Commit
a6c64805
authored
Aug 05, 2015
by
Christian Fibich
Committed by
Stefan Tauner
May 04, 2018
Browse files
Added benchmark Verilog code + current status dump
parent
4baa0a08
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
test/benchmark.v
0 → 100644
View file @
a6c64805
/*
* Benchmark Verilog "Netlist" File
* If Verilog-Perl interconnects this correctly, we're happy...
*
* $LastChangedBy$
* $LastChangedDate$
*/
/*
* This is the Cell definition.
* It would be located in the FPGA primitive library, which we don't want to
* load, thus Verilog::Perl has no knowledge about the port widths
*
* module mod (a,y);
* input [3:0] a;
* output y;
* wire [3:0] b;
* wire c;
*
* // Some Functionality
*
* endmodule
*
*/
module
top
(
i
,
o
);
input
[
31
:
0
]
i
;
output
[
31
:
0
]
o
;
wire
[
3
:
0
]
somebus
,
someotherbus
;
wire
somenet_1
,
somenet_2
;
wire
[
29
:
0
]
somewidebus
;
assign
somewidebus
=
i
[
31
:
2
];
assign
o
[
1
]
=
somenet_1
;
assign
o
[
2
]
=
somenet_2
;
assign
o
[
0
]
=
1'b0
;
assign
o
[
3
]
=
someotherbus
[
2
];
assign
o
[
28
:
4
]
=
25'b0
;
assign
o
[
31
]
=~
somenet_1
;
mod
instmod_1
(
.
a
(
somebus
),
.
y
(
somenet_1
)
);
mod
instmod_2
(
.
a
(
somebus
),
.
y
(
someotherbus
[
2
])
);
mod
instmod_3
(
.
a
(
somewidebus
[
24
:
21
]),
.
y
(
somenet_2
)
);
mod
instmod_4
(
.
a
(
i
[
31
:
27
]),
.
y
(
o
[
29
])
);
mod
instmod_5
(
.
a
(
{
somenet_1
,
someotherbus
[
2
],
somewidebus
[
2
:
1
]
}
),
.
y
(
o
[
30
])
);
/*
FIXME Not allowed in Verilog Language??
mod instmod_6 (
.a[0](somenet_1),
.a[1](someotherbus[2]),
.a[3:2](somewidebus[2:1])
.y(o[31]);
);
*/
endmodule
test/benchmark.vp.dump
0 → 100644
View file @
a6c64805
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment