add examples to docs
This commit is contained in:
parent
68306885d7
commit
cabdfea643
|
@ -0,0 +1,10 @@
|
|||
module halfadd (
|
||||
input wire a,
|
||||
input wire b,
|
||||
output wire sum,
|
||||
output wire carry
|
||||
)
|
||||
{
|
||||
assign sum = xor(a, b);
|
||||
assign carry = and(a, b);
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
module identity (
|
||||
input wire a,
|
||||
output wire x
|
||||
)
|
||||
{
|
||||
assign x = a;
|
||||
}
|
Loading…
Reference in New Issue