【正文】
q。 end architecture ok。 物理與電子工程學院 20 移位寄存器 entity shift is port( din,clk: in bit。 dout: out bit )。 end shift。 architecture shift of shift is begin process(clk) variable a,b,c: bit。 begin if(clk39。event and clk=39。139。) then dout = c。 c := b。 b := a。 a := din。 end if。 end process。 end architecture shift 。 entity shift is port( din,clk: in bit。 dout: out bit )。 end shift。 architecture shift of shift is begin process(clk) variable a,b,c: bit。 begin if(clk39。event and clk=39。139。) then a := din。 b := a。 c := b。 dout = c。 end if。 end process。 end architecture shift 。 entity shift is port( din,clk: in bit。 dout: out bit )。 end shift。 architecture shift of shift is signal a,b,c: bit。 begin process(clk) begin if(clk39。event and clk=39。139。) then a = din。 b = a。 c = b。 dout = c。 end if。 end process。 end architecture shift