mirror of
https://github.com/verilator/verilator.git
synced 2025-01-22 14:24:18 +00:00
Make tests work on NCV
git-svn-id: file://localhost/svn/verilator/trunk/verilator@879 77ca24e4-aefa-0310-84f0-b9a241c72d87
This commit is contained in:
parent
da07cc6ed1
commit
eb2eb14297
@ -8,7 +8,7 @@ if (!$::Driver) { use FindBin; exec("./driver.pl", @ARGV, $0); die; }
|
|||||||
# General Public License or the Perl Artistic License.
|
# General Public License or the Perl Artistic License.
|
||||||
|
|
||||||
compile (
|
compile (
|
||||||
v_flags2 => ['-DALLOW_UNOPT'],
|
v_flags2 => ['+define+ALLOW_UNOPT'],
|
||||||
);
|
);
|
||||||
|
|
||||||
execute (
|
execute (
|
||||||
|
@ -91,11 +91,16 @@ module file (/*AUTOARG*/
|
|||||||
end
|
end
|
||||||
default: begin
|
default: begin
|
||||||
b = ~crc;
|
b = ~crc;
|
||||||
d = ~c;
|
set_d(~c); // d = ~c;
|
||||||
end
|
end
|
||||||
endcase
|
endcase
|
||||||
end
|
end
|
||||||
|
|
||||||
|
task set_d;
|
||||||
|
input [31:0] to;
|
||||||
|
d = to;
|
||||||
|
endtask
|
||||||
|
|
||||||
always @* begin
|
always @* begin
|
||||||
// Any complicated equation we can't optimize
|
// Any complicated equation we can't optimize
|
||||||
casez (crc[3:0])
|
casez (crc[3:0])
|
||||||
|
@ -10,7 +10,7 @@ if (!$::Driver) { use FindBin; exec("./driver.pl", @ARGV, $0); die; }
|
|||||||
top_filename("t/t_unopt_combo.v");
|
top_filename("t/t_unopt_combo.v");
|
||||||
|
|
||||||
compile (
|
compile (
|
||||||
v_flags2 => ['-DISOLATE --stats'],
|
v_flags2 => ['+define+ISOLATE --stats'],
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($Last_Self->{v3}) {
|
if ($Last_Self->{v3}) {
|
||||||
|
Loading…
Reference in New Issue
Block a user