mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-12 10:15:54 +00:00
17 lines
261 B
Coq
17 lines
261 B
Coq
|
`include "settings.h"
|
||
|
|
||
|
module Adder (
|
||
|
input [`WORD_WIDTH-1:0] a,
|
||
|
input [`WORD_WIDTH-1:0] b,
|
||
|
output [`WORD_WIDTH-1:0] out
|
||
|
);
|
||
|
|
||
|
reg [`WORD_WIDTH-1:0] result;
|
||
|
|
||
|
always@(*) begin
|
||
|
result = a + b;
|
||
|
end
|
||
|
|
||
|
assign out = result;
|
||
|
|
||
|
endmodule
|