3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-31 15:24:57 +00:00

Standardize convention, add back test, update README

This commit is contained in:
Akash Levy 2024-09-23 06:06:43 -07:00
parent 9e9d4359d4
commit ed2c65314b
13 changed files with 17 additions and 9 deletions

View file

@ -0,0 +1,17 @@
read_verilog <<EOT
module top(input clk, ce, input [2:0] a, b, output reg [2:0] q);
reg [2:0] aa, bb;
always @(posedge clk) begin
if (ce) begin
aa <= a;
end
bb <= b;
q <= aa + bb;
end
endmodule
EOT
synth_ice40 -abc9 -dffe_min_ce_use 4