S
smily
Guest
I have a variable bus and only want to give the input [`BITS-1:0] to to the
output [`BITS-1:0] for TEST
'include "../defines.v" // `define BITS = 8(but variable)
module bus_var1 (in, out );
input [`BITS-1:0] in;
output [`BITS-1:0] out;
electrical [`BITS-1:0] in;
electrical [`BITS-1:0] out;
integer i;
parameter real tdel = 3u from [0:inf);
parameter real trise = 1u from (0:inf);
parameter real tfall = 1u from (0:inf);
analog begin // count from 0 to `BITS
for (i=0; i<`BITS; i=i+1) begin
V(out) <+ transition(in, tdel,trise,tfall);
end
end
endmodule
Is there a possibility?
V(out) <+ V(in) // like in VHDL?
Regards smily
output [`BITS-1:0] for TEST
'include "../defines.v" // `define BITS = 8(but variable)
module bus_var1 (in, out );
input [`BITS-1:0] in;
output [`BITS-1:0] out;
electrical [`BITS-1:0] in;
electrical [`BITS-1:0] out;
integer i;
parameter real tdel = 3u from [0:inf);
parameter real trise = 1u from (0:inf);
parameter real tfall = 1u from (0:inf);
analog begin // count from 0 to `BITS
for (i=0; i<`BITS; i=i+1) begin
V(out) <+ transition(in, tdel,trise,tfall);
end
end
endmodule
Is there a possibility?
V(out) <+ V(in) // like in VHDL?
Regards smily