Guest
Hi,
I'm translating a piece of Verilog code to VHDL:
Here's the code:
always @ () begin
// default value
reg_dataout <= 8'h00;
if (sciaddress == 11'h620) begin
reg_dataout <= 8'hAA;
end
if (sciaddress == 11'h621) begin
reg_dataout <= 8'h55;
end
if (sciaddress == 11'h622) begin
reg_dataout <= creg;
end
end
Does this translate to?
process (rst)
begin
if reset = '1' then
reg_dataout <= (others => '0');
else
if sciaddress = "11000100000" then
:
:
:
any help is appreciated.
Luc
I'm translating a piece of Verilog code to VHDL:
Here's the code:
always @ () begin
// default value
reg_dataout <= 8'h00;
if (sciaddress == 11'h620) begin
reg_dataout <= 8'hAA;
end
if (sciaddress == 11'h621) begin
reg_dataout <= 8'h55;
end
if (sciaddress == 11'h622) begin
reg_dataout <= creg;
end
end
Does this translate to?
process (rst)
begin
if reset = '1' then
reg_dataout <= (others => '0');
else
if sciaddress = "11000100000" then
:
:
:
any help is appreciated.
Luc