Jovial,
you can find the following example in the Verilog-A documentation from Cadence (which should be part of your installation)
Code:module five_inputs( portbus );
input [0:5] portbus;
electrical [0:5] portbus;
...
endmodule
Note that this is actually a 6-bit bus...
You can write to a file using
Code:$fopen, $fstrobe, $fdisplay, $fwrite, $fclose
To find the edge, you can use the cross-event.
- B O E