Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17267 Discussions

How to shift left 4bit signal without making register

Altera_Forum
Honored Contributor II
1,771 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
711 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
711 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
710 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
711 Views

Thank you for answer!!!

0 Kudos
Reply