mirror of
https://github.com/YosysHQ/yosys
synced 2026-06-30 04:28:55 +00:00
Remove trailing whitespaces
This commit is contained in:
parent
48a3dcc02a
commit
a689342207
317 changed files with 3136 additions and 3136 deletions
|
|
@ -6,7 +6,7 @@ module top (y, clk, w);
|
|||
always @(posedge clk)
|
||||
// If the constant below is set to 2'b00, the correct output is generated.
|
||||
// vvvv
|
||||
for (i = 1'b0; i < 2'b01; i = i + 2'b01)
|
||||
for (i = 1'b0; i < 2'b01; i = i + 2'b01)
|
||||
y <= w || i[1:1];
|
||||
endmodule
|
||||
EOT
|
||||
|
|
|
|||
|
|
@ -3,6 +3,6 @@ read_verilog <<EOT
|
|||
module inverter(input a, output y);
|
||||
|
||||
assign y = (a == 1'b0? 1'b1 : 1'b0);
|
||||
|
||||
|
||||
endmodule // inverter
|
||||
EOT
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ module \main
|
|||
wire width 12 $delete_wire$514
|
||||
|
||||
wire width 4 $test
|
||||
|
||||
|
||||
attribute \module_not_derived 1
|
||||
cell \SB_MAC16 $verific$mult_4$garbage/usb.v:12$388.etc.sliceB[0].mul
|
||||
parameter \A_REG 1'0
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ module top(input wire clk, input wire [3:0] addr, output reg [3:0] data);
|
|||
wire arst = !data[0];
|
||||
|
||||
always @(posedge arst, posedge clk) begin
|
||||
if (arst)
|
||||
if (arst)
|
||||
data <= 4'hx;
|
||||
else
|
||||
data <= mem[addr];
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ design -copy-from gate -as gate gate
|
|||
miter -equiv -make_assert -make_outcmp -flatten gold gate equiv
|
||||
sat -prove-asserts -seq 10 -show-public -verify -set-init-zero equiv
|
||||
|
||||
#### Double loop (part-select, reset) ###
|
||||
#### Double loop (part-select, reset) ###
|
||||
design -reset
|
||||
read_verilog ./dynamic_part_select/reset_test.v
|
||||
proc
|
||||
|
|
@ -143,7 +143,7 @@ miter -equiv -make_assert -make_outcmp -flatten gold gate equiv
|
|||
sat -prove-asserts -show-public -verify -set-init-zero equiv
|
||||
|
||||
###
|
||||
## Part select with obvious latch, expected to fail due comparison with old shift&mask AST transformation
|
||||
## Part select with obvious latch, expected to fail due comparison with old shift&mask AST transformation
|
||||
design -reset
|
||||
read_verilog ./dynamic_part_select/latch_002.v
|
||||
hierarchy -top latch_002; prep; async2sync
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ module latch_002
|
|||
input wire [7:0] vect;
|
||||
input wire [7:0] sel;
|
||||
input wire st;
|
||||
|
||||
|
||||
always @(*) begin
|
||||
if (st)
|
||||
dword[8*sel +:8] <= vect[7:0];
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ module multiple_blocking #(parameter WIDTH=32, SELW=1, CTRLW=$clog2(WIDTH), DINW
|
|||
input wire [DINW-1:0] din,
|
||||
input wire [SELW-1:0] sel,
|
||||
output reg [WIDTH-1:0] dout);
|
||||
|
||||
|
||||
localparam SLICE = WIDTH/(SELW**2);
|
||||
reg [CTRLW:0] a;
|
||||
reg [SELW-1:0] b;
|
||||
|
|
|
|||
|
|
@ -5,11 +5,11 @@ module nonblocking #(parameter WIDTH=32, SELW=1, CTRLW=$clog2(WIDTH), DINW=2**SE
|
|||
input wire [DINW-1:0] din,
|
||||
input wire [SELW-1:0] sel,
|
||||
output reg [WIDTH-1:0] dout);
|
||||
|
||||
|
||||
localparam SLICE = WIDTH/(SELW**2);
|
||||
always @(posedge clk) begin
|
||||
dout <= dout + 1;
|
||||
dout[ctrl*sel+:SLICE] <= din ;
|
||||
end
|
||||
|
||||
|
||||
endmodule
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ module reset_test #(parameter WIDTH=32, SELW=1, CTRLW=$clog2(WIDTH), DINW=2**SE
|
|||
input wire [DINW-1:0] din,
|
||||
input wire [SELW-1:0] sel,
|
||||
output reg [WIDTH-1:0] dout);
|
||||
|
||||
|
||||
reg [SELW:0] i;
|
||||
wire [SELW-1:0] rval = {reset, {SELW-1{1'b0}}};
|
||||
localparam SLICE = WIDTH/(SELW**2);
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ module reversed #(parameter WIDTH=32, SELW=4, CTRLW=$clog2(WIDTH), DINW=2**SELW)
|
|||
input wire [DINW-1:0] din,
|
||||
input wire [SELW-1:0] sel,
|
||||
output reg [WIDTH-1:0] dout);
|
||||
|
||||
|
||||
localparam SLICE = WIDTH/(SELW**2);
|
||||
always @(posedge clk) begin
|
||||
dout[(WIDTH-ctrl*sel)-:SLICE] <= din;
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ module \top
|
|||
parameter \B_SIGNED 0
|
||||
parameter \B_WIDTH 1
|
||||
parameter \Y_WIDTH 1
|
||||
connect \A $b
|
||||
connect \A $b
|
||||
connect \B 1'x
|
||||
connect \Y \Q
|
||||
end
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ module semi_self_rs_fsm (
|
|||
reset_test = reset_test + 1;
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
always @(*) begin
|
||||
next_state = current_state;
|
||||
|
|
@ -108,7 +108,7 @@ opt_clean
|
|||
check
|
||||
opt -nodffe -nosdff
|
||||
|
||||
fsm_detect
|
||||
fsm_detect
|
||||
fsm_extract
|
||||
|
||||
cd non_self_rs_fsm
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ endmodule
|
|||
|
||||
module mux_if_unbal_5_3_invert #(parameter N=5, parameter W=3) (input [N*W-1:0] i, input [$clog2(N)-1:0] s, output reg [W-1:0] o);
|
||||
always @*
|
||||
if (s != 0)
|
||||
if (s != 1)
|
||||
if (s != 0)
|
||||
if (s != 1)
|
||||
if (s != 2)
|
||||
if (s != 3)
|
||||
if (s != 4) o <= i[4*W+:W];
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ module $__SHREG_DFF_P_(input C, D, output Q);
|
|||
parameter DEPTH = 2;
|
||||
parameter [DEPTH-1:0] INIT = {DEPTH{1'b0}};
|
||||
reg [DEPTH-1:0] r = INIT;
|
||||
always @(posedge C)
|
||||
always @(posedge C)
|
||||
r <= { r[DEPTH-2:0], D };
|
||||
assign Q = r[DEPTH-1];
|
||||
endmodule
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ end
|
|||
EOT
|
||||
logger -expect log "Chip area for top module '\\top': 112.492800" 1
|
||||
logger -expect log "of which used for sequential elements: 94.348800" 1
|
||||
logger -expect log "2 18.144 cells" 1
|
||||
logger -expect log "2 18.144 cells" 1
|
||||
logger -expect log "4 112.493 cells" 1
|
||||
logger -expect log "2 94.349 sg13g2_dfrbp_1" 1
|
||||
logger -expect-no-warnings
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -52,7 +52,7 @@ module \child
|
|||
|
||||
end
|
||||
EOT
|
||||
logger -expect log "4 112.493 2 18.144 cells" 2
|
||||
logger -expect log "4 112.493 2 18.144 cells" 2
|
||||
logger -expect log "2 18.144 2 18.144 sg13g2_and2_1" 2
|
||||
logger -expect log "2 94.349 - - sg13g2_dfrbp_1" 2
|
||||
logger -expect log "2 94.349 2 - submodules" 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue