Code cleanup

This commit is contained in:
Miodrag Milanovic 2026-08-04 17:18:22 +02:00
parent 468ba27d91
commit ebf286ab40
8 changed files with 8 additions and 9 deletions

View File

@ -40,4 +40,3 @@ EOT
hierarchy
wreduce
equiv_opt -assert alumacc

View File

@ -27,7 +27,7 @@ endmodule
module mul_pipe_u (input clk, input [8:0] a, b, output reg [17:0] y);
reg [8:0] a_r;
reg [8:0] b_r;
always @(posedge clk) begin
always @(posedge clk) begin
a_r <= a;
b_r <= b;
y <= a_r * b_r;

View File

@ -153,4 +153,4 @@ module mul18_two_clock (
always_ff @(posedge clk0) a_r <= a;
always_ff @(posedge clk1) b_r <= b;
assign y = a_r * b_r;
endmodule
endmodule

View File

@ -71,4 +71,4 @@ design -load pristine
hierarchy -top mul18_two_clock
synth_nexus -family lifcl -top mul18_two_clock
select -assert-count 1 t:MULT18X18 r:REGINPUTA=BYPASS r:REGINPUTB=BYPASS
select -assert-min 1 t:FD1P3*
select -assert-min 1 t:FD1P3*

View File

@ -17,7 +17,7 @@ module \top
connect \S \b
connect \Y \y
end
attribute \full_case 1
cell $pmux \pmux
parameter \WIDTH 1
@ -27,7 +27,7 @@ module \top
connect \S { \n_a \s }
connect \Y \q
end
attribute \full_case 1
cell $not \not
parameter \A_SIGNED 0

View File

@ -147,7 +147,7 @@ module edges(input clk);
wire lhs_norm = a_norm;
wire lhs_subnorm = a_subnorm;
wire lhs_finite = a_finite;
wire rhs_sign = b_sign;
wire [30:0] rhs_unsigned = b_unsigned;
wire [7:0] rhs_exp = b_exp;

View File

@ -10,4 +10,4 @@ flatten -noscopeinfo
opt_clean
select -assert-count 1 t:* top %i
select -assert-count 1 t:$_DFF_PP0_ top %i
select -assert-count 1 t:$_DFF_PP0_ top %i

View File

@ -1,3 +1,3 @@
module top(input x, output y);
top top_i(.x(x), .y(y));
endmodule
endmodule