0
具有命名塊操作的Verilog代碼是否可合成?其中一個例子是以下:Verilog代碼是否可禁用可命名的塊操作?
module named_block_disable();
reg [31:0] bit_detect;
reg [5:0] bit_position;
integer i;
always @ (bit_detect)
begin : BIT_DETECT
for (i = 0; i < 32 ; i = i + 1) begin
// If bit is set, latch the bit position
// Disable the execution of the block
if (bit_detect[i] == 1) begin
bit_position = i;
disable BIT_DETECT;
end else begin
bit_position = 32;
end
end
end
是的,它應該工作。 –