mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-22 14:17:27 +02:00
abstract: -state allow partial abstraction, don't use buffer-normalized mode
This commit is contained in:
@@ -15,6 +15,27 @@ abstract -state -enablen magic
|
||||
check -assert
|
||||
# show -prefix after_base
|
||||
|
||||
design -reset
|
||||
read_verilog <<EOT
|
||||
|
||||
module fff (CLK, DDD, QQQ, Q, magic);
|
||||
input CLK;
|
||||
input [2:0] DDD;
|
||||
output reg [2:0] QQQ;
|
||||
output reg Q;
|
||||
input magic;
|
||||
always @(posedge CLK)
|
||||
QQQ <= DDD;
|
||||
assign Q = QQQ[0];
|
||||
endmodule
|
||||
|
||||
EOT
|
||||
proc
|
||||
# show -prefix before_wide
|
||||
abstract -state -enablen magic w:Q
|
||||
# show -prefix after_wide
|
||||
check -assert
|
||||
|
||||
design -reset
|
||||
read_verilog <<EOT
|
||||
module half_clock_en (CLK, E, Q, magic);
|
||||
|
||||
Reference in New Issue
Block a user