Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module inscriberAutomation(
- (* side=LEFT, colors={RED,GREEN,BLUE} *)
- input [2:0] comparators,
- (* side=RIGHT, colors={RED,GREEN,BLUE,CYAN,MAGENTA,PINK,ORANGE} *)
- output [6:0] inscribers
- );
- (* analog *)
- reg inscriberSel;
- reg sysEnable;
- reg [6:0] inscribersRaw;
- reg [6:0] inscribersEnabled;
- And3 a3 (
- .I0(comparators[0]),
- .I1(comparators[1]),
- .I2(comparators[2]),
- .O(sysEnable)
- );
- RandomizerAnalog ar (
- .Min(0),
- .Max(6),
- .Q(inscriberSel)
- );
- DeMux16Analog d16 (
- .I(1),
- .S(inscriberSel),
- .O(inscribersRaw)
- );
- And2 a2 [6:0] (
- .I0(inscribersRaw),
- .I1(sysEnable),
- .O(inscribersEnabled)
- );
- Delay d [6:0] (
- .I(inscribersEnabled),
- .O(inscribers),
- .D(10)
- );
- endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement