Altera_Forum
Honored Contributor
13 years agoVHDL description a register
Hi there,
I just started learning VHDL, and I have learn how to write a description for combinational and sequential circuit. and I got this question in my book and i'm absolutely lost with it, where the question is asking me to write a description in VHDL for below system. please help! Design a system with an 8-bit input I that can be stored in 8-bit registers A, B, and/orC when input La, Lb, and/or Lc is 1, respectively. So if inputs La and Lb are 1, then registers A and B will be loaded with input I, but register C will keep its current value. Furthermore, if input R is 1, then the register values swap such that A=B, B=C, and C=A. Input R has priority over the L inputs. The system also has one clock input. Describe this circuit using VHDL.