Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17241 Discussions

How to shift left 4bit signal without making register

Altera_Forum
Honored Contributor II
1,732 Views

Hi 

I need to create component witch work like shift register for 4 bit signal . How can I do that?
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
672 Views

Hi, 

 

Got a favourite language? In VHDL you could do something like: 

 

b <= b(2 downto 0) & '0'; 

 

assuming b is defined as a four bit std_logic_vector. 

 

Mark.
0 Kudos
Altera_Forum
Honored Contributor II
672 Views

you could do that, but it wont work without registers. Its called a shift register for a reason...

0 Kudos
Altera_Forum
Honored Contributor II
671 Views

 

--- Quote Start ---  

you could do that, but it wont work without registers. Its called a shift register for a reason... 

--- Quote End ---  

 

 

Well, yeah, the behaviour of that line of code is entirely dependent on what's around it. On it's own it doesn't hold a value or anything. The OP's question was a little vague... 

 

Mark.
0 Kudos
Altera_Forum
Honored Contributor II
672 Views

Thank you for answer!!!

0 Kudos
Reply