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:
parent
57966a619f
commit
c051115e03
4 changed files with 55 additions and 5 deletions
4
backends/firrtl/test.v
Normal file
4
backends/firrtl/test.v
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue