Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Why would you design it yourself instead of choosing an off-the-shelf part? For 4 bits, it could be easier to generate a PWM with 4 bit encoded duty cycle and run it though an active low pass filter (i.e. Sallen-Key works pretty well for this application).