代码搜索结果

找到约 10,000 项符合 V 的代码

twoscomp.v

module twoscomp(d, complement, out); input [7:0]d; input complement; output [7:0]out; reg [7:0] out; always @(complement or d) begin // Below is one type of implementation if (compl

comparator.v

/* Verilog Comparator module inputs are 'a' and 'b' output is 'a_et_b' -- 1'b1 when the inputs are equal to each other -- 1'b0 when the inputs are not equal */ /*

magcomp.v

// // Verilog module for an unsigned magnitude comparator // // input(s): a, b // output(s): a_gtet_b // module mag_comp_unsign (a, b, a_gtet_b); input [7:0]a; input [7:0]b; output a_gtet_b

ldenaddsub.v

/* This is an adder-subtractor Verilog module. The module is a parallel loadable, synchronous set/reset, clock enabled adder-subtractor. this code implements a simple and compact

addsub.v

// // This is the adder-subtractor verilog module. // this code implements a simple and compact // adder-subtractor. // // Input(s): a, b, subtract // Output(s): sum // declare the module

countersel.v

module countersel(D_IN,D_OUT1,D_OUT0); output D_OUT1; output D_OUT0; input [1:0] D_IN; reg D_OUT1; reg D_OUT0; always begin case(D_IN) 2'b00 : {D_OUT1,D_OUT0}

dispmux.v

module dispmux(SEL,D_IN1,D_IN0,D_OUT); output [3:0] D_OUT; input [3:0] D_IN1; input [3:0] D_IN0; input [1:0] SEL; reg [3:0] D_OUT; always begin case(SEL) 2'b01 : D_OUT

trafficlight.v

module trafficlight( Reset, SW, CLK, Red1, Red2, Yellow1, Yellow2, Green1, Green2, SEG_Data, SEG_Sel ); input Reset; input SW; input CLK; output Red1; output Red2; outpu