mirror of https://github.com/YosysHQ/yosys.git
Code cleanup
This commit is contained in:
parent
468ba27d91
commit
ebf286ab40
|
|
@ -40,4 +40,3 @@ EOT
|
|||
hierarchy
|
||||
wreduce
|
||||
equiv_opt -assert alumacc
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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*
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
module top(input x, output y);
|
||||
top top_i(.x(x), .y(y));
|
||||
endmodule
|
||||
endmodule
|
||||
|
|
|
|||
Loading…
Reference in New Issue