我正在爲基於Nand2Tetris課程的DMux編寫hdl代碼。 CHIP DMux {
IN in, sel;
OUT a, b;
PARTS:
And(a = sel, b = in, out = b);
Not(in = sel, out = selNot);
And(a = in, b = selNot, out = a);
}
由於某種原因,此代碼在測試腳本值in =
我正面臨一個奇怪的問題。該代碼適用於簡單的ALU。只有感興趣的代碼粘貼在這裏: always @(posedge clk or posedge rst)
begin
if (rst == 1) begin
mul_valid_shr = 3'b000;
end else begin
if (op_mul_i == 1) begin