Skip to content

Releases: a3510377/verilog-library

v0.0.3

01 Dec 03:00
Compare
Choose a tag to compare

verilog-library

Naming conventions

  1. s_: Less Clock version
  2. v_: Verilog special syntax

Flip Flop

RS Flip Flop

NOR

rs_flip_flop(input R, S, output Q, Qbar);

RTL_view
Symbol

NAND

nand_rs_flip_flop(input Rbar, Sbar, output Q, Qbar);

Alt text

Adder

Full Adder

full_adder(input A, B, Ci, output Co, S)

RTL_View
Symbol

Other implementations

module s_full_adder(input A, B, Ci, output Co, S);
  assign S = A ^ B ^ Ci;
  assign Co = (A & B) | ((A ^ B) & Ci);
endmodule

S-Full adder

Verilog special syntax

module v_full_adder(input A, B, Ci, output Co, S);
  assign {Co, S} = A + B + Ci;
endmodule

V-Full adder

Half Adder

half_adder(input A, B, output C, S);

RTL_View
Symbol

v0.0.2

19 Nov 01:06
Compare
Choose a tag to compare

verilog-library

Adder

Full Adder

full_adder(input A, B, Ci, output Co, S)

RTL_View
Symbol

Equivalent module:

module full_adder(input A, B, Ci, output Co, S);
  assign S = A ^ B ^ Ci;
  assign Co = (A & B) | ((A ^ B) & Ci);
endmodule
module full_adder(input A, B, Ci, output Co, S);
  assign {Co, S} = A + B + Ci;
endmodule

Half Adder

half_adder(input A, B, output C, S);

RTL_View
Symbol

Flip Flop

RS Flip Flop

rs_flip_flop(input R, S, output Q, Qbar);

RTL_view
Symbol

0.0.1

17 Nov 05:22
Compare
Choose a tag to compare
0.0.1 Pre-release
Pre-release
  • half adder