Hello
I need to write a vhdl code for an 8 bit ALU..the problem is that i must implement a multiplier in this ALU(that has an output of 16 bits) which means that my mutliplexer in the ALU has an output of 16 bits..I also hav to implement an adder...i want to know how can i do the adder if u know what i mean?
ex:
suppose my sum is 10110000 i have to make it 1111111110110000 because 10110000 is negative number and i have to make the output 16 bits..
thank you
I need to write a vhdl code for an 8 bit ALU..the problem is that i must implement a multiplier in this ALU(that has an output of 16 bits) which means that my mutliplexer in the ALU has an output of 16 bits..I also hav to implement an adder...i want to know how can i do the adder if u know what i mean?
ex:
suppose my sum is 10110000 i have to make it 1111111110110000 because 10110000 is negative number and i have to make the output 16 bits..
thank you