yosys/manual/APPNOTE_011_Design_Investig.../sumprod.v

13 lines
177 B
Verilog
Raw Normal View History

2013-11-29 09:42:49 -06:00
module sumprod(a, b, c, sum, prod);
input [7:0] a, b, c;
output [7:0] sum, prod;
{* sumstuff *}
assign sum = a + b + c;
{* *}
assign prod = a * b * c;
endmodule