How can I simulate/create a unit ramp signal by netlist or in schematic in TopSpice?
I would use a PWL (piece-wise linear) source. You specify a list of time/voltage pairs and the source voltage or current changes linearly between the points.
You can't do a true step. Time must increase monotonically; a voltage can't have two different values at the same time.