Chargement…
Chargement…
On reset, the register and internal counter are cleared. When i_load='1', i_parallel is loaded and o_valid indicates that a 4-bit sequence is available. When i_shift='1', the current bit is sent on o_serial, then the register shifts to the next bit.
Behaviour
i_load has priority over i_shift;o_valid='1' while at least one bit remains to transmit;| Signal | Direction | Width | Description |
|---|---|---|---|
i_clk | Input | 1 bit | Clock |
i_rst | Input | 1 bit | Synchronous active-high reset |
i_load | Input | 1 bit | Parallel load |
i_shift | Input | 1 bit | Shift one bit |
i_parallel | Input | 4 bits | Word to serialize |
o_serial | Output | 1 bit | Current serial bit |
o_valid | Output | 1 bit | Serial data valid |