Fixes and cleanups for blackbox.v

This commit is contained in:
Clifford Wolf 2014-09-08 13:29:13 +02:00
parent af0c8873bb
commit 6dc07eb1f2
2 changed files with 79 additions and 76 deletions

View File

@ -1,4 +1,5 @@
#!/bin/sed -r
/^(wire|assign|reg|event)/ d;
/^(genvar|generate|always|initial)/,/^end/ d;
/^(wire|assign|reg|event|integer|localparam|\/\/|[\/ ]\*| *$|`)/ d;
/^(genvar|generate|always|initial|task|function)/,/^end/ d;
/^endmodule/ s/$/\n/;
s/ reg / /;

View File

@ -795,6 +795,7 @@ endmodule
// --------------------------------------------------------
module \$macc (A, B, Y);
parameter A_WIDTH = 0;
parameter B_WIDTH = 0;
parameter Y_WIDTH = 0;
@ -876,6 +877,7 @@ module \$macc (A, B, Y);
`undef PORT_SIZE_B
`undef PORT_OFFSET_A
`undef PORT_OFFSET_B
endmodule
// --------------------------------------------------------