mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-07 11:41:23 +00:00
Progress in presentation
This commit is contained in:
parent
1c85584fe5
commit
b18fa95d2f
9 changed files with 188 additions and 23 deletions
|
@ -8,7 +8,7 @@ TARGETS += abc_01
|
|||
all: $(addsuffix .pdf,$(TARGETS))
|
||||
|
||||
define make_pdf_template
|
||||
$(1).pdf: $(1).v $(1).ys
|
||||
$(1).pdf: $(1)*.v $(1)*.ys
|
||||
../../yosys -p 'script $(1).ys; show -notitle -prefix $(1) -format pdf'
|
||||
endef
|
||||
|
||||
|
|
|
@ -13,9 +13,9 @@ output [Y_WIDTH-1:0] Y;
|
|||
generate
|
||||
if ((A_WIDTH == 32) && (B_WIDTH == 32))
|
||||
begin
|
||||
wire [15:0] CARRY = |{A[15:0], B[15:0]} && ~|Y[15:0];
|
||||
assign Y[15:0] = A[15:0] + B[15:0];
|
||||
assign Y[31:16] = A[31:16] + B[31:16] + CARRY;
|
||||
wire [16:0] S1 = A[15:0] + B[15:0];
|
||||
wire [15:0] S2 = A[31:16] + B[31:16] + S1[16];
|
||||
assign Y = {S2[15:0], S1[15:0]};
|
||||
end
|
||||
else
|
||||
wire _TECHMAP_FAIL_ = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue