3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-29 15:37:59 +00:00

Progress in FIRRTL back-end

This commit is contained in:
Clifford Wolf 2016-11-18 00:32:35 +01:00
parent 57966a619f
commit c051115e03
4 changed files with 55 additions and 5 deletions

4
backends/firrtl/test.v Normal file
View file

@ -0,0 +1,4 @@
module test(input clk, signed input [7:0] a, b, x, output [15:0] s, d, y, z, u, q);
assign s = a+{b[6:2], 2'b1}, d = a-b, y = x, z[7:0] = s+d, z[15:8] = s-d;
always @(posedge clk) q <= s ^ d ^ x;
endmodule