Category Archives: Electronics

HDL Code To Simulate 2:4 Decoder

By | November 28, 2017

HDL code to simulate 2:4 Decoder Aim – Simulate of 2:4 Decoder using HDL code. Basics of 2:4 Decoder to learn simulate 2:4 decoder 2:4 Decoder has 2 inputs and 4 outputs. In this program, a,b are two inputs and y0,y1,y2,y3 are four outputs. en– enable should be active high, in order to get output.… Read More »

HDL Code To Simulate All Logic Gates

By | November 28, 2017

HDL Code To Simulate All Logic Gates Aim – Simulation of all logic gates using HDL code. Basics Of Logic Gates   Input- a,b Output-c(and), d(or), e(xor), f(not_a), g(nand), h(nor), i(xnor) Verilog Code module logicgates( input a,b, output c,d,e,f,g,h,i); assign c= a & b; assign d= a|b; assign e= a^b; assign f= ~a; assign g=… Read More »