Guest
#3804995
Hi everyone, I'm writing a code to simulate a 12-bit dac. The behavior is quite simple: A serial digital input receive datas ( 32-bits word with the 12 bits to convert + don't care bits + command) and the 12 bits word is converted every 32 clk. My first try was to create a signal data_input: std_logic_vector (31 downto 0) and convert only the 12 bits I want. But this not exactly the right thing. I thought a clk counter is necessary and others things but can't find out... Can you give me some advice to get over it please?