S
Steven P
Guest
I have following ABEL program to be translated to VHDL:
!IOWR pin;
BOOT pin istype "reg_d";
BOOT.clk = !IOWR;
BOOT.aset = RESET;
BOOT.aclr = 0;
BOOT.d = IOD0 & BOOT_BASE # (BOOT.pin & !BOOT_BASE);
BOOT.oe = 1;
My VHDL looks like:
process( RESET, IOWR)
begin
if (RESET = '0') then
BOOT_tmp <= '0';
elsif( falling_edge(IOWR)) then
BOOT_tmp <= (IOD0 and BOOT_BASE ) or (BOOT_tmp and ( not
BOOT_BASE));
end if;
end process;
BOOT <= BOOT_tmp;
Is it correct? Is BOOT.oe = 1 means boot is tri-state ?
Any help will be very appreciated!
Steven
!IOWR pin;
BOOT pin istype "reg_d";
BOOT.clk = !IOWR;
BOOT.aset = RESET;
BOOT.aclr = 0;
BOOT.d = IOD0 & BOOT_BASE # (BOOT.pin & !BOOT_BASE);
BOOT.oe = 1;
My VHDL looks like:
process( RESET, IOWR)
begin
if (RESET = '0') then
BOOT_tmp <= '0';
elsif( falling_edge(IOWR)) then
BOOT_tmp <= (IOD0 and BOOT_BASE ) or (BOOT_tmp and ( not
BOOT_BASE));
end if;
end process;
BOOT <= BOOT_tmp;
Is it correct? Is BOOT.oe = 1 means boot is tri-state ?
Any help will be very appreciated!
Steven