$time, reset, sin, inbus, mode, value, value, sdata) Psregister r1 (sin, inbus, clk, mode, reset, value, sdata) initial
* Do loads for just two of the changes then start a shift at 69 */ # 11 reset = 1 /* Comes out of reset at time 28 */Įnd /* Change the value on the input bus every so often */ Reg sin = 0 /* Make a reset that pulses once. * We need input bus and clock, mode, serial in, and reset as inputs */ Module test /* Make reg inputs and wire outputs for register */ module psregister(pin, clk, load, shift, reset, pout, sout) Test for parallel/serial in-out register modeled on 74194. I ran it with a slightly modified version of the previous test. Wire sin, pin, clk, mode, reset always clk) Module psregister(sin, pin, clk, mode, reset, pout, sout) parameter WIDTH = 8 output pout reset : asynchronous reset to zero (active low)
mode : mode control 0 hold, 1 shl, 2 shr, 3 load ė4194 universal shift register but extended to arbitrary number load & shift and asynchronous clear (reset).
Parallel-in, parallel-out, serial out register with synchronous